sim: default the simulation to APM and move the fake dock goal ahead of the robot

simulated_offset_x 2.5 with yaw 0.12 exercises the forward-entry docking side.
The maze world and depth_image_proc includes are commented out because the
current sim scene does not use them.
This commit is contained in:
2026-08-15 13:09:09 +07:00
parent 26c2293e0e
commit 0c45d5491a
2 changed files with 7 additions and 7 deletions

View File

@@ -68,9 +68,9 @@ actions:
# Để true trên robot thật = robot tiến vào một điểm bịa.
use_simulated_goal: true
simulated_parent_frame: base_link
simulated_offset_x: -1.0 # [m] ► Chỉnh: chỉ có nghĩa khi use_simulated_goal: true.
simulated_offset_x: 2.5 # [m] ► Chỉnh: chỉ có nghĩa khi use_simulated_goal: true.
simulated_offset_y: 0.0 # [m] Đặt theo vị trí vật thể giả trong world Gazebo.
simulated_offset_yaw: 0.09 # [rad]
simulated_offset_yaw: 0.12 # [rad]
# [s] Chờ robot đứng hẳn trước khi lấy mẫu — pose lúc vừa dừng còn dao động cơ khí.
# ► Chỉnh: TĂNG nếu robot nặng/treo mềm và mẫu đầu bị lệch. GIẢM để rút ngắn chu kỳ dock.

View File

@@ -16,13 +16,13 @@
-->
<launch>
<arg name="world" default="maze" doc="maze | warehouse | sehc | empty" />
<arg name="robot_type" default="T800" />
<arg name="robot_type" default="APM" />
<arg name="gui" default="true" doc="false = chạy gzserver headless" />
<arg name="rviz" default="true" />
<arg name="depth_proc" default="true" doc="Bật khi cần đường depth camera -> costmap" />
<!-- 1. Gazebo + model robot T800 + world -->
<include file="$(find amr_startup)/launch/robot_maze_world.launch" if="$(eval world == 'maze')">
<!-- <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>
@@ -37,15 +37,15 @@
<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>
</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)" />
<!-- <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">