Spawner waiting for '/controller_manager' services to be available when they are already available

asked 2023-05-31 10:03:45 -0600

Grunthorin gravatar image

I'am trying to use an odrive controller on ros2 humble but it keeps showing the error "Waiting for '/controller_manager' services to be available" when /controller_manager is showing on ros2 service list.

[spawner-3] [INFO] [1685544799.330680557] [spawner_joint_state_broadcaster]: Waiting for '/controller_manager' services to be available
[spawner-4] [INFO] [1685544799.330680564] [spawner_diffbot_base_controller]: Waiting for '/controller_manager' services to be available
[rviz2-5] [INFO] [1685544799.791060858] [rviz2]: Stereo is NOT SUPPORTED
[spawner-3] [INFO] [1685544801.352521938] [spawner_joint_state_broadcaster]: Waiting for '/controller_manager' services to be available
[spawner-4] [INFO] [1685544801.353016348] [spawner_diffbot_base_controller]: Waiting for '/controller_manager' services to be available
[spawner-3] [INFO] [1685544803.378698306] [spawner_joint_state_broadcaster]: Waiting for '/controller_manager' services to be available
[spawner-4] [INFO] [1685544803.378921360] [spawner_diffbot_base_controller]: Waiting for '/controller_manager' services to be available
[spawner-3] [INFO] [1685544805.398779134] [spawner_joint_state_broadcaster]: Waiting for '/controller_manager' services to be available
[spawner-4] [INFO] [1685544805.398779136] [spawner_diffbot_base_controller]: Waiting for '/controller_manager' services to be available
[spawner-4] [ERROR] [1685544807.426102130] [spawner_diffbot_base_controller]: Controller manager not available
[spawner-3] [ERROR] [1685544807.426102139] [spawner_joint_state_broadcaster]: Controller manager not available
[ERROR] [spawner-4]: process has died [pid 8557, exit code 1, cmd '/opt/ros/humble/lib/controller_manager/spawner diffbot_base_controller -c /controller_manager --ros-args'].
[ERROR] [spawner-3]: process has died [pid 8555, exit code 1, cmd '/opt/ros/humble/lib/controller_manager/spawner joint_state_broadcaster -c /controller_manager --ros-args'].

Services list:

user@nuc:~$ ros2 service list
/controller_manager/describe_parameters
/controller_manager/get_parameter_types
/controller_manager/get_parameters
/controller_manager/list_parameters
/controller_manager/set_parameters
/controller_manager/set_parameters_atomically
/robot_state_publisher/describe_parameters
/robot_state_publisher/get_parameter_types
/robot_state_publisher/get_parameters
/robot_state_publisher/list_parameters
/robot_state_publisher/set_parameters
/robot_state_publisher/set_parameters_atomically
/rviz2/describe_parameters
/rviz2/get_parameter_types
/rviz2/get_parameters
/rviz2/list_parameters
/rviz2/set_parameters
/rviz2/set_parameters_atomically
/spawner_diffbot_base_controller/describe_parameters
/spawner_diffbot_base_controller/get_parameter_types
/spawner_diffbot_base_controller/get_parameters
/spawner_diffbot_base_controller/list_parameters
/spawner_diffbot_base_controller/set_parameters
/spawner_diffbot_base_controller/set_parameters_atomically
/spawner_joint_state_broadcaster/describe_parameters
/spawner_joint_state_broadcaster/get_parameter_types
/spawner_joint_state_broadcaster/get_parameters
/spawner_joint_state_broadcaster/list_parameters
/spawner_joint_state_broadcaster/set_parameters
/spawner_joint_state_broadcaster/set_parameters_atomically

The controller in question that I'am using is the odrive_ros2_control from Factor-Robotics: https://github.com/Factor-Robotics/od...

Am I missing something?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

I have followed the other questions about this here on the forum but it didn't worked either. Does anyone have any clue?

Grunthorin gravatar image Grunthorin  ( 2023-06-02 06:08:43 -0600 )edit

Maybe updating your question to add a list of "what I tried but didn't resolve the issue" would help others to understand what's going on.

130s gravatar image 130s  ( 2023-06-04 13:18:26 -0600 )edit