feat: AMCL 定位接入、场地定位工具与文档更新
This commit is contained in:
1 parent
0c6b49e276
commit
0e4e4c6e18
45 files changed
+3173
-151
No files matched your search
@@ -13,8 +13,8 @@ amcl:
|
||||
global_frame_id: "map"
|
||||
lambda_short: 0.1
|
||||
laser_likelihood_max_dist: 2.0
|
||||
laser_max_range: 100.0
|
||||
laser_min_range: -1.0
|
||||
laser_max_range: 12.0 # 雷达量程 12 m(真机 40 m),写 100 会把虚警算成有效
|
||||
laser_min_range: 0.6 # 车体最远 0.537 m,低于 0.6 的束全是自己的回波
|
||||
laser_model_type: "likelihood_field"
|
||||
max_beams: 60
|
||||
max_particles: 2000
|
||||
@@ -22,11 +22,14 @@ amcl:
|
||||
odom_frame_id: "odom"
|
||||
pf_err: 0.05
|
||||
pf_z: 0.99
|
||||
recovery_alpha_fast: 0.0
|
||||
recovery_alpha_slow: 0.0
|
||||
# 绑架恢复:短时间内观测一直跟不上时,往粒子云里注入随机粒子重新找位置。
|
||||
# 0.0 = 关闭(nav2 默认 off),代价是"车被搬走/被撞飞"之后再也回不来。
|
||||
# 真机上应该打开:0.001 / 0.1 是 nav2 文档给的常用值。
|
||||
recovery_alpha_fast: 0.1
|
||||
recovery_alpha_slow: 0.001
|
||||
random_seed: -1
|
||||
resample_interval: 1
|
||||
robot_model_type: "nav2_amcl::DifferentialMotionModel"
|
||||
robot_model_type: "nav2_amcl::OmniMotionModel" # 麦轮全向,差速模型会低估侧移
|
||||
save_pose_rate: 0.5
|
||||
sigma_hit: 0.2
|
||||
tf_broadcast: true
|
||||
@@ -38,7 +41,7 @@ amcl:
|
||||
z_max: 0.05
|
||||
z_rand: 0.5
|
||||
z_short: 0.05
|
||||
scan_topic: scan
|
||||
scan_topic: scan2d # /scan 仰角 +22.5° 不可用,用 0° 单线雷达
|
||||
# ---- 本工程:开机即给初始位姿(RMUL 场地红方出生点)
|
||||
set_initial_pose: true
|
||||
initial_pose:
|
||||
@@ -561,10 +564,12 @@ collision_monitor:
|
||||
min_points: 6
|
||||
visualize: false
|
||||
enabled: true
|
||||
observation_sources: ["scan"]
|
||||
scan:
|
||||
# 用 0° 单线雷达。/scan 是 3D 雷达中间层(+22.5° 射向天空,
|
||||
# 有效束只有 86/360 且全在 0.12~0.27 m = 车体回波),等于瞎的。
|
||||
observation_sources: ["scan2d"]
|
||||
scan2d:
|
||||
type: "scan"
|
||||
topic: "scan"
|
||||
topic: "scan2d"
|
||||
min_height: 0.15
|
||||
max_height: 2.0
|
||||
enabled: true
|
||||
|
||||
@@ -187,6 +187,39 @@ Visualization Manager:
|
||||
Use Fixed Frame: true
|
||||
Use rainbow: true
|
||||
Value: true
|
||||
- Alpha: 1
|
||||
Autocompute Intensity Bounds: true
|
||||
Autocompute Value Bounds:
|
||||
Max Value: 10
|
||||
Min Value: -10
|
||||
Value: true
|
||||
Axis: Z
|
||||
Channel Name: intensity
|
||||
Class: rviz_default_plugins/PointCloud2
|
||||
Color: 0; 255; 0
|
||||
Color Transformer: FlatColor
|
||||
Decay Time: 0
|
||||
Enabled: true
|
||||
Invert Rainbow: false
|
||||
Max Color: 255; 255; 255
|
||||
Max Intensity: 4096
|
||||
Min Color: 0; 0; 0
|
||||
Min Intensity: 0
|
||||
Name: 过滤后点云
|
||||
Position Transformer: ""
|
||||
Selectable: true
|
||||
Size (Pixels): 3
|
||||
Size (m): 0.03
|
||||
Style: Points
|
||||
Topic:
|
||||
Depth: 5
|
||||
Durability Policy: Volatile
|
||||
History Policy: Keep Last
|
||||
Reliability Policy: Best Effort
|
||||
Value: /scan/points_filtered
|
||||
Use Fixed Frame: true
|
||||
Use rainbow: false
|
||||
Value: true
|
||||
- Alpha: 1
|
||||
Binary representation: false
|
||||
Binary threshold: 100
|
||||
|
||||
Reference in new issue
Block a user