ros-controls / gz_ros2_control

Connect the latest version of Gazebo with ros2_control.
https://gazebosim.org
Apache License 2.0
92 stars 70 forks source link

Ackermann steering example (backport #349) #350

Closed mergify[bot] closed 6 days ago

mergify[bot] commented 1 week ago

Inspired by the diff_drive and tricycle_drive examples, created an ackermann drive example.

This example utilizes the ackermann_steering_controller from the steering_controllers_library. Its implementation is similar to the carlikebot example from ros2_control_demos.

Parameters for the controller are the default steering controller library parameters; rear_wheels_names and front_wheels_names. The steering (front in this example) wheels reference the steering joints and the rear wheels are just the drive wheels in the urdf.

The front drive wheels are linked to the steering joints for steering and mimic the rear wheels for drive.

The example can be brought up by running: ros2 launch gz_ros2_control_demos ackermann_drive_example.launch.py

and to view it moving, the following command should be run: ros2 launch gz_ros2_control_demos example_ackermann_drive


This is an automatic backport of pull request #349 done by Mergify.