-
Notifications
You must be signed in to change notification settings - Fork 773
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
spawn_model package_to_model feature is brittle #449
Comments
Confirmed does not work if other attributes (like scale) come before the filename attribute. I'm going to use python's xml library to parse the xml and replace the filename attributes. This has the added benefit of detecting if there is an xml error quickly on the client side before sending it off to gazebo |
Fixed in #730, now uses python's xml library to find the filename attribute in any mesh tags, and url library to replace the protocol. Should be very robust |
The
spawn_model
command recently added apackage_to_model
option in #288 that convertspackage://
tomodel://
in the meshfilename
attribute. It uses regular expressions, which is a brittle way to modify xml. Support for both double and single quotes are being added in #445 but it is still sensitive to the order of attributes, since the<mesh>
element can also have ascale
attribute (see atlas.urdf for an example), and I believe this regular expression wouldn't work if the attributes are rearranged.Here's the different cases I can think of:
The text was updated successfully, but these errors were encountered: