Gazebo | Ignition | Community
Ask Your Question

glinde's profile - activity

2015-06-23 06:24:07 -0500 received badge  Nice Answer (source)
2014-09-30 18:21:21 -0500 received badge  Nice Answer (source)
2014-09-30 17:19:15 -0500 received badge  Teacher (source)
2014-09-28 17:40:17 -0500 answered a question How add a jpeg file to gazebo

I just had a similar need - a carpet on the floor. What worked for me was the following (with Gazebo 1.9):

1) In the world file:

<model name='carpet'>
  <link name='link'>
    <visual name='visual'>
      <geometry>
        <box>
          <size>12.88 12.88 0.005</size>
        </box>
      </geometry>
      <material>
        <script>
          <uri>file:///full/path/to/materials.material</uri>
          <name>Materials/Carpet</name>
        </script>
      </material>
    </visual>
  </link>
  <static>1</static>
</model>

2) materials.material file:

material Materials/Carpet
{
  technique
  {
    pass
    {
      ambient 1.0 1.0 1.0 1.0
      diffuse 1.0 1.0 1.0 1.0
      specular 0.2 0.2 0.2 1.0 12.5

      texture_unit
      {
        texture carpet14x14.jpg
        filtering trilinear
      }
    }
  }
}

I pulled this one from somewhere else and just replaced the script name and texture filename.

3) carpet14x14.jpg in the same folder as materials.material

2013-11-05 22:48:55 -0500 answered a question Read/Write Torque in a Joint

The tutorial Controlling a Mobile Robot shows how to set the torque for joints in a model plugin with gazebo::physics::Joint::SetForce().

2013-10-16 21:32:57 -0500 asked a question View Joints doesn't work in Gazebo 2.0.0 GUI ?

Is this a new bug? Right-click/View/Joints puts a check mark on Joints, but does not show the joints on the robot. This used to work in Gazebo 1.9. View/"Center of mass" still works, though.

This is Gazebo 2.0.0-1~precise.