Skip to content

How to transfer base velocities to a differential drive robot? #121

Answered by stephane-caron
aman-ga asked this question in Q&A
Discussion options

You must be logged in to vote

You did not specify what $v$ and $w$ are but I'm guessing $v$ is the linear (longitudinal) velocity and $w$ is the angular velocity of the differential-drive model. In that case you can read them straightaway from the velocity vector that is computed at these lines of the example:

        # Compute velocity and integrate it into next configuration
        velocity = solve_ik(configuration, tasks, dt, solver=solver)
        configuration.integrate_inplace(velocity, dt)

To understand the structure of this vector, let's check:

In [2]: robot.nv
Out[7]: 17

The Stretch robot itself has 14 actuated joints (checked e.g. from the URDF file directly, or from the robot description index here). On to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephane-caron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants