Robotics StackExchange | Archived questions

Turtlebot2 gmapping_demo.launch

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 gmappingdemo.launch file is: <!-- 3D sensor --> <arg name="3dsensor" default="$(env TURTLEBOT3DSENSOR)"/> <!-- r200, kinect, asusxtionpro -->

    <!-- 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 TURTLEBOT3DSENSOR 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.

Asked by distro on 2022-05-25 20:52:28 UTC

Comments

Answers