Files
move_base2/launch/move_base2_sim.launch
duongtd 96df99fed2 config: priest — bật gate G1 + bao êm ái cho cây sim
10 khoá mới khớp priest_local_planner (gate theo khoảng cách, accel/decel/
jerk comfort, trần gia tốc góc, head slowdown slew) và bật
collision_check_enabled sau khi gate đổi sang phân mức dừng/giảm tốc.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-28 22:34:31 +07:00

60 lines
3.2 KiB
XML

<?xml version="1.0"?>
<!--
Một lệnh duy nhất thay cho năm lệnh của đường chạy cũ:
roslaunch amr_startup robot_maze_world.launch
roslaunch amr_startup rviz.launch
roslaunch robot_depth_image_proc depth_image_proc_gazebo.launch
export PNKX_NAV_CORE_CONFIG_DIR=.../pnkx_nav_core/config
roslaunch amr_startup amr_control.launch
Ba phần đầu là hạ tầng mô phỏng KHÔNG đổi giữa move_base cũ và move_base2 (cùng world, cùng model
URDF T800, cùng rviz, cùng depth proc) nên được include lại chứ không chép lại — chép lại chỉ tạo
thêm một bản sao phải đồng bộ bằng tay.
Phần thứ tư và năm là thứ thực sự khác, và nằm trong `move_base2_control.launch` của gói này.
-->
<launch>
<arg name="world" default="maze" doc="maze | warehouse | sehc | empty" />
<arg name="robot_type" default="T800" />
<arg name="gui" default="true" doc="false = chạy gzserver headless" />
<arg name="rviz" default="true" />
<!-- Node robot_depth_image_proc. KHÔNG cần khi `use_depth_image_input: true` (mặc định):
ở chế độ đó SensorConverter tự dựng đám mây từ ảnh depth thô của cả hai camera, còn node này
lọc full-res 424x240 (edge + dilate + temporal) rồi publish một topic KHÔNG AI ĐỌC — chỉ tốn
CPU và kéo RTF của Gazebo xuống, mà chính RTF thấp mới làm buffer quá hạn.
► Chỉ bật khi chuyển sang `use_depth_image_input: false` và đã cấu hình nó cho 2 camera. -->
<arg name="depth_proc" default="false" doc="Bật khi dùng use_depth_image_input:=false" />
<!-- 1. Gazebo + model robot T800 + world -->
<!-- <include file="$(find amr_startup)/launch/robot_maze_world.launch" if="$(eval world == 'maze')">
<arg name="gui" value="$(arg gui)" />
<arg name="robot_type" value="$(arg robot_type)" />
</include>
<include file="$(find amr_startup)/launch/ware_houses_world.launch" if="$(eval world == 'warehouse')">
<arg name="gui" value="$(arg gui)" />
<arg name="robot_type" value="$(arg robot_type)" />
</include>
<include file="$(find amr_startup)/launch/sehc_world.launch" if="$(eval world == 'sehc')">
<arg name="gui" value="$(arg gui)" />
<arg name="robot_type" value="$(arg robot_type)" />
</include>
<include file="$(find amr_startup)/launch/robot_empty_world.launch" if="$(eval world == 'empty')">
<arg name="gui" value="$(arg gui)" />
<arg name="robot_type" value="$(arg robot_type)" />
</include> -->
<!-- 2. rviz — dùng lại đúng config đang đọc /global_costmap/costmap, /plan, /footprint -->
<node if="$(arg rviz)" name="rviz" pkg="rviz" type="rviz"
args="-d $(find amr_startup)/rviz/navigation.rviz" />
<!-- 3. Depth image -> point cloud cho VoxelLayer -->
<include file="$(find robot_depth_image_proc)/launch/depth_image_proc_gazebo.launch"
if="$(arg depth_proc)" />
<!-- 4 + 5. Nav stack trên move_base2 (tự đặt PNKX_NAV_CORE_CONFIG_DIR) -->
<include file="$(find move_base2)/launch/move_base2_control.launch">
<arg name="robot_type" value="$(arg robot_type)" />
</include>
</launch>