socrob / PioneerModel

Slightly adjusted pioneer model that was obtained from https://github.com/RafBerkvens/ua_ros_p3dx
GNU General Public License v3.0
1 stars 2 forks source link

gazebo crashes when launching pioneer #1

Open miguelvidex opened 6 years ago

miguelvidex commented 6 years ago

When I run the command:

roslaunch p3dx_gazebo gazebo.launch

I got this error, that is related not with the environment set up in gazebo but with pionner robot set up:

Error [Param.cc:451] Unable to set value [-nan -nan -nan] for key[size] gzclient: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreNode.cpp:630: virtual void Ogre::Node::setScale(const Ogre::Vector3&): Assertion `!inScale.isNaN() && "Invalid vector supplied as parameter"' failed. Aborted (core dumped) [gazebo_gui-2] process has died [pid 10368, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/miguel/.ros/log/395b95c0-b3f0-11e7-a966-6c4008924b24/gazebo_gui-2.log]. log file: /home/miguel/.ros/log/395b95c0-b3f0-11e7-a966-6c4008924b24/gazebo_gui-2*.log

Fbag96 commented 6 years ago

When i run the same command: roslaunch p3dx_gazebo gazebo.launch

shows me this:

Error [Param.cc:451] Unable to set value [-nan -nan -nan] for key[size] gzclient: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreNode.cpp:630: virtual void Ogre::Node::setScale(const Ogre::Vector3&): Asserção `!inScale.isNaN() && "Invalid vector supplied as parameter"' falhou. Aborted (core dumped) [gazebo_gui-2] process has died [pid 20708, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/fbag96/.ros/log/a3b2ac78-b3f1-11e7-87e9-40f02f562a61/gazebo_gui-2.log]. log file: /home/fbag96/.ros/log/a3b2ac78-b3f1-11e7-87e9-40f02f562a61/gazebo_gui-2*.log

socrob commented 6 years ago

This issue affects only certain systems, in harode server and lenovo laptop does not occur. Anyway is fixed by replacing "size" values from 0 to 0.001 i.e.

<box size="0 0 0" /> -> <box size="0.001 0.001 0.001" />