Robotics StackExchange | Archived questions

Sevice call timed out? struggling to load model

Hello,

I'm trying to load the attached sdf with the attached .dae file.

C:\fakepath\diff_bot.urdf.xml.sdf

C:\fakepath\base.c <- CHANGE .c to .dae

I run the folloiwng command in gazebo: gazebo.gz service -s /world/empty/create --reqtype ignition.msgs.EntityFactory --reptype ignition.msgs.Boolean --timeout 1000 --req 'sdf_filename: "[insert patht to file here]/diff_bot.urdf.xml.sdf", name: "sdf_model"' and all I get is a short pause, and then "Service call timed out".

Is there else I'm missing?

Asked by ryn on 2023-01-25 11:56:05 UTC

Comments

Is there service /world/empty/create listed when you run gz service -l. Also, I suggest running the gazebo server with -v4 flag to see any helpful messages.

Asked by azeey on 2023-01-25 16:19:36 UTC

nothing is listed when I run gz service -l. I also added -v4 to gz service -l and the full command I was using, and both output:

"ign: no version found in package 4"

Asked by ryn on 2023-01-25 17:37:32 UTC

How about ign service -l. I wonder if it's just a ign -> gz migration issue.

Asked by azeey on 2023-01-26 14:49:59 UTC

I'm using the gazebo from the snap store here: https://snapcraft.io/gazebo

the full command i used was gazebo.gz, I will edit my post to clarify that.

gazebo.gz service -l

returns nothing for me, its not the way I typed the command I think.

Asked by ryn on 2023-01-27 16:31:38 UTC

Ah, unfortunately, I haven't tried using snap to install gazebo, so I won't be able to help much.

Asked by azeey on 2023-01-30 18:57:50 UTC

where did you install it?

Asked by ryn on 2023-01-31 13:11:13 UTC

I normally use packages.osrfoundation.org repo with these instructions https://gazebosim.org/docs/garden/install_ubuntu

Asked by azeey on 2023-01-31 15:25:19 UTC

Answers

Hello, I am answering a bit late but I could make you example work with the Gazebo snap. I am getting the same error "Service call timed out" when the gazebo server is not started.

I downloaded your two files (URDF and mesh) and placed the mesh under Downloads/model_pkg/models/base.dae (since your URDF is specifying the model_pkg/models/base.dae).

In terminal 1, I type:

export IGN_GAZEBO_RESOURCE_PATH=/home/guillaume/Downloads gazebo.gz gazebo

Then select the "empty" world to start Gazebo.

In terminal 2: gazebo.gz service -s /world/empty/create --reqtype ignition.msgs.EntityFactory --reptype ignition.msgs.Boolean --timeout 1000 --req 'sdf_filename: "/home/guillaume/Downloads/diff_bot.urdf.xml.sdf", name: "sdf_model"' And this service is returning:

data: true Your model is then spawned into Gazebo.

I believe your error was coming from the fact that Gazebo was not started.

Asked by GuillaumeB on 2023-04-27 08:38:21 UTC

Comments