gazebosim / sdformat

Simulation Description Format (SDFormat) parser and description files.
http://sdformat.org
Apache License 2.0
166 stars 92 forks source link

Parsing a URDF string injects "<urdf-string>" into file paths #794

Open oldtopos opened 2 years ago

oldtopos commented 2 years ago

Environment

When parsing a URDF string, parser.cc function readDoc places "" into file pathing via SetFilePath. This literal then appears in relative file paths for items such as meshes, breaking include capability.

Description

It would be useful to at least have a config switch suppressing this behavior.

Steps to reproduce

  1. Launch ign gazebo
  2. Process a URDF file with meshes through xacro
  3. Launch robot state publisher to load the output of (2) on a topic
  4. Launch ros_ign_gazebo create to spwan an entity, referencing the topic in (3)
  5. Examine the resulting file paths and note "<urdf-string>" in mesh paths
azeey commented 2 years ago

Thanks for reporting this issue. Do you know if this is a regression?