-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add example on how to load external URDF or SDF model and their resources #170
Comments
\CC @IanTheEngineer |
This upstream issue seems to be related: RobotLocomotion/drake#10531 . |
FYI an update on current best practice: the parser now offers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(I am not sure if this is the right place where to file this issue, feel free to move it somewhere else if it make sense to do so).
For users that use drake as any other library in their own plain cmake/ROS1/ROS2 project (or robot manufactures that provide models of their robot, as in our case for https://github.com/robotology/icub-models), it would be convenient to have a small example on how to load a URDF or SDF that is not part of drake's provided resources. However, Drake's docs typically just cover the case of loading a file that is present inside Drake, see for example https://drake.mit.edu/doxygen_cxx/classdrake_1_1multibody_1_1_multibody_plant.html#sdf_loading . By inspecting https://drake.mit.edu/doxygen_cxx/classdrake_1_1multibody_1_1_package_map.html and https://drake.mit.edu/doxygen_cxx/classdrake_1_1multibody_1_1_parser.html it seems that it should be sufficient to have the following snippets.
Load external URDF
To load a URDF file installed by ROS (if
ROS_PACKAGE_PATH
is properly defined in the environment):Load external SDF
To load a SDF model contained in a repo structured as documented in http://gazebosim.org/tutorials?tut=model_structure, for example https://bitbucket.org/osrf/gazebo_models/src/default/
However I did not tested directly this snippets of code, so it is possible that they are wrong.
The text was updated successfully, but these errors were encountered: