husky_ark_armlab package¶
Submodules¶
husky_ark_armlab.ark_interface module¶
husky_ark_armlab.euler_to_quaternion module¶
- husky_ark_armlab.euler_to_quaternion.euler_to_quaternion(roll, pitch, yaw, degrees=True)[source]¶
Euler angles euler2quat(roll, pitch, yaw, degrees=True), default is degrees, but set degrees False if giving radians
This is a modified version of this: https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles#Quaternion_to_Euler_Angles_Conversion
Code comes from: https://github.com/MomsFriendlyRobotCompany/squaternion/blob/master/squaternion/squaternion.py
- Returns
Quaternions of form [x, y, z, w]
- Return type
(list)
husky_ark_armlab.husky_ark_armlab module¶
husky_ark_armlab.keyboard_input module¶
A Python class implementing KBHIT, the standard keyboard-interrupt poller. Works transparently on Windows and Posix (Linux, Mac OS X). Doesn’t work with IDLE.
Original source: https://simondlevy.academic.wlu.edu/files/software/kbhit.py Stackoverflow source:
- class husky_ark_armlab.keyboard_input.KeyboardInput[source]¶
Bases:
object- get_arrow()[source]¶
Returns an arrow-key code after kbhit() has been called. Codes are 0 : up 1 : right 2 : down 3 : left Should not be called in the same program as getch().