Skip to content
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

Load the URDF to the resource_manager before parsing it to CM #262

Conversation

saikishor
Copy link
Member

@saikishor saikishor commented Jan 16, 2024

These changes are needed after the merging of ros-controls/ros2_control#1271 and ros-controls/ros2_control#1272. It seems like the gazebo_ros2_control doesn't load the URDF into the resource manager, and this is causing the CM services not to start.

However, loading the URDF with the load_urdf method will probably fail, because this method originally loads and initializes the hardware interfaces and this step might probably fail. For this reason, I'm catching the exception here, but the overall behaviour will work.

If approved, this will need backport to Iron and Humble

Needs: ros-controls/ros2_control#1301
Fixes: ros-controls/ros2_control#1299

@saikishor saikishor force-pushed the fix_crash_for_missing_urdf_in_resource_manager branch from bd8e5be to 86ac698 Compare January 16, 2024 15:26
@saikishor
Copy link
Member Author

saikishor commented Jan 16, 2024

@christophfroehlich If this PR: ros-controls/ros2_control#1301 gets merged. We won't be needing this PR
This PR needs: ros-controls/ros2_control#1301 to be merged

@ahcorde
Copy link
Collaborator

ahcorde commented Jan 18, 2024

CI is not passing because of the new API in ros2_control. @bmagyar when do you have plant to do a new release?

@saikishor
Copy link
Member Author

@ahcorde Bence tagged and released the required changes in the distros

@ahcorde
Copy link
Collaborator

ahcorde commented Jan 22, 2024

With testing package CI is passing, merging it

@ahcorde ahcorde merged commit f5baf71 into ros-controls:master Jan 22, 2024
4 of 5 checks passed
@ahcorde
Copy link
Collaborator

ahcorde commented Jan 22, 2024

https://github.com/Mergifyio backport humble iron

Copy link
Contributor

mergify bot commented Jan 22, 2024

backport humble iron

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jan 22, 2024
* Load the URDF to the resource_manager before parsing it to CM constructor (fixes ros-controls/ros2_control#1299)

(cherry picked from commit f5baf71)
mergify bot pushed a commit that referenced this pull request Jan 22, 2024
* Load the URDF to the resource_manager before parsing it to CM constructor (fixes ros-controls/ros2_control#1299)

(cherry picked from commit f5baf71)
ahcorde added a commit that referenced this pull request Jan 23, 2024
…267)

* Load the URDF to the resource_manager before parsing it to CM constructor (fixes ros-controls/ros2_control#1299)

(cherry picked from commit f5baf71)

Co-authored-by: Sai Kishor Kothakota <saisastra3@gmail.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
ahcorde added a commit that referenced this pull request Jan 23, 2024
…266)

* Load the URDF to the resource_manager before parsing it to CM constructor (fixes ros-controls/ros2_control#1299)

(cherry picked from commit f5baf71)

Co-authored-by: Sai Kishor Kothakota <saisastra3@gmail.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
HovorunB added a commit to pixel-robotics/gazebo_ros2_control that referenced this pull request Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Humble] Gazebo simulation failing after merging #1272
3 participants