Commit Graph

2 Commits

Author SHA1 Message Date
duongtd
4033939ff8 Give the simulated plate reflective tape, and correct where its apex is
/f_scan/intensities comes back all zeros in simulation. That is not a missing
feature: libgazebo_ros_laser fills intensities from the laser_retro of the
collision a ray hits, and nothing in the world declares one. Without a surface
that reflects, an intensity-based layer has nothing to work with and would
look broken rather than unconfigured.

The plate now carries two 0.05 m strips at laser_retro 2000 against a
background of 0, spaced 0.1945 m centre to centre, standing 2.5 mm proud of
the wing so rays hit the tape and not the wing behind it. Those two numbers
are what a profile would be given.

Also fixes the model's own description, which said the apex sits at the model
origin with the wings opening toward +X. Working it out from the wing poses,
the apex is at (0.2121, 0) and the V opens toward -X - which is why the spawn
launch turns it by pi. Left as it was, anyone placing the plate would be off
by 0.21 m and would be comparing the model origin against a detector that
reports the apex.
2026-08-26 15:15:45 +07:00
duongtd
4ca57355ba Add a V plate model so the detector has something to find in simulation
The chain was testable but not runnable: simulation fakes the dock entirely
(use_simulated_goal writes an invented pose 1.6 m ahead of base_link), so no
physical object exists for a laser to see. Nothing in the worlds under
Test/simulators is a dock either.

This is the missing half - an SDF plate whose geometry matches the v_std
profile exactly: 90 degree interior angle, 0.30 m wings. 0.02 m thick so
min_split_dist does not read the two faces of one wing as two segments, and
0.6 m tall from the floor so a planar laser at any plausible mounting height
cuts through it.

The plate and the profile have to agree. Change the model and the wing_length
gate rejects the very object that was just spawned, which is the kind of
failure that looks like a broken detector.
2026-08-26 13:14:02 +07:00