-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Hi Mike, thank you for your great contribution to the world of quadruped robots.
sm = SpotMicroStickFigure(x=0,y=0.14,z=0)
# Define absolute position for the legs
l = sm.body_length
w = sm.body_width
l1 = sm.hip_length
l2 = sm.upper_leg_length
l3 = sm.lower_leg_length
# all four feet at a height of 0, and at a neutral stance (where the feet are directly below the hip and shoulder joints)
desired_p4_points = np.array([ [-l/2, 0, w/2 + l1],
[ l/2 , 0, w/2 + l1],
[ l/2 , 0, -w/2 - l1],
[-l/2 , 0, -w/2 - l1] ])
sm.set_absolute_foot_coordinates(desired_p4_points)
leg_angs = sm.get_leg_angles()
In the upper code the function sm.get_leg_angles() returns values that are twice as large as expected (I am using the default dimensions of the joints and body).
Can somebody confirm this or am I missing some point?
Metadata
Metadata
Assignees
Labels
No labels