feat: add the wall reflector detection action
Action handler that detects two flat reflective tape strips on a wall from a raw LaserScan and publishes the stop-station target (and a marker frame) as static TFs for the next move_to stage. Geometry comes from dock_pattern_detector's ReflectorPairMatcher. The handler adds scan freshness checks (stamp after settle, max age, strictly increasing stamps) and a deadline for detections waiting on TF, derives lidar flip and tilt from TF, and never reuses samples across pause/resume or runs.
This commit is contained in:
167
test/config/action_handlers_params.yaml
Normal file
167
test/config/action_handlers_params.yaml
Normal file
@@ -0,0 +1,167 @@
|
||||
# Cấu hình CHỈ cho test tổng hợp; không phải số hiệu chuẩn robot.
|
||||
actions_wall:
|
||||
handlers:
|
||||
- {name: forward, type: WallReflectorDetectionActionHandler}
|
||||
- {name: backward, type: WallReflectorDetectionActionHandler}
|
||||
- {name: wrong_direction, type: WallReflectorDetectionActionHandler}
|
||||
forward:
|
||||
action_types: [DetectWallReflectors]
|
||||
scan_topic: /f_scan
|
||||
entry_direction: forward
|
||||
default_profile: standard
|
||||
output_frame: wall_reflector_target
|
||||
marker_frame: wall_reflector_frame
|
||||
settle_delay: 0.2
|
||||
timeout: 5.0
|
||||
max_scan_age: 0.3
|
||||
max_future_skew: 0.05
|
||||
pending_tf_timeout: 0.2
|
||||
min_samples: 3
|
||||
sample_window: 1.0
|
||||
profiles:
|
||||
standard:
|
||||
tape_width: 0.05
|
||||
width_tolerance: 0.025
|
||||
tape_spacing: 0.40
|
||||
spacing_tolerance: 0.025
|
||||
tape_min_intensity: 8000.0
|
||||
tape_core_intensity: 15000.0
|
||||
tape_min_points: 3
|
||||
tape_bloom_max_angle: 0.0
|
||||
tape_plateau_min_fraction: 0.5
|
||||
edge_bias_bound: 0.0
|
||||
max_edge_uncertainty: 0.04
|
||||
wall_min_span: 0.65
|
||||
wall_max_rms: 0.006
|
||||
wall_max_residual: 0.02
|
||||
wall_max_gap: 0.15
|
||||
wall_merge_distance: 0.02
|
||||
offset_x: 0.6
|
||||
alternate:
|
||||
tape_width: 0.05
|
||||
width_tolerance: 0.025
|
||||
tape_spacing: 0.40
|
||||
spacing_tolerance: 0.025
|
||||
tape_min_intensity: 8000.0
|
||||
tape_core_intensity: 15000.0
|
||||
tape_min_points: 3
|
||||
tape_bloom_max_angle: 0.0
|
||||
tape_plateau_min_fraction: 0.5
|
||||
edge_bias_bound: 0.0
|
||||
max_edge_uncertainty: 0.04
|
||||
wall_min_span: 0.65
|
||||
wall_max_rms: 0.006
|
||||
wall_max_residual: 0.02
|
||||
wall_max_gap: 0.15
|
||||
wall_merge_distance: 0.02
|
||||
offset_x: 0.8
|
||||
offset_y: 0.1
|
||||
offset_yaw: 0.2
|
||||
backward:
|
||||
action_types: [DetectWallReflectorsBackward]
|
||||
scan_topic: /b_scan2
|
||||
entry_direction: backward
|
||||
default_profile: standard
|
||||
output_frame: wall_reflector_target
|
||||
marker_frame: wall_reflector_frame
|
||||
settle_delay: 0.2
|
||||
timeout: 5.0
|
||||
max_scan_age: 0.3
|
||||
max_future_skew: 0.05
|
||||
pending_tf_timeout: 0.2
|
||||
min_samples: 3
|
||||
sample_window: 1.0
|
||||
profiles:
|
||||
standard:
|
||||
tape_width: 0.05
|
||||
width_tolerance: 0.025
|
||||
tape_spacing: 0.40
|
||||
spacing_tolerance: 0.025
|
||||
tape_min_intensity: 8000.0
|
||||
tape_core_intensity: 15000.0
|
||||
tape_min_points: 3
|
||||
tape_bloom_max_angle: 0.0
|
||||
tape_plateau_min_fraction: 0.5
|
||||
edge_bias_bound: 0.0
|
||||
max_edge_uncertainty: 0.04
|
||||
wall_min_span: 0.65
|
||||
wall_max_rms: 0.006
|
||||
wall_max_residual: 0.02
|
||||
wall_max_gap: 0.15
|
||||
wall_merge_distance: 0.02
|
||||
offset_x: 0.6
|
||||
alternate:
|
||||
tape_width: 0.05
|
||||
width_tolerance: 0.025
|
||||
tape_spacing: 0.40
|
||||
spacing_tolerance: 0.025
|
||||
tape_min_intensity: 8000.0
|
||||
tape_core_intensity: 15000.0
|
||||
tape_min_points: 3
|
||||
tape_bloom_max_angle: 0.0
|
||||
tape_plateau_min_fraction: 0.5
|
||||
edge_bias_bound: 0.0
|
||||
max_edge_uncertainty: 0.04
|
||||
wall_min_span: 0.65
|
||||
wall_max_rms: 0.006
|
||||
wall_max_residual: 0.02
|
||||
wall_max_gap: 0.15
|
||||
wall_merge_distance: 0.02
|
||||
offset_x: 0.8
|
||||
offset_y: 0.1
|
||||
offset_yaw: 0.2
|
||||
wrong_direction:
|
||||
action_types: [DetectWallWrong]
|
||||
scan_topic: /b_scan2
|
||||
entry_direction: forward
|
||||
default_profile: standard
|
||||
output_frame: wall_reflector_target
|
||||
marker_frame: wall_reflector_frame
|
||||
settle_delay: 0.2
|
||||
timeout: 5.0
|
||||
max_scan_age: 0.3
|
||||
max_future_skew: 0.05
|
||||
pending_tf_timeout: 0.2
|
||||
min_samples: 3
|
||||
sample_window: 1.0
|
||||
profiles:
|
||||
standard:
|
||||
tape_width: 0.05
|
||||
width_tolerance: 0.025
|
||||
tape_spacing: 0.40
|
||||
spacing_tolerance: 0.025
|
||||
tape_min_intensity: 8000.0
|
||||
tape_core_intensity: 15000.0
|
||||
tape_min_points: 3
|
||||
tape_bloom_max_angle: 0.0
|
||||
tape_plateau_min_fraction: 0.5
|
||||
edge_bias_bound: 0.0
|
||||
max_edge_uncertainty: 0.04
|
||||
wall_min_span: 0.65
|
||||
wall_max_rms: 0.006
|
||||
wall_max_residual: 0.02
|
||||
wall_max_gap: 0.15
|
||||
wall_merge_distance: 0.02
|
||||
offset_x: 0.6
|
||||
alternate:
|
||||
tape_width: 0.05
|
||||
width_tolerance: 0.025
|
||||
tape_spacing: 0.40
|
||||
spacing_tolerance: 0.025
|
||||
tape_min_intensity: 8000.0
|
||||
tape_core_intensity: 15000.0
|
||||
tape_min_points: 3
|
||||
tape_bloom_max_angle: 0.0
|
||||
tape_plateau_min_fraction: 0.5
|
||||
edge_bias_bound: 0.0
|
||||
max_edge_uncertainty: 0.04
|
||||
wall_min_span: 0.65
|
||||
wall_max_rms: 0.006
|
||||
wall_max_residual: 0.02
|
||||
wall_max_gap: 0.15
|
||||
wall_merge_distance: 0.02
|
||||
offset_x: 0.8
|
||||
offset_y: 0.1
|
||||
offset_yaw: 0.2
|
||||
WallReflectorDetectionActionHandler:
|
||||
library_path: libwall_reflector_detection_action_handler
|
||||
Reference in New Issue
Block a user