ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Can't run pioneer2dx.world in gazebo, segmentation fault

asked 2012-04-04 00:46:46 -0500

MatijaB gravatar image

I tried to run the simulation as it's explained in this tutorial: http://mobotica.blogspot.com/2011/09/using-gazebo.html

I am a complete beginner in ROS, and I see that I have ros electric installed opposed to the diamondback one in the tutorial. The error I get is:

Any help would be greatly appreciated.

"/tmp/buildd/ros-electric-simulator-gazebo-1.4.10/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/XMLConfig.cc:77 : Exception: The world file can not be opened, check path and permissions

/tmp/buildd/ros-electric-simulator-gazebo-1.4.10/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/Simulator.cc:205 : Exception: The XML config file can not be loaded, please make sure is a correct file /tmp/buildd/ros-electric-simulator-gazebo-1.4.10/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/XMLConfig.cc:77 : Exception: The world file can not be opened, check path and permissions

Error Loading Gazebo /tmp/buildd/ros-electric-simulator-gazebo-1.4.10/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/Simulator.cc:205 : Exception: The XML config file can not be loaded, please make sure is a correct file /tmp/buildd/ros-electric-simulator-gazebo-1.4.10/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/XMLConfig.cc:77 : Exception: The world file can not be opened, check path and permissions

Segmentation fault"

edit retag flag offensive close merge delete

Comments

@IvanThe .world file I used is from here - http://playerstage.sourceforge.net/wiki/Gazebo:Tutorials:pioneer2dx_moving I placed it in my ros_workspace and I'm pretty sure I put the path in correctly.

MatijaB gravatar image MatijaB  ( 2012-04-04 05:18:45 -0500 )edit

I used the commands: cd /opt/ros/diamondback/stacks/simulator_gazebo/gazebo/bin ./gazebo /home/<username>/ros_workspace/pioneer2dx.world

MatijaB gravatar image MatijaB  ( 2012-04-04 05:20:46 -0500 )edit

Try the following command rosrun gazebo gazebo $( rospack find gazebo )/gazebo/share/gazebo/worlds/pioneer2dx.world. That's the pioneer2dx world file that is shipped with Gazebo and should work.

roehling gravatar image roehling  ( 2012-04-05 01:56:11 -0500 )edit

@MatijaB As mentioned by @Timo Röhling and @Ivan Rojas Jofre, I also think that the path is the problem - gazebo surely works nicely and pioneer2dx.world is a well written file

Arkapravo gravatar image Arkapravo  ( 2012-08-03 08:26:41 -0500 )edit

@MatijaB To avoid confusion, you can also download the pioneer2dx.world file from this location - http://ubuntuone.com/5pWIiUyo1mhrY2PHP4I86C

Arkapravo gravatar image Arkapravo  ( 2012-08-03 08:29:47 -0500 )edit

@MatijaB Also, the permission (sudo) may be an issue ! So, it will either be (1) path or (2) permission (sudo)

Arkapravo gravatar image Arkapravo  ( 2012-08-03 08:42:16 -0500 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2012-08-03 08:55:15 -0500

hsu gravatar image

updated 2012-08-03 10:42:26 -0500

Might be simpler to go the ros route at first, we maintain a ros-ified version of gazebo. All the relevant documentations, instructions for installation and tutorials are on ros.org.

Let us know if you have any question about any of these particular projects.

On a side note, if you are interested in inner workings of gazebo, and want the latest and greatest or hack on the sources, please visit gazebosim.org, start with these tutorials. If desired, you can find the gazebo repository on bitbucket.

Thanks.

edit flag offensive delete link more

Comments

@hsu Yo ! ...... but that may be a bit steeper learning curve for the newbie ! ..... I would say, for a newbie - stick to ROS and say about 3-4 weeks later check out gazebosim.org ! ...

Arkapravo gravatar image Arkapravo  ( 2012-08-03 09:46:19 -0500 )edit

@Arkapravo Thanks, I edited my post to reflect your suggestion :)

hsu gravatar image hsu  ( 2012-08-03 10:42:47 -0500 )edit

@hsu Cheers to that !!! :-)

Arkapravo gravatar image Arkapravo  ( 2012-08-03 11:31:49 -0500 )edit
0

answered 2012-04-04 00:55:39 -0500

Hi MatijaB!

Where you have the file? May be the problem is the path,

Another case, the file is not write correctly!!

Can you show your file? See you!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-04-04 00:46:46 -0500

Seen: 711 times

Last updated: Aug 03 '12