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.
54 lines
2.5 KiB
XML
54 lines
2.5 KiB
XML
<package>
|
|
<name>action_core</name>
|
|
<version>0.1.0</version>
|
|
<description>
|
|
Interface tick-based cho thực thi action của mission, kèm handler mặc định và registry nạp
|
|
plugin.
|
|
|
|
Vòng đời: configure(name, nh) -> start(action, now) -> lặp update(now) -> [cancel()]. Handler
|
|
được tick từ control thread ở tần số điều khiển nên KHÔNG được block: chờ thiết bị thì giữ state
|
|
nội bộ và trả kRunning. Mỗi handler tự chịu trách nhiệm timeout theo thiết bị của nó — đó là
|
|
tầng chính trong contract 3 tầng, hai tầng còn lại (action_patience, mission_timeout) chỉ là
|
|
lưới cuối của caller.
|
|
|
|
Tick của action cố ý KHÔNG mang vận tốc: trong lúc chạy action không ai được phát cmd_vel, chuyển
|
|
động phải là motion profile của navigation. Đây là hàng rào an toàn, không phải thiếu sót.
|
|
|
|
Không chạy roscpp/ROS master; dùng lớp ROS-like robot_* (robot_cpp, robot_time,
|
|
robot_protocol_msgs). Handler build thành plugin Boost.DLL riêng, nạp qua ActionRegistry theo
|
|
khoá library_path trong YAML — thêm một loại action mới không phải sửa dòng nào của gói này.
|
|
</description>
|
|
<author>T800 Robotics</author>
|
|
<maintainer email="tdd@gmail.com">T800 Robotics</maintainer>
|
|
<license>BSD</license>
|
|
|
|
<buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>
|
|
|
|
<build_depend>robot_cpp</build_depend>
|
|
<run_depend>robot_cpp</run_depend>
|
|
|
|
<build_depend>robot_time</build_depend>
|
|
<run_depend>robot_time</run_depend>
|
|
|
|
<!-- Action và ActionParameter của VDA5050. Khai tường minh dù đang sống nhờ transitive include:
|
|
thiếu nó là gãy ngay khi build standalone. -->
|
|
<build_depend>robot_protocol_msgs</build_depend>
|
|
<run_depend>robot_protocol_msgs</run_depend>
|
|
|
|
<!-- Handler dò đọc và GHI TF (ActionContext::tf). tf3 không dính ROS nên gói này vẫn không roscpp. -->
|
|
<build_depend>tf3</build_depend>
|
|
<run_depend>tf3</run_depend>
|
|
|
|
<build_depend>robot_xmlrpcpp</build_depend>
|
|
<run_depend>robot_xmlrpcpp</run_depend>
|
|
|
|
<!-- Kho cảm biến thô dùng chung. Gói này chỉ dùng phần khai báo interface trong ActionContext;
|
|
handler nào thật sự đọc cảm biến mới cần link. -->
|
|
<build_depend>robot_sensor_ports</build_depend>
|
|
<run_depend>robot_sensor_ports</run_depend>
|
|
|
|
<build_depend>yaml-cpp</build_depend>
|
|
<run_depend>yaml-cpp</run_depend>
|
|
|
|
</package>
|