重新将世界零点定义在了场地中心点,将哨兵的出生点改为红方出生点,车的速度改为1.5m/s,实现了哨兵导航到(0,0)点
This commit is contained in:
1 parent
0e4e4c6e18
commit
969763a9df
36 files changed
+983
-646
No files matched your search
@@ -14,7 +14,7 @@ amcl:
|
||||
lambda_short: 0.1
|
||||
laser_likelihood_max_dist: 2.0
|
||||
laser_max_range: 12.0 # 雷达量程 12 m(真机 40 m),写 100 会把虚警算成有效
|
||||
laser_min_range: 0.6 # 车体最远 0.537 m,低于 0.6 的束全是自己的回波
|
||||
laser_min_range: 0.15 # 自击点已被 self_filter 在投影时剔除,不用靠 0.6 遮挡
|
||||
laser_model_type: "likelihood_field"
|
||||
max_beams: 60
|
||||
max_particles: 2000
|
||||
@@ -29,7 +29,8 @@ amcl:
|
||||
recovery_alpha_slow: 0.001
|
||||
random_seed: -1
|
||||
resample_interval: 1
|
||||
robot_model_type: "nav2_amcl::OmniMotionModel" # 麦轮全向,差速模型会低估侧移
|
||||
# 与控制器保持一致:仿真里麦轮按差速运动,不用全向模型(否则预测与现实脱节)。
|
||||
robot_model_type: "nav2_amcl::DifferentialMotionModel"
|
||||
save_pose_rate: 0.5
|
||||
sigma_hit: 0.2
|
||||
tf_broadcast: true
|
||||
@@ -41,12 +42,13 @@ amcl:
|
||||
z_max: 0.05
|
||||
z_rand: 0.5
|
||||
z_short: 0.05
|
||||
scan_topic: scan2d # /scan 仰角 +22.5° 不可用,用 0° 单线雷达
|
||||
# ---- 本工程:开机即给初始位姿(RMUL 场地红方出生点)
|
||||
scan_topic: scan2d # /scan 仰角 +22.5° 不可用;scan2d 由 self_filter 从 3D 点云投影生成
|
||||
# ---- 本工程:开机即给初始位姿(场地中心 = (0,0);当前出生点 (-5.0, 3.0),
|
||||
# 必须与 world 里 sentry 的出生点一致)
|
||||
set_initial_pose: true
|
||||
initial_pose:
|
||||
x: 0.9
|
||||
y: 4.0
|
||||
x: -5.0
|
||||
y: 3.0
|
||||
z: 0.0
|
||||
yaw: 0.0
|
||||
|
||||
@@ -162,16 +164,16 @@ controller_server:
|
||||
model_delay_wz: 0.0
|
||||
batch_size: 2000
|
||||
open_loop: false
|
||||
ax_max: 3.0
|
||||
ax_min: -3.0
|
||||
ax_max: 3.5
|
||||
ax_min: -3.5
|
||||
ay_max: 3.0
|
||||
ay_min: -3.0
|
||||
az_max: 3.5
|
||||
vx_std: 0.2
|
||||
vy_std: 0.2
|
||||
wz_std: 0.4
|
||||
vx_max: 0.5
|
||||
vx_min: -0.35
|
||||
vx_max: 1.5
|
||||
vx_min: -0.5
|
||||
vy_max: 0.5
|
||||
wz_max: 1.9
|
||||
iteration_count: 1
|
||||
@@ -181,8 +183,11 @@ controller_server:
|
||||
publish_optimal_trajectory: true
|
||||
regenerate_noises: true
|
||||
motion_model: "diff_drive"
|
||||
# 麦轮在 Gazebo 里是圆柱轮(没有 45° 滚子),侧移指令执行不了——
|
||||
# 发 vy 会让车原地打转、odom 却按理想麦轮积分(假移动)。
|
||||
# 所以控制器只发前进+转向(差速),物理和 odom 才能对得上。
|
||||
diff_drive:
|
||||
plugin: "mppi::OmniMotionModel"
|
||||
plugin: "mppi::DiffDriveMotionModel"
|
||||
TrajectoryVisualizer:
|
||||
trajectory_step: 5
|
||||
time_step: 3
|
||||
@@ -527,10 +532,14 @@ velocity_smoother:
|
||||
smoothing_frequency: 20.0
|
||||
scale_velocities: false
|
||||
feedback: "OPEN_LOOP"
|
||||
max_velocity: [0.5, 0.0, 2.0]
|
||||
# 2026-11-17:车最高速度 0.5 → 1.5 m/s(用户要求)。
|
||||
# 麦轮仿真插件 max_linear_velocity=2.0,1.5 在物理上限内。
|
||||
# 注意:速度越快,AMCL 的 odom 积分误差、MPPI 的预测偏差都会放大,
|
||||
# 真机标定 alpha 参数前别超过 1.5。
|
||||
max_velocity: [1.5, 0.0, 2.0]
|
||||
min_velocity: [-0.5, 0.0, -2.0]
|
||||
max_accel: [3.0, 0.0, 3.5]
|
||||
max_decel: [-3.0, 0.0, -3.5]
|
||||
max_accel: [4.0, 0.0, 4.0]
|
||||
max_decel: [-4.0, 0.0, -4.0]
|
||||
odom_topic: "odom"
|
||||
odom_duration: 0.1
|
||||
deadband_velocity: [0.0, 0.0, 0.0]
|
||||
|
||||
Reference in new issue
Block a user