Refactoring demo collector (#56)

This commit is contained in:
Donghyeon Kim
2019-08-17 14:29:58 +09:00
committed by Whi Kwon
parent 055d97661e
commit 18d6824191
19 changed files with 972 additions and 20 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