Skip to content
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

Use gzsdf command to validate sdf files #3

Open
scpeters opened this issue Feb 4, 2014 · 8 comments
Open

Use gzsdf command to validate sdf files #3

scpeters opened this issue Feb 4, 2014 · 8 comments

Comments

@scpeters
Copy link
Member

scpeters commented Feb 4, 2014

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
Copy link
Member Author

scpeters commented Feb 7, 2014

Some preliminary schemas for sdf are located at:

http://sdformat.org/schemas/

@Tashwin
Copy link
Contributor

Tashwin commented Feb 9, 2014

Got it will take a look at it.

@Tashwin
Copy link
Contributor

Tashwin commented Feb 9, 2014

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
Copy link
Member Author

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
Copy link
Contributor

Tashwin commented Feb 10, 2014

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

@Tashwin
Copy link
Contributor

Tashwin commented Feb 10, 2014

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

@scpeters
Copy link
Member Author

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

@Tashwin
Copy link
Contributor

Tashwin commented Feb 11, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants