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

Revision history [back]

Please do not mark it answered all the time until person who asked this didn't! It takes some time to resolve it. There is a lot of problems like OGRE asserts:

gazebo: /home/tonu/ros/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.

Current script:

tonu@hp:~/ocovision$ cat convert.sh

!/bin/sh

echo "Please make sure roscore works!"

roscore &

echo "Removing tildes" sed -e 's/õ/o/g' < Roboti_algus.xml > robot.xml echo "Creating conf file" touch foobar.yaml echo "Converting robot.xml to robot.urdf" rosrun simmechanics_to_urdf convert.py robot.xml foobar.yaml xml > robot.urdf echo "Word count" wc robot.urdf echo "Fixing complaints about 'revolute'" sed -ie 's/revolute/fixed/g' robot.urdf echo "Fixing complaints about 'prismatic'" sed -ie 's/prismatic/fixed/g' robot.urdf

sed -ie 's,<mesh filename=",&lt;mesh filename=" package:="" phippi="" ,g'="" robot.urdf="" echo="" "copying="" siles"="" cp="" *.stl="" home="" tonu="" tyros="" phippi="" ros="" phippi="" echo="" "removing="" collision"="" sed="" -ie="" 's="" <collision="">/,g' robot.urdf sed -ie 's/<inertia>/,g' robot.urdf

tonu@hp:~/ocovision$

Please do not mark it answered all the time until person who asked this didn't! didn't accept it fully! It takes some time to resolve it. There is a lot of problems like OGRE asserts:

gazebo: /home/tonu/ros/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.

failed.

Current script:

tonu@hp:~/ocovision$ cat convert.sh 

!/bin/sh

#!/bin/sh echo "Please make sure roscore works!"

roscore &

works!" #roscore & echo "Removing tildes" sed -e 's/õ/o/g' < Roboti_algus.xml > robot.xml echo "Creating conf file" touch foobar.yaml echo "Converting robot.xml to robot.urdf" rosrun simmechanics_to_urdf convert.py robot.xml foobar.yaml xml > robot.urdf echo "Word count" wc robot.urdf echo "Fixing complaints about 'revolute'" sed -ie 's/revolute/fixed/g' robot.urdf echo "Fixing complaints about 'prismatic'" sed -ie 's/prismatic/fixed/g' robot.urdfrobot.urdf sed -ie 's,<mesh filename=",<mesh filename="package://phippi/,g' robot.urdf echo "Copying siles" cp *.STL /home/tonu/tyros/phippi/ros/phippi/ echo "removing collision" sed -ie 's/<collision>/<!-- <collision>/g' robot.urdf sed -ie 's,</collision>,</collision> -->,g' robot.urdf sed -ie 's/<inertia>/<!-- <inertial>/g' robot.urdf sed -ie 's,</inertial>,</inertial> -->,g' robot.urdf tonu@hp:~/ocovision$

I provide full solution when this becomes available. At moment it does not work for me but it will.

sed -ie 's,<mesh filename=",&lt;mesh filename=" package:="" phippi="" ,g'="" robot.urdf="" echo="" "copying="" siles"="" cp="" *.stl="" home="" tonu="" tyros="" phippi="" ros="" phippi="" echo="" "removing="" collision"="" sed="" -ie="" 's="" <collision="">/,g' robot.urdf sed -ie 's/<inertia>/,g' robot.urdf

tonu@hp:~/ocovision$

Please do not mark it answered all the time until person who asked this didn't accept it fully! It takes some time to resolve it. There is a lot of problems like OGRE asserts:

gazebo: /home/tonu/ros/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.

Current script:

tonu@hp:~/ocovision$ cat convert.sh 
#!/bin/sh
echo "Please make sure roscore works!"
#roscore &
echo "Removing tildes"
sed -e 's/õ/o/g' < Roboti_algus.xml > robot.xml
echo "Creating conf file"
touch foobar.yaml
echo "Converting robot.xml to robot.urdf"
rosrun simmechanics_to_urdf convert.py robot.xml foobar.yaml xml > robot.urdf
echo "Word count"
wc robot.urdf
echo "Fixing complaints about 'revolute'"
sed -ie 's/revolute/fixed/g'  robot.urdf
echo "Fixing complaints about 'prismatic'"
sed -ie 's/prismatic/fixed/g'  robot.urdf

sed -ie 's,<mesh filename=",<mesh filename="package://phippi/,g' robot.urdf
echo "Copying siles"
cp *.STL /home/tonu/tyros/phippi/ros/phippi/
echo "removing collision"
sed -ie 's/<collision>/<!-- <collision>/g' robot.urdf
sed -ie 's,</collision>,</collision> -->,g' robot.urdf
sed -ie 's/<inertia>/<!-- <inertial>/g' robot.urdf
sed -ie 's,</inertial>,</inertial> -->,g' robot.urdf
tonu@hp:~/ocovision$

I provide full solution when this becomes available. At moment it does not work for me but it will.will. Some undocumented handwork is involved. http://no.spam.ee/~tonu/rvizphippi3.png is latest screenshot