Can't run pioneer2dx.world in gazebo, segmentation fault
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"
@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.
I used the commands: cd /opt/ros/diamondback/stacks/simulator_gazebo/gazebo/bin ./gazebo /home/<username>/ros_workspace/pioneer2dx.world
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.@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
@MatijaB To avoid confusion, you can also download the pioneer2dx.world file from this location - http://ubuntuone.com/5pWIiUyo1mhrY2PHP4I86C
@MatijaB Also, the permission (sudo) may be an issue ! So, it will either be (1) path or (2) permission (sudo)