Add doctrings and change file directory

This commit is contained in:
kdh0429
2019-05-30 23:25:09 +09:00
parent bd1711305b
commit 8cbfe50a9e
8 changed files with 152 additions and 62 deletions
+21
View File
@@ -0,0 +1,21 @@
"""Utils for dynamixel.
- Author: DH Kim
- Contact: kdh0429@snu.ac.kr
"""
from math import pi
def deg2rad(deg):
""" Transform degree to radian."""
return deg * pi / 180
def rad2deg(rad):
""" Transform radian to degree."""
return rad * 180 / pi
def rpm2rad(rpm):
""" Transform RPM to radian."""
return 2 * rpm * pi / 60