A handler that samples through TF only ever sees what perception already decided. One that detects for itself - picking the V plate of a charging dock out of a laser scan - needs the ranges array in ray order, and the costmap at 0.05 m has inflated that away beyond reconstruction. ActionContext carried no way to reach sensor data at all, so that handler could not be written. It now carries a read-only port onto the store in robot_sensor_ports. Null when the host provides none, and a handler that needs sensor data is expected to refuse in configure() rather than discover it mid-shift, the same contract the tf pointer already has. The struct is crossed by boost::dll, so its layout is an ABI. Adding a field changes that layout and dlsym plus reinterpret_cast catches none of it at compile time - an old .so reads the old offsets off new data and returns garbage. The field goes at the end and the warning now says so in the doc, but the rule stands: every handler .so is rebuilt in the same pass.
2.5 KiB
2.5 KiB