FrameSamplerActionHandler already builds a precise reason for each way it can fail: too few samples, detection too scattered, could not publish the output frame, raw frame never appeared. All four reached the log as the same four words, because control_loop read the tick, kept only the status, and dropped the message, while the state machine passed a hard-coded string to finish(). Three field runs in a row could not be diagnosed for that reason: the detector was healthy, the host confirmed pallet_raw was published and resolvable, and the only thing navigation said was "action failed". The handler message now travels through StateMachineInput into the terminal reason, so it reaches the host feedback as well as the log, and control_loop logs it directly - as an error when the action fails, as info when it succeeds, where it carries the sample count worth comparing against the next failure. StateMachineOutput::reason is a const char* and enter() stores the pointer rather than copying, so the composed string lives in a StateMachine member. Building it in a local would return a pointer into destroyed memory - every other reason in that class is a string literal, so nothing had hit this before. Two tests cover it: the message reaches the reason, and the reason survives the StateMachineInput that carried it. Config in this tree follows the same split as the robot: per-marker dock_anchor and footprint_dock in maker_sources.yaml, detect handlers separated into detect_charger and detect_pallet.
101 lines
2.5 KiB
YAML
Executable File
101 lines
2.5 KiB
YAML
Executable File
robot_base_frame: base_link
|
|
transform_tolerance: 1.0
|
|
performance_metrics_enabled: true
|
|
performance_metrics_period: 5.0
|
|
obstacle_range: 3.0
|
|
#mark_threshold: 1
|
|
publish_voxel_map: true
|
|
footprint_padding: 0.0
|
|
|
|
navigation_map:
|
|
map_topic: /map
|
|
map_pkg: managerments
|
|
map_file: maze
|
|
|
|
virtual_walls_map:
|
|
map_topic: /map
|
|
namespace: /virtual_walls
|
|
map_pkg: managerments
|
|
map_file: maze
|
|
use_maximum: true
|
|
lethal_cost_threshold: 100
|
|
|
|
obstacles:
|
|
observation_sources:
|
|
# f_scan_marking: f_scan_marking f_scan_clearing b_scan pc_marking pc_clearing pc_r_marking pc_r_clearing
|
|
# topic: /f_scan
|
|
# data_type: LaserScan
|
|
# clearing: false
|
|
# marking: true
|
|
# inf_is_valid: true
|
|
# min_obstacle_height: 0.0
|
|
# max_obstacle_height: 0.25
|
|
# f_scan_clearing:
|
|
# topic: /f_scan
|
|
# data_type: LaserScan
|
|
# clearing: true
|
|
# marking: false
|
|
# inf_is_valid: true
|
|
# min_obstacle_height: 0.0
|
|
# max_obstacle_height: 0.25
|
|
b_scan:
|
|
topic: /b_scan
|
|
data_type: LaserScan
|
|
clearing: true
|
|
marking: true
|
|
inf_is_valid: true
|
|
frustum_clearing_enabled: false
|
|
min_obstacle_height: 0.0
|
|
max_obstacle_height: 0.25
|
|
|
|
pc_marking:
|
|
topic: /camera/depth/points_proc
|
|
data_type: PointCloud2
|
|
clearing: false
|
|
marking: true
|
|
inf_is_valid: false
|
|
frustum_clearing_enabled: false
|
|
observation_persistence: 0.0
|
|
expected_update_rate: 0.5
|
|
obstacle_range: 2.5
|
|
raytrace_range: 3.0
|
|
min_obstacle_height: 0.1
|
|
max_obstacle_height: 1.0
|
|
|
|
pc_clearing:
|
|
topic: /camera/depth/data
|
|
data_type: DepthCameraData
|
|
clearing: false
|
|
marking: true
|
|
frustum_clearing_enabled: true
|
|
frustum_clearing_pixel_step: 8
|
|
frustum_min_range: 0.20
|
|
frustum_max_range: 3.5
|
|
|
|
pc_r_marking:
|
|
topic: /camera_right/depth/points_proc
|
|
data_type: PointCloud2
|
|
clearing: false
|
|
marking: true
|
|
inf_is_valid: false
|
|
frustum_clearing_enabled: false
|
|
observation_persistence: 0.0
|
|
expected_update_rate: 0.5
|
|
obstacle_range: 2.5
|
|
raytrace_range: 3.0
|
|
min_obstacle_height: 0.1
|
|
max_obstacle_height: 1.0
|
|
|
|
pc_r_clearing:
|
|
topic: /camera_right/depth/data
|
|
data_type: DepthCameraData
|
|
clearing: false
|
|
marking: true
|
|
frustum_clearing_enabled: true
|
|
frustum_clearing_pixel_step: 8
|
|
frustum_min_range: 0.20
|
|
frustum_max_range: 3.5
|
|
|
|
# Depth camera clearing is handled by VoxelLayer frustum clearing from
|
|
# /camera/depth/image_raw + /camera/depth/camera_info. /camera_right/depth/data
|