-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish to topic cmd_val #5
Comments
Hi, there's a good example provied by @kallaspriit. Please refer to issue #1. |
Yeah my robot uses this library for physical and simulated differential drive robot, works nicely :) https://github.com/kallaspriit/rosbot |
@kallaspriit I have checked your library, but I don't understand which part do I need to create a node that creates cmd_vel topic and sends the correct data to odrive. I'm new at this. Can you help me ? I have seen that you use joystick to send a Twist message, but I dont know where is that twist message being read and then converted to values that odrive driver understands. |
For manual testing See this for reference To run in, you can run
Which does the same thing. |
Ok, but who is subscribing to |
Before using this package, you need to be familiar with ros2_control framework. |
Ok. Some example of how to use an implement diff_drive_controller with odrive package would be nice. @kallaspriit could you help me with this ? |
Well the rosbot repo IS an example of how to implement diff drive controller with odrive, not sure what else you need. Familiarize yourself with ROS2, ros2_control, URDF's and read the repo. It's all configuration, no actual code is needed but it takes time to understand what does what, no way around it. Main configuration is in robot URDF (Universal Robot Descriptor File), take a look at |
Ok, thank you @kallaspriit and @borongyuan four your help. |
Is there a good example how to control two motors for differential drive robot ? I would like to publish Twist message to cmd_val topic to control velocity of two motors.
The text was updated successfully, but these errors were encountered: