Sensor didn't detect the mesh model

asked 2021-03-10 01:58:41 -0500

jin gravatar image

updated 2021-03-11 23:52:04 -0500

I created the wall of the Occupancy grid map using the map2gazebo and inserted it into the Gazebo. Then I brought a turtlebot near this model and ordered it to move using a teleop node, but it went through the wall. The sensor didn't detect the wall at all. What should I do to make collision between the robot and the model? Is the collision element in the sdf file related to this?

image description

map2gazebo : https://github.com/shilohc/map2gazebo

Here is the sdf file of my model:

<?xml version="1.0" ?>
<sdf version="1.4">
  <model name="map">
    <static>true</static>
    <link name="link">
      <collision name="collision">
        <geometry>
          <mesh>
            <uri>model://road/meshes/map.stl</uri>
          </mesh>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <mesh>
            <uri>model://road/meshes/map.stl</uri>
          </mesh>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>
edit retag flag offensive close merge delete