Robotics StackExchange | Archived questions

SDF files and collada dataa

Hi,

I'd like to know if it is possible to incorporate the collada files directly in the SDF files instead of calling models or files?

If not, would it be interesting to add this functionality, as a pull request?

Thank you,

Asked by XB32Z on 2016-03-29 10:08:30 UTC

Comments

You mean pasting the COLLADA's XML directly into an SDF model instead of just referencing the .dae file?

Asked by chapulina on 2016-03-29 11:19:46 UTC

Can you describe your use case, and the benefit of directly incorporating collada into SDF? Complexities arise when mixing two different formats into one file.

Asked by nkoenig on 2016-03-29 11:39:12 UTC

Yes I mean to paste the COLLADA's XML directly into the .sdf file instead of referencing the .dae files. My use case would be to send complex shaped models to a server through a message without copying the COLLADA files to the model repo I didn't looked into the code how the COLLADA files are parsed when referenced but I was thinking to just use a new flag like //here is the COLLADA XML and consider things in between as a string.

Asked by XB32Z on 2016-03-30 01:20:44 UTC

Answers

Right now you can't send collada files directly in SDF. It probably wouldn't be a good idea because it's mixing two different formats.

I believe you can resolve your issue by sending a message with two strings, or by creating a new custom message.

Asked by nkoenig on 2016-03-30 16:31:24 UTC

Comments

Hi, thx for your answer! This solution looks more clean than adding COLLADA to SDF! What do you mean by passing two strings?

Asked by XB32Z on 2016-03-31 01:51:31 UTC