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

CMake Error at CMakeLists.txt:19 (find_package): can't find "urdf_parser_plugin" #2

Open
newcanopies opened this issue May 2, 2021 · 3 comments
Labels
question Further information is requested

Comments

@newcanopies
Copy link

newcanopies commented May 2, 2021

Thanks for this package,
where does the missing urdf_parser_plugin come from?
It doesn't match any file names in this entire repo.
See build error:

colcon build --packages-select sdformat_urdf --symlink-install

Starting >>> sdformat_urdf
--- stderr: sdformat_urdf                         
CMake Error at CMakeLists.txt:19 (find_package):
  By not providing "Findurdf_parser_plugin.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "urdf_parser_plugin", but CMake did not find one.

  Could not find a package configuration file provided by
  "urdf_parser_plugin" with any of the following names:

    urdf_parser_pluginConfig.cmake
    urdf_parser_plugin-config.cmake

  Add the installation prefix of "urdf_parser_plugin" to CMAKE_PREFIX_PATH or
  set "urdf_parser_plugin_DIR" to a directory containing one of the above
  files.  If "urdf_parser_plugin" provides a separate development package or
  SDK, be sure it has been installed.


---
Failed   <<< sdformat_urdf [6.92s, exited with code 1]
                                
Summary: 0 packages finished [7.04s]
  1 package failed: sdformat_urdf
  1 package had stderr output: sdformat_urdf

env

  • Ubuntu 20.04
  • ROS2 Foxy
  • binaries
  • server glx vendor string: SGI
  • sudo apt update = up to date
@newcanopies
Copy link
Author

newcanopies commented May 2, 2021

also, what would be the bash command to run an SDF to URDF conversion?

@sloretz
Copy link
Contributor

sloretz commented May 3, 2021

where does the missing urdf_parser_plugin come from?

It comes from the ros2/urdf repository. https://github.com/ros2/urdf . It's available in ROS Galactic or ROS Rolling. https://index.ros.org has a search bar for finding packages: https://index.ros.org/p/urdf_parser_plugin/github-ros2-urdf/#galactic

also, what would be the bash command to run an SDF to URDF conversion?

There isn't one, but it may be possible to write one making use of this API: ros/urdfdom#12 (comment) . This repo provides a library and a urdf_parser_plugin to convert SDFormat XML to URDF C++ DOM structures. That means when you have this package installed, you can give an SDFormat robot description to tools like robot_state_publisher, and other tools like RViz2 will be able to display that robot description (with some limitations on the materials that can be displayed).

@sloretz sloretz added the question Further information is requested label May 3, 2021
@newcanopies
Copy link
Author

Thanks very much for all of this information,
it prompted me to revisit the sdformat_urdf package as a potential method to close the current gap between simulation <> control, given that mesh based URDF models cannot be visualized in Gazebo, also related to the background discussion ros/robot_state_publisher#144

Is the way to implement this package:

  • include the <sdformat_urdf_plugin> in the SDF XML description
  • depend the robot_description package.xml on sdformat_urdf ?

my use case is propagating control from a web-cli to Gazebo using the robot_state_publisher, joint_state_publisher plugins and some move_group yamls. lots of heterogenous systems to interface, and they don't even share a robot description convention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants