I figured part of it out. I had to relocate the object origin to the same place as the world origin. That solved the floating problem.
jungle wrote: > > I've been trying to figure out this problem for quite a while now. I > learned now to make some simple meshes using blender and export them using > the python script etc. I can get them to show up inside my simulation, > but I'm having problems with two related things. > > 1. In certain orientations, part of the model falls through the floor (see > pic). > > http://www.nabble.com/file/p19503520/cam1_sensor-0036.jpg > > 2. In other orientations, the model hovers over the floor when it comes to > rest. (no pic). > > I may be missing something simple, but I can't seem to fix this. My main > goal is to have a triangular prism. I want to use the prism and cubes to > make a hill that my robot can climb and disassemble by pushing them > around. > > Here's my world file, adapted from trimesh.world example. > > <?xml version="1.0"?> > > <gazebo:world > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:gazebo="http://playerstage.sourceforge.net/gazebo/xmlschema/#gz" > xmlns:model="http://playerstage.sourceforge.net/gazebo/xmlschema/#model" > > xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor" > xmlns:body="http://playerstage.sourceforge.net/gazebo/xmlschema/#body" > xmlns:geom="http://playerstage.sourceforge.net/gazebo/xmlschema/#geom" > xmlns:joint="http://playerstage.sourceforge.net/gazebo/xmlschema/#joint" > > xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface" > > > xmlns:rendering="http://playerstage.sourceforge.net/gazebo/xmlschema/#rendering" > > > xmlns:renderable="http://playerstage.sourceforge.net/gazebo/xmlschema/#renderable" > > > xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller" > > xmlns:physics="http://playerstage.sourceforge.net/gazebo/xmlschema/#physics" > > > > <verbosity>5</verbosity> > > <physics:ode> > <stepTime>0.02</stepTime> > <gravity>0 0 -9.80665</gravity> > <cfm>10e-5</cfm> > <erp>0.3</erp> > </physics:ode> > > <rendering:gui> > <type>fltk</type> > <size>800 600</size> > <pos>0 0</pos> > </rendering:gui> > > <rendering:ogre> > <ambient>1.0 1.0 1.0 1.0</ambient> > </rendering:ogre> > > <model:physical name="plane1_model"> > <xyz>0 0 0</xyz> > <rpy>0 0 0</rpy> > <static>true</static> > > <body:plane name="plane1_body"> > <geom:plane name="plane1_geom"> > <normal>0 0 1</normal> > <size>2000 2000</size> > <segments>10 10</segments> > <uvTile>100 100</uvTile> > <material>Gazebo/Grey</material> > </geom:plane> > </body:plane> > </model:physical> > > <!-- camera stuff removed for space --> > > <model:physical name="wood_pallet"> > <xyz>0 0 1</xyz> > <rpy>0 0 0</rpy> > <static>false</static> > <body:trimesh name="pallet_body"> > <geom:trimesh name="pallet_geom"> > <mesh>Suzanne.mesh</mesh> > <mass>0.1</mass> > <visual> > <mesh>Suzanne.mesh</mesh> > <material>Gazebo/Rocky</material> > </visual> > </geom:trimesh> > </body:trimesh> > </model:physical> > > <!-- White Directional light --> > <model:renderable name="directional_white"> > <light> > <type>directional</type> > <direction>0 -0.5 -0.5</direction> > <diffuseColor>0.4 0.4 0.4</diffuseColor> > <specularColor>0.0 0.0 0.0</specularColor> > <attenuation>100 0.0 1.0 0.4</attenuation> > </light> > </model:renderable> > > </gazebo:world> > > Thanks, > Bill > > > -- View this message in context: http://www.nabble.com/Blender-Meshes-fall-through-floor-tp19503520p19544964.html Sent from the playerstage-gazebo mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Playerstage-gazebo mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
