Files
move_base2/launch/move_base2_sim.launch
duongtd f4f99650df feat: tiep nhan route graph (Voronoi) cho global planner + anytime ARA* schema, don doc EnvMonitor
- navigation_server: them addRouteGraph(topic, RouteGraph), day vao sensor_store cung namespace
  addStaticMap; consumer (SBPLLatticePlanner) tu doi chieu map_hash.
- PlannerRunner: them setSensorReader()/attachSensors() - trao SensorReader cho global planner
  nao ke thua robot_sensor_ports::SensorConsumer, goi TRUOC initialize() (dynamic_cast, giong co
  che ControllerRunner dang dung).
- sensor_store_params.yaml: khai topic /route_graph (data_type RouteGraph, capacity 1).
- sbpl_global_params.yaml (config/runtime): dong bo schema initial_epsilon/final_epsilon/
  eps_step/repair_time/return_first_solution + khoi voronoi_corridor (xem pnkx_nav_core
  c52cbe5, Test/sbpl_lattice_planner cho code doc cac khoa nay).
- launch: them arg launch_prefix (vd "stdbuf -oL" - robot::log_* dung printf khong flush, qua
  `| tee` bi block-buffer 8 KB lam log dung o dong cu du node con chay); them
  route_graph_maps_dir/route_graph_topic cho amr_node doc file voronoi.json theo map dang kich hoat.
- docs: xoa PLAN_LIFECYCLE_CANCEL_PAUSE_RESUME.md (don sang Test/docs/move_base2/), sua duong dan
  ENV_MONITOR_PLAN.md trong comment cac header EnvMonitor lien quan.
2026-09-22 15:31:43 +07:00

62 lines
3.3 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" />
<arg name="launch_prefix" default="" doc="Truyền xuống amr_node, vd. 'stdbuf -oL' khi tee log" />
<!-- 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)" />
<arg name="launch_prefix" value="$(arg launch_prefix)" />
</include>
</launch>