find_package(catkin REQUIRED ...) sat at top level, so a build without catkin
died at configure time, pointing at packages that are present in the tree. What
is absent is the <pkg>Config.cmake files only a catkin workspace produces.
Standalone names the CMake targets directly; the root CMakeLists adds every
dependency before this package, so their include directories arrive through
each target's PUBLIC interface.
The plugin goes to the top of the build tree in standalone mode. boost::dll
loads it by filename and PluginLoaderHelper resolves that against the build
directory, so a plugin left in its own subdirectory builds and is then
invisible at runtime.
The SYSTEM include paths moved from a directory-wide include_directories() onto
the target. This package also builds a test target, and a directory-wide path
lands on every target in it whether or not that target should see it.
sim/ is installed in both modes. The launch files resolve it through
$(find dock_pattern_action) under catkin; standalone has no catkin layout, so
it goes under the data directory instead.
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.
This is the layer that turns the geometry into something the robot actually
runs. It pulls a raw scan from the shared store, extracts lines, matches the
dock pattern, transforms into the global frame and writes the result as a
static transform - the same output contract FrameSampler has, so the charge
sequence keeps working and nothing in move_base2, dock_planner or
mission_adapters changes. Swapping detectors is one word in the YAML.
It is also the only place in the chain allowed to know about TF, actions and
the sensor store. The three packages beneath it stay free of all that, which
is what lets their tests build a world, cast rays and finish in a millisecond
with no runtime around them.
Three things only break once the pieces are joined, and no core test can see
them:
The scan cursor. A 30 Hz control loop reading a 29 Hz lidar ticks more often
than scans arrive. Without the cursor the same scan counts as several samples,
min_samples stops meaning anything, and the handler commits on one measurement.
TF arriving after the scan. The two come from different sources, so TF running
a few milliseconds behind is routine. The store's cursor has already moved past
that scan, so dropping the sample loses a detection outright every time TF is
late. The detection is now held and transformed on a later tick, without
re-running the match - the shape was already found, only the transform was
missing. The regression test fails without that, which is how it earned its
place.
Transforming at the scan's own stamp rather than at the latest. The pose just
computed belongs to the moment the scan was taken; looking up at another moment
mixes two instants into one measurement. The error from "latest" is small but
nobody knows how small, and a stamp on the wrong clock shows up exactly here.
Rejections happen at boot, not at detection time: no sensor store, a scan_topic
the store does not carry (listing the ones it does - a mistyped topic looks
exactly like a dead sensor), no profiles, a pattern that is not implemented,
a default_profile that does not exist. Every profile is validated, not just the
default one, because a typo in the fifth profile that only surfaces at four in
the afternoon is the worst kind.
An order asking for a profile that does not exist fails and says which ones do.
It does not quietly fall back to the default: using the wrong geometry means
docking in the wrong place, not being slightly slower.
The timeout message says which gate failed. Nothing matched, matched too
rarely, or matched but never settled need opposite responses, and one failure
line cannot carry that.