[ros2] Add ackermann drive plugin#947
Conversation
Isn't it weird? The car seems to be fine in gazebo. Any idea what could be the problem? |
Use gazebo database model
|
@shiveshkhaitan , mind fixing conflicts? |
With the latest commits, the front wheels look and steering wheel look good to me, but the rear wheels are not showing. This is printing some wrong info: gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_ackermann_drive.cpp Lines 397 to 398 in 2484790 More specifically: Inspecting the TF tree on RViz, we can see that the rear wheels are disconnected from the rest of the tree. The parent of the rear wheels is the
I think the 2nd option is better to be generalized for other kinematic structures which don't have an intermediate link like |
Should this be published only for the demo? Because if we integrate into the code, then it won't generalise again |
|
The user chooses the base link ( So what we can do is get the parent until we find one which matches the base link name. Here: Instead of getting just the relative pose from the joint to its child link, we need to accumulate the relative poses of all joints and links until we find the base link. I think you'll need to use Or we can just, for now, not publish the wheel transforms in case the joint parent's name is different from |
|
@osrf-jenkins run tests please |
|
I just realized that I merged this without checking CI and the test is failing sometimes. Can you take a look, @shiveshkhaitan ? |
* [ros2] Add ackermann drive plugin * Minor fixes Use gazebo database model * Update example usage * Fix TF for demo

Added ackermann drive plugin for ROS2. It subscribe to geometry_msgs/Twist for commands.
Example usage: