Gazebo | Ignition | Community
Ask Your Question

Create an obstacle that cannot be stepped in

asked 2017-07-27 02:56:15 -0500

percyliu_ gravatar image

updated 2017-07-27 21:54:28 -0500

Hi there. I want to build a cuboid obstacle in front of a humanoid robot model in Gazebo. But when the robot steps on the obstacle, its feet are in the cuboid obstacle. How can I change the parameters so that the feet of the robot won't intersect the obstacle? Thanks in advance. image description

<?xml version='1.0'?>
<sdf version='1.6'>
  <model name='unit_box_0_1'>
    <link name='link'>
      <pose frame=''>0 0 0 0 -0 0</pose>
        <pose frame=''>0 0 0 0 -0 0</pose>
      <visual name='visual'>
            <size>0.15 1 0.1</size>
          <ambient>0.3 0.3 0.3 1</ambient>
          <diffuse>0.7 0.7 0.7 1</diffuse>
          <specular>0.01 0.01 0.01 1</specular>
          <emissive>0 0 0 1</emissive>
          <shader type='vertex'>
        <pose frame=''>0 0 0 0 -0 0</pose>
      <collision name='collision'>
        <pose frame=''>0 0 0 0 -0 0</pose>
            <size>0.15 1 0.1</size>
              <fdir1>0 0 0</fdir1>
edit retag flag offensive close merge delete



Would you mind posting the sdf of the cuboid? Does it have a collision element?

sloretz gravatar imagesloretz ( 2017-07-27 09:40:26 -0500 )edit

Thank you. I've already posted the code.

percyliu_ gravatar imagepercyliu_ ( 2017-07-27 19:21:27 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-01 04:19:30 -0500

Duckfrost gravatar image

Ok I just tested this box and it worked perfectly for me.
Here you have the video response of how to do this test: Here I leave the main things I used to test it and some system information:
Information System:
Ubuntu 14.04.5 trusty ROS Version: indigo Gazebo 7.4.0

I Created a Gazebo model with the code you posted: C:\fakepath\model.sdf And a "model.config"

Then I spawned it in a empty world: C:\fakepath\

And then I used a simple spawn launch for sdfs: C:\fakepath\spawn_testobject_sdf.launch C:\fakepath\spawn_sdf.launch

I then used one robot I had to test the interaction, and it intercated perfectly, it didn't go through.

We need more info to get to the solution but, definetly is not the box. The problem may come from some world parameters, or from the robot itself. Maybe the meshes of the feet are to simple or don't have enough subdivisions in the mesh. Maybe its ultra heavy or maybe its something configured that avouds colisions with certain elements.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-07-27 02:52:28 -0500

Seen: 1,884 times

Last updated: Aug 01 '17