more documentation

This commit is contained in:
2019-02-28 15:00:40 +01:00
parent ef4dafdaf4
commit c2d25dfb4b
9 changed files with 84 additions and 13 deletions

View File

@@ -1,5 +1,9 @@
#! /usr/bin/env python
"""The node performing the imitation."""
"""The node performing the imitation.
ROS Node: `imitator`
Uses `inform_masterloop` service.
"""
from argparse import ArgumentParser
from math import radians
@@ -79,9 +83,9 @@ if __name__ == '__main__':
except Exception as e:
rospy.logwarn(e)
continue
# Calculate the position of the hand in my chest frame
my_arm_xyz = np.array(arm) - np.array(a0)
# rospy.loginfo('{}'.format(my_arm_xyz))
# rospy.loginfo('{}'.format(dumb(my_arm_xyz, side)))
imitation_cycle(my_arm_xyz, side) # Do the actuation