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:
2026-11-12 13:44:16 +07:00
parent f115fd0efd
commit b5da961449
10 changed files with 713 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
<!-- SIM-ONLY. Vị trí mặc định chỉ là ứng viên qua đọc world; kiểm tra va chạm trong Gazebo. -->
<launch>
<arg name="name" default="wall_reflector_pair" />
<!-- 3.99: mặt dải (x model -0.052, quay π → +0.052) nằm ở 4.042, cách lidar sau của hook_150
(base 5.5 − 0.454 = 5.046) khoảng 1.0 m. Dải 3 cm ở 2 m chỉ còn ~2.6 tia S300 sim. -->
<arg name="x" default="3.99" />
<arg name="y" default="34.5" />
<arg name="z" default="0.0" />
<arg name="yaw" default="3.141592653589793" />
<node name="spawn_$(arg name)" pkg="gazebo_ros" type="spawn_model" output="screen"
args="-sdf -file $(find wall_reflector_detection_action)/sim/models/wall_reflector_pair/model.sdf -model $(arg name) -x $(arg x) -y $(arg y) -z $(arg z) -Y $(arg yaw)" />
</launch>