Files
yiliao2026/src/racing_control/config/racing_control.yaml
2026-08-10 15:48:25 +08:00

94 lines
3.1 KiB
YAML

racing_control:
ros__parameters:
# Startup
auto_start: false
frame_id: odom
use_post_qr_pose: false
enable_vlm_image_relay: false
enable_dynamic_replanning: false
enable_recovery: true
vlm_image_input_topic: /image
vlm_image_output_topic: /vlm_image
# Shared coordination topics
sign_topic: /sign4return
qr_result_topic: /qr_results
vlm_result_topic: /vlm_result
odom_topic: /odom_combined
recovery_cmd_vel_topic: /cmd_vel
trajectory_guard_input_topic: /trajectory_guard/input_path
# Nav2 actions and plugin IDs
navigate_action: /navigate_to_pose
compute_path_action: /compute_path_through_poses
follow_path_action: /follow_path
planner_id: GridBased
controller_id: FollowPath
goal_checker_id: ""
use_trajectory_guard: false
# Timeouts and settling waits, in seconds
navigation_timeout_sec: 120.0
path_planning_timeout_sec: 30.0
circle_timeout_sec: 120.0
qr_result_timeout_sec: 20.0
profile_switch_wait_sec: 1.0
post_qr_wait_sec: 1.0
vlm_capture_wait_sec: 0.5
dynamic_replan_interval_sec: 1.0
dynamic_replan_stop_distance: 0.5
dynamic_replan_max_consecutive_failures: 3
recovery_backup_speed: -0.2
recovery_backup_distance: 0.04
recovery_backup_timeout_sec: 0.2
max_recovery_attempts: 2
circle_goal_tolerance: 0.30
# VLM capture:
# stop - stop at the VLM waypoint, trigger capture, then continue immediately.
# pass_through - keep following the full route and trigger capture while passing nearby.
vlm_capture_mode: stop
pass_through_vlm_trigger_radius: 0.35
# /sign4return command values used by existing packages
sign_qr_enable: 0
sign_qr_disable: 5
sign_vlm_trigger: 9
sign_profile_normal: 10
sign_profile_task2: 11
# Pose parameters are flat x/y/yaw-radians triples in frame_id.
qr_pose: [4.333107888975101, 1.028867429995691, 1.1383894869544392]
post_qr_pose: [2.504811372926262, 2.2798075935366624, 1.520115031774562]
entry_pose: [2.504811372926262, 2.2798075935366624, 1.520115031774562]
# The route's Nth waypoint is used as the VLM capture point.
# For the current point set, the 2nd waypoint is the VLM point.
vlm_waypoint_number: 2
# main_1.json: clockwise route, excluding home.
clockwise_waypoints:
- 0.7534956931109804
- 3.766501234923627
- 1.5592359900104606
- 3.8567885105264077
- 4.329424195458402
- 0.03997856199797794
- 2.5144339572664096
- 2.4337692660037766
- -1.6101462328054222
clockwise_home_pose: [0.536986899408154, 0.1772662932069835, -1.652041913138445]
# main_2.json: counterclockwise route, excluding home.
counterclockwise_waypoints:
- 4.2128251001861265
- 3.7376334819031842
- 1.5450283923222128
- 1.1720794040064113
- 4.319801449605877
- 3.1112984779040144
- 2.4951887885861144
- 2.318297930897253
- -1.539556591616333
counterclockwise_home_pose: [0.536986899408154, 0.1772662932069835, -1.652041913138445]