-
-
Notifications
You must be signed in to change notification settings - Fork 163
[ERROR] [controller_manager]: Could not initialize the controller named 'diffdrive_controller' #988
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
Comments
Webots has been broken for quite some time for ROS2, I suggest using Gazebo. |
Hi I also enter this problem, and I solved it by modifying the launch file diff_drive_controller_spawner = Node(
package='controller_manager',
executable='spawner',
arguments=["diff_drive_controller",
"--param-file", ros2_control_params] + controller_manager_timeout,
) I tested on ubuntu 24.04, ROS2 Jazzy, Webots 2023A from apt install. |
I reran the turtlebot example following your scenario and it still loads incorrectly, here is the log
|
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.
Steps to Reproduce
$ ros2 launch webots_ros2_turtlebot robot_launch.py
Expected behavior
Being able to drive the robot with teleop nodes.
Affected Packages
List of affected packages:
Screenshots


System
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?
The text was updated successfully, but these errors were encountered: