Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to create a slope/ramp in Gazebo editor

asked 2014-03-26 09:34:55 -0600

Eisenhorn gravatar image

Hello,

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

BR

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-03-26 16:22:05 -0600

nkoenig gravatar image

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>
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-03-26 09:34:55 -0600

Seen: 1,164 times

Last updated: Mar 26 '14