AMCL-based autonomous navigation on pre-built static maps, wired to VESC CAN differential-drive odometry (/odom, Issue #646) and RPLiDAR (/scan) as the primary sensor sources. New files (saltybot_nav2_slam): - config/amcl_nav2_params.yaml — complete Nav2 + AMCL parameter file with inline global/local costmap configs (required by nav2_bringup): · AMCL: DifferentialMotionModel, 500–3000 particles, z-weights=1.0, odom_frame=/odom, scan_topic=/scan · Global costmap: static_layer + obstacle_layer (LiDAR) + inflation_layer (0.55m radius) · Local costmap: 4m rolling window, obstacle_layer (LiDAR) + inflation_layer, global_frame=odom · DWB controller: 1.0 m/s max, diff-drive constrained (vy=0) · NavFn A* planner · Recovery: spin + backup + wait · Lifecycle managers for localization and navigation - launch/nav2_amcl_bringup.launch.py — orchestrates: 1. sensors.launch.py (RealSense + RPLIDAR, conditional) 2. odometry_bridge.launch.py (VESC CAN → /odom) 3. nav2_bringup localization_launch.py (map_server + AMCL) 4. nav2_bringup navigation_launch.py (full nav stack) Exposes: map, use_sim_time, autostart, params_file, include_sensors - maps/saltybot_map.yaml — placeholder map descriptor (0.05m/cell) - maps/saltybot_map.pgm — 200×200 P5 PGM, all free space (10m×10m) - test/test_nav2_amcl.py — 38 unit tests (no ROS2 required): params structure, z-weight sum, costmap layers, DWB/NavFn validity, recovery behaviors, PGM format, launch file syntax checks Updated: - saltybot_bringup/launch/nav2.launch.py — adds nav_mode argument: nav_mode:=slam (default, existing RTAB-Map behaviour unchanged) nav_mode:=amcl (new, delegates to nav2_amcl_bringup.launch.py) - saltybot_nav2_slam/setup.py — installs new launch, config, maps - saltybot_nav2_slam/package.xml — adds nav2_amcl, nav2_map_server, nav2_behaviors, dwb_core, nav2_navfn_planner exec_depends All 58 tests pass (38 new + 20 from Issue #646). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
49 lines
1.8 KiB
XML
49 lines
1.8 KiB
XML
<?xml version="1.0"?>
|
|
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
|
<package format="3">
|
|
<name>saltybot_nav2_slam</name>
|
|
<version>0.1.0</version>
|
|
<description>
|
|
Nav2 SLAM + AMCL integration for SaltyBot autonomous navigation (Issues #422, #655).
|
|
Combines SLAM Toolbox (RPLIDAR 2D SLAM), VESC CAN differential-drive odometry
|
|
(Issue #646), AMCL particle-filter localization on static maps, DWB local planner,
|
|
NavFn A* global planner, RealSense depth costmap, and spin/backup/wait recovery.
|
|
</description>
|
|
<maintainer email="sl-controls@saltylab.local">sl-controls</maintainer>
|
|
<license>MIT</license>
|
|
|
|
<depend>rclpy</depend>
|
|
<depend>sensor_msgs</depend>
|
|
<depend>std_msgs</depend>
|
|
<depend>nav_msgs</depend>
|
|
<depend>geometry_msgs</depend>
|
|
<depend>tf2</depend>
|
|
<depend>tf2_ros</depend>
|
|
|
|
<exec_depend>nav2_bringup</exec_depend>
|
|
<exec_depend>nav2_amcl</exec_depend>
|
|
<exec_depend>nav2_map_server</exec_depend>
|
|
<exec_depend>nav2_bt_navigator</exec_depend>
|
|
<exec_depend>nav2_controller</exec_depend>
|
|
<exec_depend>nav2_planner</exec_depend>
|
|
<exec_depend>nav2_behaviors</exec_depend>
|
|
<exec_depend>dwb_core</exec_depend>
|
|
<exec_depend>nav2_navfn_planner</exec_depend>
|
|
<exec_depend>slam_toolbox</exec_depend>
|
|
<exec_depend>rplidar_ros</exec_depend>
|
|
<exec_depend>realsense2_camera</exec_depend>
|
|
<exec_depend>depth_image_proc</exec_depend>
|
|
<exec_depend>pointcloud_to_laserscan</exec_depend>
|
|
|
|
<buildtool_depend>ament_python</buildtool_depend>
|
|
|
|
<test_depend>ament_copyright</test_depend>
|
|
<test_depend>ament_flake8</test_depend>
|
|
<test_depend>ament_pep257</test_depend>
|
|
<test_depend>python3-pytest</test_depend>
|
|
|
|
<export>
|
|
<build_type>ament_python</build_type>
|
|
</export>
|
|
</package>
|