Gazebo collision is not applied with SweetHome3D

asked 2021-04-13 00:34:11 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello, I created a layout using a room layout software called SweetHome3D (, exported it in obj file format. I then created a sdf/config file to use the layout in gazebo, and wrote the world file. I have described the collision correctly in the sdf file, but The laser from the robot's LRF penetrates the object. This causes an error on the terminal, where the obstacle cannot be detected.

If anyone knows anything about this, please Please give me some advice.

  • GPU:GeForce GTX 1660
  • OS:Ubuntu18.04LTS (Docker)
  • gazebo version:9.0.0, 9.16.0 (Tried them both)
  • File Constitution:sweet_home_3d > worlds(, models >s1LDK_01 > meshes (s1LDK_01.mtl, s1LDK_01.obj, etc) , model.config,


<?xml version='1.0'?>
<sdf version="1.5">
<model name="s1LDK_01">
    <link name="link">
      <collision name="collision">
        <pose>-7.0 5.5 0.0 1.57 0 0</pose>
      <visual name="visual">
        <pose>-7.0 5.5 0.0 1.57 0 0</pose>
            <scale>0.01 0.01 0.01</scale>

<?xml version="1.0" ?>
<sdf version="1.5">
  <world name="s1LDK_01">
    <light name="sunny" type="point">
      <pose>0 0 5 0 0 0</pose>
      <diffuse>0.8 0.8 0.8 1</diffuse>
      <specular>0.2 0.2 0.2 1</specular>
      <direction>-0.5 0.1 -0.9</direction>
    <physics type="ode">
      <gravity>0 0 -9.8</gravity>
      <pose>0 0 5.0 0 0 0</pose>

image description

edit retag flag offensive close merge delete


Try converting the collision mesh to STL. That might work better.

nlamprian gravatar imagenlamprian ( 2021-04-15 09:52:50 -0500 )edit

Thank you for your advice. I used this website ( to convert the OBJ file generated by SweetHome3D into a STL file.

However, the texture was not mapped and collison could not be applied.

chickin_hassetchi gravatar imagechickin_hassetchi ( 2021-04-20 07:16:21 -0500 )edit