Skip to content

Commit

Permalink
Updated turtlebot4 demo to be more robust to long corridors
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Jun 30, 2024
1 parent bed3081 commit 3046365
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
9 changes: 6 additions & 3 deletions rtabmap_demos/launch/turtlebot4_ignition_demo.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
#
# 3) Click on double points ".." button on top-right next to power button to undock.
#
# 4) Teleop the robot:
# $ ros2 run teleop_twist_keyboard teleop_twist_keyboard
# 4) Move the robot:
# b) By sending goals with RVIZ's "Nav2 Goal" button in action bar.
# a) By teleoperating:
# $ ros2 run teleop_twist_keyboard teleop_twist_keyboard
# c) By using autonomous exploration node (tested with https://github.com/robo-friends/m-explore-ros2):
# $ ros2 launch explore_lite explore.launch.py
#
# 5) Send goals with RVIZ's "Nav2 Goal" button in action bar.

from ament_index_python.packages import get_package_share_directory

Expand Down
12 changes: 8 additions & 4 deletions rtabmap_demos/launch/turtlebot4_slam.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@
#
# 4) Click on double points ".." button on top-right next to power button to undock.
#
# 5) Teleop the robot:
# $ ros2 run teleop_twist_keyboard teleop_twist_keyboard
# 5) Move the robot:
# b) By sending goals with RVIZ's "Nav2 Goal" button in action bar.
# a) By teleoperating:
# $ ros2 run teleop_twist_keyboard teleop_twist_keyboard
# c) By using autonomous exploration node (tested with https://github.com/robo-friends/m-explore-ros2):
# $ ros2 launch explore_lite explore.launch.py
#
# 6) Send goals with RVIZ's "Nav2 Goal" button in action bar:

from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, SetEnvironmentVariable
Expand Down Expand Up @@ -58,7 +61,8 @@ def generate_launch_description():
# RTAB-Map's parameters should be strings:
'Reg/Strategy':'1',
'Reg/Force3DoF':'true',
'Mem/NotLinkedNodesKept':'false'
'Mem/NotLinkedNodesKept':'false',
'Icp/PointToPlaneMinComplexity':'0.04' # to be more robust to long corridors with low geometry
}

remappings=[
Expand Down

0 comments on commit 3046365

Please sign in to comment.