Robotics StackExchange | Archived questions

How to use diff_drive_controller form ros_control

Hello, I am still confused with how to exactly use differential drive controllers from ros_control. I have a raspberry pi running 2 wheels, I understand that the controller will take twist msgs which is described in the documentation, I am just confused about how to take out the velocity commands for individual wheels, as there is no published topics for those, please guide me here or direct to a direction. Thanks in advance.

Asked by Prof. xavier on 2018-08-10 13:33:58 UTC

Comments

Answers

The documentation states that ros_control's diff_drive_controller works with wheel joints through a velocity interface. You have to implement a ros_control hardware_interface that interacts with the motor driver and wheel encoders of each individual wheel. This hardware interface can send commands to each individual wheel using the SDK or library provided by the hardware vendor.

Asked by Roberto Z. on 2022-12-20 17:11:41 UTC

Comments