Turtlebot2 gmapping_demo.launch

asked 2022-05-25 20:52:28 -0500

distro gravatar image

I'm using a turtlebot2, when I try gmapping I'm getting errors as the launch file cant recognize the camera device I'm using, which as an intelrealsense(model -D415 or something)

The gmapping_demo.launch file is: <launch> <arg name="3d_sensor" default="$(env TURTLEBOT_3D_SENSOR)"/> <include file="$(find turtlebot_bringup)/launch/3dsensor.launch"> <arg name="rgb_processing" value="false"/> <arg name="depth_registration" value="false"/> <arg name="depth_processing" value="false"/>

    <!-- We must specify an absolute topic name because if not it will be prefixed by "$(arg camera)".
         Probably is a bug in the nodelet manager: https://github.com/ros/nodelet_core/issues/7 --> 
    <arg name="scan_topic" value="/scan" />
  </include>

  <!-- Gmapping -->
  <arg name="custom_gmapping_launch_file" default="$(find turtlebot_navigation)/launch/includes/gmapping/$(arg 3d_sensor)_gmapping.launch.xml"/>
  <include file="$(arg custom_gmapping_launch_file)"/>

  <!-- Move base -->
  <include file="$(find turtlebot_navigation)/launch/includes/move_base.launch.xml"/>

I apparently need the TURTLEBOT_3D_SENSOR identifier to match with my camera model, after some help I don't know if I'm missing an .xml file that will link with the launch file to help recognize the camera, I'm not sure. I need help.

edit retag flag offensive close merge delete