mirror of
https://github.com/wassname/kair_algorithms_draft.git
synced 2026-09-09 11:25:10 +08:00
Refactoring demo collector (#56)
This commit is contained in:
Executable
+21
@@ -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
|
||||
Reference in New Issue
Block a user