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

Missing urdf_parser_plugin exec_dependencies? #187

Open
RiZom-91 opened this issue Jan 18, 2022 · 4 comments
Open

Missing urdf_parser_plugin exec_dependencies? #187

RiZom-91 opened this issue Jan 18, 2022 · 4 comments

Comments

@RiZom-91
Copy link

RiZom-91 commented Jan 18, 2022

Hi,

I've noticed this package depends on urdf for build and execution but urdf only depends on urdf_parser_plugin for build not execution. As a result, running ros2 run robot_state_publisher robot_state_publisher <urdf_file> fails with the following error on my setup:

terminate called after throwing an instance of 'pluginlib::ClassLoaderException'
  what():  package 'urdf_parser_plugin' not found, searching: [/usr]

I can modify my setup to add urdf_parser_plugin to execution dependencies but maybe it should be changed at package level.

Best Regards,
Romain GIMENEZ

@clalancette
Copy link
Contributor

Sorry for the long delay in answering here. This error is pretty weird to me, because urdf_parser_plugin isn't an instantiated class; it is only a header file. So it really should only be necessary at build time, not at runtime. Can you give more details on what ROS 2 distribution you are using, what URDF file you are using, and the version of robot_state_publisher and urdf_parser_plugin you have?

@SeeRich
Copy link

SeeRich commented Jul 11, 2022

@RiZom-91 Could you please elaborate on what you did to work around this issue. I am encountering the same issue and adding ROS_EXEC_DEPENDS = "urdf-parser-plugin" to my bitbake recipe file does not seem to fix the issue? Any advice would be appreciated.

@whni
Copy link

whni commented May 5, 2024

@clalancette Hi I am encountering the same issue. Not sure if this issue is still under track. My env is Yocto (kirkstone) + ROS 2 (humble)

[robot_state_publisher-1] terminate called after throwing an instance of 'pluginlib::ClassLoaderException'
[robot_state_publisher-1]   what():  package 'urdf_parser_plugin' not found, searching: [/usr]
[ERROR] [robot_state_publisher-1]: process has died [pid 933, exit code -6, cmd '/usr/lib/robot_state_publisher/robot_state_publisher --ros-args --params-file /tmp/launch_params_vcvbvyxx --params-file /tmp/launch_params_kvj4v1d7'].

@whni
Copy link

whni commented May 6, 2024

Solved by adding

RDEPENDS:${PN} += "urdf-parser-plugin"

to urdf_%.bbappend

image

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

4 participants