Parrot-Sphinx model spawning

Hey there!

I am willing to add external robot models to Sphinx. Does Sphinx use the same model spawn mechanism than Gazebo, or do I have to include any extra parts (i.e. plugin, …)?

You can spawn your own models with parrot-gz:

/opt/parrot-sphinx/usr/bin/parrot-gz model --spawn-file=myrobot.sdf --model-name="robot"

Hey guys,

I’m getting the following error when attempting to spawn a model:

/opt/parrot-sphinx/usr/bin/parrot-gz: error while loading shared libraries: libsdformat.so.3: cannot open shared object file: No such file or directory

I’m using parrot-gz as ocrave mentioned. Here’s what it looks like:

/opt/parrot-sphinx/usr/bin/parrot-gz model --spawn-file=/opt/parrot-sphinx/usr/share/sphinx/models/gate/model.sdf --model-name=“gate”

I also tried finding libsdformat3 in the package manager with no luck. Am I missing something?
I’m running on Ubuntu 16.04 with the latest sphinx installation.

Thanks!

Have you tried this command?

LD_LIBRARY_PATH=/opt/parrot-sphinx/usr/lib/ /opt/parrot-sphinx/usr/bin/parrot-gz model --spawn-file=/opt/parrot-sphinx/usr/share/sphinx/models/gate/model.sdf --model-name=gate

Thanks ocrave, that did the trick.