Skip to content

Difficulty/problem launching ackermann_drive_example.launch.py #513

@tommyleekaelin

Description

@tommyleekaelin

Describe the bug
I'm getting an error when launching the ackermann_drive_example.launch.py. I'm fairly new to robotics and not sure if I've got something completely wrong.

To Reproduce
Steps to reproduce the behavior:

  1. colcon build
  2. source install/setup.bash
  3. Launch ros2 launch gz_ros2_control_demos ackermann_drive_example.launch.py
  4. Error: [spawner-6] spawner: error: unrecognized arguments: --controller-ros-args -r /ackermann_steering_controller/tf_odometry:=/tf``[ERROR] [spawner-6]: process has died [pid 3111, exit code 2, cmd '/opt/ros/jazzy/lib/controller_manager/spawner ackermann_steering_controller --param-file /workspace/install/gz_ros2_control_demos/share/gz_ros2_control_demos/config/ackermann_drive_controller.yaml --controller-ros-args -r /ackermann_steering_controller/tf_odometry:=/tf --ros-args'].

Expected behavior
I think that the ackermann_steering_controller should be configured and activated so that the robot moves when I run ros2 run gz_ros2_control_demos example_ackermann_drive

Environment (please complete the following information):

  • OS: Ubuntu 24.04.1 LTS noble
  • Version Jazzy
  • (working in Docker. Image: unfrobotics/docker-ros2-jazzy-gz-rviz2:latest)

Additional context
I tried it in the jazzy and rolling branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions