Mesh creation for Gazebo

From The Player Project

(Difference between revisions)
Jump to: navigation, search
(New page: == Mesh creation for Gazebo == Follow the instruction of the Tutorial from http://playerstage.sourceforge.net/doc/Gazebo-manual-svn-html/tutorial_mesh.html Player/Stage/Gazebo. Missi...)
 
(One intermediate revision not shown)
Line 1: Line 1:
== Mesh creation for Gazebo ==
== Mesh creation for Gazebo ==
-
Follow the instruction of the Tutorial from [[http://playerstage.sourceforge.net/doc/Gazebo-manual-svn-html/tutorial_mesh.html Player/Stage/Gazebo]].
+
Follow the instruction of the Tutorial from [[http://playerstage.sourceforge.net/doc/Gazebo-manual-svn-html/tutorial_mesh.html the Gazebo manual]].
Missing in the Tutorial is how you creat the part.mesh file from the part.mesh.xml file.
Missing in the Tutorial is how you creat the part.mesh file from the part.mesh.xml file.
Line 18: Line 18:
*Export your part to part.mesh.xml
*Export your part to part.mesh.xml
*convert part.mesh.xml with OgreXMLConverter to part.mesh (now a binary file)
*convert part.mesh.xml with OgreXMLConverter to part.mesh (now a binary file)
-
*let Gazebo know the file (make a softlink from your folder to /usr/local/share/gazebo/Media/models)
+
*let Gazebo know the file ( either copy it to /usr/local/share/gazebo/Media/models or make a softlink from your file or folder to /usr/local/share/gazebo/Media/models )
*use your part in your model
*use your part in your model
 +
 +
[[Category:Gazebo]]
 +
[[Category:Documentation]]
 +
[[Category:Tutorials]]

Latest revision as of 19:49, 13 February 2011

Mesh creation for Gazebo

Follow the instruction of the Tutorial from [the Gazebo manual].

Missing in the Tutorial is how you creat the part.mesh file from the part.mesh.xml file.

This is done with the OgreXMLConverter. You find it, after installing the package of the OgreMesh converter for Blender, in /usr/bin . use it like this OgreXMLConverter part.mesh.xml [NewNameofPart.mesh]

This will create the binary mesh file you wanted to use it with Gazebo.

Quick Tutorial

  • create your part in an 3D Tool
  • Export it to VRML1.0
  • Import it to Blender
  • Start the Script Export/OgreMesh
  • Export your part to part.mesh.xml
  • convert part.mesh.xml with OgreXMLConverter to part.mesh (now a binary file)
  • let Gazebo know the file ( either copy it to /usr/local/share/gazebo/Media/models or make a softlink from your file or folder to /usr/local/share/gazebo/Media/models )
  • use your part in your model
Personal tools