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

Error initializing URDF to resource manager #394

Closed
tomaszkapron opened this issue Dec 17, 2024 · 6 comments
Closed

Error initializing URDF to resource manager #394

tomaszkapron opened this issue Dec 17, 2024 · 6 comments

Comments

@tomaszkapron
Copy link

tomaszkapron commented Dec 17, 2024

After the change of ros2_control from version 2.43.1 to 2.44 gazebo_ros2_control run into the following error during initialization:

[gzserver-1] ?[31m[ERROR 1734368594.176366640] [gazebo_ros2_control]: Error initializing URDF to resource manager! (Load() at ./src/gazebo_ros2_control_plugin.cpp:302)

gazebo_ros2_control pacakge is on version 4.10, ROS 2 version - humble. The error does not occur with 2.43 version of ros2_control.

I was able to reproduce the error having ros2_control version 2.44 installed using gazebo_ros2_control_demos package with:

ros2 launch gazebo_ros2_control_demos cart_example_effort.launch.py
@christophfroehlich
Copy link
Contributor

I built the humble stack now from source, and was able to launch the demo successfully. Same for humble-main binaries. Have you upgraded all upstream ROS packages as well, i.e. sudo apt-get upgrade?

 $ apt list ros-humble-ros2-control ros-humble-gazebo-ros2-control ros-humble-tinyxml2-vendor ros-humble-rclcpp ros-humble-gazebo-ros ros-humble-gazebo-dev
Listing... Done
ros-humble-gazebo-dev/jammy,now 3.7.0-1jammy.20241125.233927 amd64 [installed,automatic]
ros-humble-gazebo-ros2-control/jammy,now 0.4.10-1jammy.20241128.053639 amd64 [installed]
ros-humble-gazebo-ros/jammy,now 3.7.0-1jammy.20241128.043020 amd64 [installed]
ros-humble-rclcpp/jammy,now 16.0.11-1jammy.20241128.012309 amd64 [installed,automatic]
ros-humble-ros2-control/jammy,now 2.44.0-1jammy.20241128.034910 amd64 [installed]
ros-humble-tinyxml2-vendor/jammy,now 0.7.6-1jammy.20241125.234735 amd64 [installed,automatic]

@tomaszkapron
Copy link
Author

I mean it launches successfully and works correctly. But the error still exists there. I have the packages upgraded to same version as pointed in your comment. Can you just confirm you were able to launch demo without the error?

@christophfroehlich
Copy link
Contributor

ha, you are right 🙈 I'll have a look

@christophfroehlich
Copy link
Contributor

ros-controls/ros2_control#1960 fixes the error "accidentially": The resource manager does not throw now.

@shr-eyas
Copy link

How exactly did you fix this? @tomaszkapron
Thanks.

@tomaszkapron
Copy link
Author

You should probably build ros2_control from source until it is released to official apt repositories.

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

No branches or pull requests

3 participants