TrolleyDetectionActionHandler finds a 4-leg trolley in a raw LaserScan with dock_pattern_detector's LegPatternMatcher, filters the detections and writes a static dock_target frame for the docking leg that drives under the trolley. - entry_direction forward/backward sets the goal heading; a lidar that faces the wrong way fails the action instead of writing a reversed goal - an upside-down lidar (roll pi in TF) is detected from TF and its bearings are mirrored; a scan plane tilted more than 5 deg fails the action - profiles validated at boot; optional prior, reflective tape (all/entry) - gtest (11 tests) incl. a recorded Gazebo scan from a roll-pi lidar - sim models trolley_4legs (+ taped variants) the robot can drive under, spawn launch and generator script - doc/MEASURE_AND_CONFIGURE.md: how to measure a trolley and fill the profile
34 lines
1.6 KiB
XML
34 lines
1.6 KiB
XML
<!--
|
|
Dựng một xe hàng 4 chân ĐƠN GIẢN vào world Gazebo đang chạy (model trong sim/models, sinh bằng
|
|
sim/gen_trolley_models.py).
|
|
|
|
Chạy SAU khi world đã lên:
|
|
roslaunch trolley_detection_action spawn_trolley.launch x:=7.009 y:=34.5275 yaw:=0.0
|
|
|
|
`model`:
|
|
trolley_4legs (mặc định) không dải phản quang — dò bằng hình học;
|
|
trolley_4legs_tape_entry dải ở 2 chân đầu +X của model (= cạnh vào);
|
|
trolley_4legs_tape_all dải cả 4 chân.
|
|
Gốc model ở TÂM 4 chân và chân chạm sàn ở z = 0, nên ground truth chính là pose spawn (x, y, yaw).
|
|
|
|
Robot chui gầm được: sàn xe cao 0.380 m (nóc hook_150 0.3595 m), không có tấm đáy. Model
|
|
`tci_trolley` của factory_ss_demo thì KHÔNG chui được trong Gazebo: mesh của nó có tấm đáy
|
|
0.78 x 0.613 x 0.01 m sát sàn và mặt dưới sàn xe 0.352 m (ngoài đời là khe dẫn hướng).
|
|
|
|
⚠ Gazebo TỪ CHỐI spawn đè lên model cùng tên ("entity already exists"). Xoá trước, ví dụ:
|
|
rosservice call /gazebo/delete_model "model_name: 'trolley'"
|
|
-->
|
|
<launch>
|
|
<arg name="model" default="trolley_4legs" />
|
|
<arg name="name" default="trolley" />
|
|
<arg name="x" default="3.0" />
|
|
<arg name="y" default="0.0" />
|
|
<arg name="z" default="0.0" />
|
|
<arg name="yaw" default="3.14159" />
|
|
|
|
<node name="spawn_$(arg name)" pkg="gazebo_ros" type="spawn_model" output="screen"
|
|
args="-sdf -file $(find trolley_detection_action)/sim/models/$(arg model)/model.sdf
|
|
-model $(arg name)
|
|
-x $(arg x) -y $(arg y) -z $(arg z) -Y $(arg yaw)" />
|
|
</launch>
|