Skip to content

How I can add velocitycommand to a ros2 control node #378

Answered by khughes-bdai
JiaheXu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @JiaheXu ,
The driver already has a subscription to the cmd_vel topic. This internally calls synchro velocity commands:

def cmd_velocity_callback(self, data: Twist) -> None:

and
https://github.com/bdaiinstitute/spot_wrapper/blob/6548b7a899a517bc24f840ba5eb36519b109ea4c/spot_wrapper/wrapper.py#L1262
You should be able to use this to publish twists and move the robot with this, let me know if you run into issues.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khughes-bdai
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