Skip to content

How is the base link defined? #48

@SugarWam

Description

@SugarWam

Thank you for the great work! But i am really confused about the definition of the base link. suppose this is a robot with only one link:
rbtdef = sympybotics.RobotDef('Example Robot', [('pi/2', 0, 0, 'q')], dh_convention='standard') rbtdef.frictionmodel = {'Coulomb', 'viscous'} rbtdef.gravityacc = sympy.Matrix([0, 0,-9.81]) rbt = sympybotics.RobotDynCode(rbtdef, verbose=True) tau_str = sympybotics.robotcodegen.robot_code_to_func('C', rbt.g_code, 'tau_out', 'tau', rbtdef) print(tau_str)
i got tau_out[0] = 0. But as alpha is pi/2 and the gravity direction is along z-axis for the base link, the gravity term should not be 0 but something related to m and ly. is there anything wrong with my code? Thank you very much for help!

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