Ask Your Question
0

Number of faces on sphere Marker (RVIZ)

asked 2018-03-01 15:06:51 -0600

Hi there,

I'm wondering if there is some easy way to increase the number of faces plot on RVIZ when, as an example, displaying a visualization_msgs::Marker::SPHERE. I suspect that it's an Ogre issue rather an Rviz setting..

Have a look to this pic https://farm9.staticflickr.com/8648/1...

image description

Any thoughts?

Bye, Augusto

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-02 08:42:33 -0600

Got it. The mesh is located under:

/opt/ros/kinetic/share/rviz/ogre_media/models/rviz_sphere.mesh

or your cloned repository under the models folder and it is loaded from shape.cpp (github link)

The only issue is to create a new mesh, which can actually be done using Blender and some tools. I used:

  • blender-2.79a-linux-glibc219-x86_64 ; from blender, I've created the new sphere (just press the Create tab and then Sphere, then click F6 to change the number of "faces". Then Export > Ogre3D (activate the add-on following the instructions of blender2ogre). Save the sphereHD.mesh.xml
  • blender2ogre blender2ogre (follow install instructions from the readme)
  • OgreXmlConverter only for windows :-( Use it to convert the sphereHD.mesh.xml to something that Ogre is able to use. Then "change the filename under shape.cpp and compile RVIZ again". Ok it's not the best solution I know, but that's a start :-)

Some images:

From Blender...

image description

Sphere rendered inside RVIZ before:

image description

Sphere rendered inside RVIZ afteR: image description

I've also used as reference: https://answers.ros.org/question/9770... https://github.com/OGRECave/blender2ogre http://wiki.ogre3d.org/OgreXmlConverter http://wiki.ogre3d.org/Blender+to+Ogre

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-03-01 15:06:51 -0600

Seen: 202 times

Last updated: Mar 02 '18