feat(sim): Gazebo wall model, detection sweep and evaluation scripts
- sim/models/wall_reflector_pair: wall with two 3 cm strips 9 cm apart (laser_retro 2000 on the strips, 0 on the wall), generated by gen_wall_models.py; spawn_wall_reflector.launch places it. - sim/eval_wall_reflector.py: compares the published marker/target with the Gazebo ground truth, read from the handler success log because the nav core TF never reaches ROS; --align-by-robot when map != Gazebo world. - sim/sweep_wall_detection.py: places the wall at several distances and angles behind the robot, sends DetectWallReflectors, writes a CSV and dumps the scan of every failed case. - Handler success log now prints marker, target and frame (debug/state). - Install sim/ in both catkin and standalone builds.
This commit is contained in:
@@ -672,8 +672,13 @@ private:
|
||||
return false;
|
||||
if (!writeTransform(output_frame_, x, y, yaw, now))
|
||||
return false;
|
||||
// TF chỉ nằm trong buffer tf3 nội bộ (host không phát lại sang ROS), nên dòng này là cách duy
|
||||
// nhất để đối chiếu kết quả từ ngoài: `sim/eval_wall_reflector.py --log` đọc đúng định dạng này.
|
||||
if (debug_state_)
|
||||
robot::log_info("[wall_reflector][debug] '%s': output TF published.", name_.c_str());
|
||||
robot::log_info("[wall_reflector][debug] '%s': output TF published: marker=(%.4f, %.4f, %.4f) "
|
||||
"target=(%.4f, %.4f, %.4f) frame=%s",
|
||||
name_.c_str(), marker.x, marker.y, marker.yaw, x, y, yaw,
|
||||
ctx_.global_frame.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user