UniversalRobots / Universal_Robots_ROS2_Gazebo_Simulation

BSD 3-Clause "New" or "Revised" License
63 stars 27 forks source link

Controller Manager not available and empty Gazebo environment #50

Open michalinadengusiak opened 8 months ago

michalinadengusiak commented 8 months ago

I am trying to launch the simulation on ROS2 Iron on WSL (Ubuntu 22.04) on a Windows 10 device, but unfortunately I am getting the following errors that my controller manager is not available: image

I tried to track down the problem and was looking at the node and topic lists while launching the simulation and this is what I gathered: image

image

Therefore, I think that there is problem with publishing the controller manager, but I am unsure and don't really know how to implement a change...

I know that a similar issue was already closed #7 ,but the mentioned solution does not work for me: image

Furthermore, because of this issue rviz is only semi-built, with the RobotModels status being an error: image

And Gazebo is empty: image

Any help would be appreciated, as I am still discovering ROS2 Iron and just installed WSL.

tera-bytes commented 8 months ago

I'm pretty much having the same issue rn so can't be of much help but:

About a week ago, the whole simulation + rviz worked perfectly for me when I replaced the ur_macro.xacro file with the one under the Universal Robots Description rolling branch and rebuilt.

However, I had to reinstall ubuntu due to a separate issue unrelated to this and I tried to do everything the same way and it no longer shows the proper rviz robot. The gazebo sim shows up but collapses on itself (folds downwards) slowly while the rviz is just white and collapsed. So now I'm not too sure if the previous fix works anymore but you could give it a try?

LucaMIMOUNI commented 1 week ago

I got the exact same issue :

Config

I am trying to launch simu for ur10e through this command : ros2 launch ur_simulation_gazebo ur_sim_control.launch.py

And got this error : [spawner_joint_trajectory_controller]: Could not contact service /controller_manager/list_controllers [spawner-3] [INFO] [1726923332.717678239] [spawner_joint_trajectory_controller]: waiting for service /controller_manager/list_controllers to become available... [spawner-2] [WARN] [1726923332.875623126] [spawner_joint_state_broadcaster]: Could not contact service /controller_manager/list_controllers [spawner-2] [INFO] [1726923332.876769377] [spawner_joint_state_broadcaster]: waiting for service /controller_manager/list_controllers to become available... ect

I try to add some time-out to the controller_manager to let the gazebo simulation launch, but didn't work. Tried also what @tera-bytes suggested, but didn't work as well...

LucaMIMOUNI commented 1 week ago

We find the solution for me here, hope it could help you too ! My_solution