osrf / gazebo_osm

OpenStreetMap support for Gazebo
30 stars 37 forks source link

Use gzsdf command to validate sdf files #3

Open scpeters opened 10 years ago

scpeters commented 10 years ago

We should consider using the gzsdf tool to validate auto-generated sdf files.

gzsdf check world.sdf

An alternative is to validate against a schema, when one exists (see this ticket).

cc'ing @nkoenig

scpeters commented 10 years ago

Some preliminary schemas for sdf are located at:

http://sdformat.org/schemas/

Tashwin commented 10 years ago

Got it will take a look at it.

Tashwin commented 10 years ago

Also, I was having the following issue. I have added some new features to the maps. The sdf file which is generated works well for smaller areas, but for larger areas, I am getting the following error from gazebo.

$ gazebo outFile.sdf 
Gazebo multi-robot simulator, version 2.2.1
Copyright (C) 2012-2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Msg Waiting for master
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.1.62
Gazebo multi-robot simulator, version 2.2.1
Copyright (C) 2012-2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Msg Waiting for master
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.1.62
Error [ConnectionManager.cc:565] Unable to get namespaces from master
Warning [Publisher.cc:134] Queue limit reached for topic /gazebo/default/model/info, deleting message. This warning is printed only once.

I have run gzsdf check which returns a 'Success' value.

Could you point me as to where I might be going wrong?

scpeters commented 10 years ago

It's hard to diagnose from this error message. If you post the world file on https://gist.github.com then I'll test it.

Tashwin commented 10 years ago

I posted the world file on gist. Here's the link: https://gist.github.com/Tashwin/78b1451a848ebbe97f76

Tashwin commented 10 years ago

I have added tests for output sdf file using both the schema and the gzsdf tool.

scpeters commented 10 years ago

I just loaded the world file successfully. Is it still not loading properly for you?

Tashwin commented 10 years ago

I can load it in but I'm still getting those error messages.