Robotics StackExchange | Archived questions

How to create a slope/ramp in Gazebo editor

Hello,

Is it possible to create a ramp in the Gazebo editor?

BR

Asked by Eisenhorn on 2014-03-26 09:34:55 UTC

Comments

Answers

The easiest way is to create a box in SDF, and give it an angle. For example:

<?xml version="1.0" ?>
<sdf version="1.4">
  <world name="default">
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <include>
      <uri>model://sun</uri>
    </include>
    <model name="box">
      <static>true</static>

      <pose>0 0 0.2 0 0.4 0</pose>
      <link name="link">
        <collision name="collision">
          <geometry>
            <box>
              <size>1 0.5 .1</size>
            </box>
          </geometry>
        </collision>
        <visual name="visual">
          <geometry>
            <box>
              <size>1 0.5 .1</size>
            </box>
          </geometry>
        </visual>
      </link>
    </model>
  </world>
</sdf>

Asked by nkoenig on 2014-03-26 16:22:05 UTC

Comments