Ask Your Question

Revision history [back]

You can make a static object .model file and just spawn that. For example, a static box model looks like this:

<?xml version="1.0" ?>
<model:physical name="small_box_model">
<!--  <xyz>   0.835  -0.55   0.5</xyz>
  <rpy>   0.0    0.0    30.0</rpy>-->
  <body:box name="small_box_body">
    <geom:box name="small_box_geom">
      <size>0.1 0.1 0.1</size>
      <mass> 0.05</mass>
        <size> 0.1 0.1 0.1</size>

By changing the 'static' tag to false, you'll get a object affected by gravity and colliding with other objects. I'm not sure about the scaling of a sphere though, I had some problems with that before (especially with the visuals getting scaled, but the collision model staying at 1m radius).