Skip to content

sm.get_leg_angles() #6

Description

@sffranke

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions