Skip to content

[ERROR] [controller_manager]: Could not initialize the controller named 'diffdrive_controller' #988

Open
@SpaceSoarer90

Description

@SpaceSoarer90

Describe the Bug
[webots_controller_TurtleBot3Burger-5] [ERROR] [1727690103.628136189] [controller_manager]: Could not initialize the controller named 'diffdrive_controller'
[webots_controller_TurtleBot3Burger-5] Exception thrown during init stage with message: Invalid value set during initialization for parameter 'left_wheel_names': Parameter 'left_wheel_names' cannot be empty.

Trying the webots_ros2_turtlebot package but fails on the 'diffdrive_controller' node. This makes me unable to use the teleop nodes. I know that it uses "/opt/ros/jazzy/share/webots_ros2_turtlebot/resource/ros2control.yml" as the --params-file, however, that seems to be complete.

...
diffdrive_controller:
  ros__parameters:
    left_wheel_names: ["left wheel motor"]
    right_wheel_names: ["right wheel motor"]
...

Steps to Reproduce

  1. Install necessary packages for webots_ros2_turtlebot (webots, ros2, ros-jazzy-ros2-turtle
  2. $ ros2 launch webots_ros2_turtlebot robot_launch.py
  3. See terminal for the error.

Expected behavior
Being able to drive the robot with teleop nodes.

Affected Packages
List of affected packages:

  • webots_ros2_turtlebot

Screenshots
image
image

System

  • Webots Version: [e.g., R2019b, R2020a revision 1]
  • ROS Version: [e.g., Dashing, Eloquent]
  • Operating System: [e.g., Windows 10, Linux Ubuntu 18.04, macOS Mojave]
  • Graphics Card: [e.g., NVIDIA GeForce RTX 2080 11 GB, AMD Radeon RX 580 8GB, etc.]

Additional context
The wifi card of my laptop is not working, maybe that is the problem? The webots_controller python script uses ipc by default but maybe using tcp would be better?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions