-
Notifications
You must be signed in to change notification settings - Fork 93
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
Launching a paused simulation makes spawners from the same launchfile fail #421
Comments
Is there a work around for this? There also seems to be some side effects, not sure the lidar sensor starts and slam toolbox never seems to, even when I unpause in under 5 seconds. Here are some log files from startup under Iron/Fortress and then under Jazzy/Harmonic, but it seems its more about the changes to this package than Jazzy or Harmonic. Maybe same issue if I update to latest in Iron. Atm I am unable to use Gazebo Harmonic under Jazzy, sticking with older not current ( available updates not applied ) Gazebo Fortress under Iron which is EOL now. Its moot, just trying to move to currently supported env that is LTS. Thank you for your efforts! |
the fix is the linked PR with setting a higher timeout. have you tried that? |
I assume you mean I never see these lines from slam toolbox before gz_ros2_control starts Or this after I unpause and CM/joint broadcaster starts, avoiding the timeout |
Looks like I am on an older version per the comments, I have an older argument. [gazebo-1] [INFO] [1730821015.714333422] [controller_manager]: Activating controllers: [ joint_state_broadcaster ]
[gazebo-1] [WARN] [1730821017.620083592] [gz_ros_control]: Desired controller update period (0.1 s) is slower than the gazebo simulation period (0 s).
[gazebo-1] [ERROR] [1730821020.714456731] [controller_manager]: Switch controller timed out after 5.000000 seconds!
[spawner-11] [ERROR] [1730821020.717520662] [spawner_joint_state_broadcaster]: Failed to activate controller
[ERROR] [spawner-11]: process has died [pid 14911, exit code 1, cmd '/opt/ros/jazzy/lib/controller_manager/spawner joint_state_broadcaster -c /controller_manager --controller-manager-timeout 10 --ros-args']. The issue with slam toolbox maybe unrelated and specific to changes in that package for jazzy or newer not sure. There maybe two unrelated issues, or the issue might be related. |
After the refactoring done by ros-controls/ros2_control#1638, the
switch_controller
service has a working timeout for each controller. This time is hardcoded within the spawner.py to 5s.If the simulation is started paused, like with omitting the
-r
argument for gz_sim.launch.pythen the CM services are started but the update method is not called yet. This leads to running into the timeout
The same happens if a running simulation is paused and a service call to the CM is done.
Same as ros-controls/gazebo_ros2_control#380
The text was updated successfully, but these errors were encountered: