diff --git a/CMakeLists.txt b/CMakeLists.txt index c7e873c..fc933fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,12 @@ target_link_libraries(dock_pattern_action_handler ${TF3_LIBRARY} ) +# Model + launch để dựng tấm chữ V trong Gazebo. Không phải build artifact, nhưng launch file tra +# đường dẫn qua $(find dock_pattern_action) nên phải có mặt sau khi install. +install(DIRECTORY sim/ + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/sim +) + install(TARGETS dock_pattern_action_handler ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} diff --git a/sim/launch/spawn_dock_plate.launch b/sim/launch/spawn_dock_plate.launch new file mode 100644 index 0000000..ab79345 --- /dev/null +++ b/sim/launch/spawn_dock_plate.launch @@ -0,0 +1,29 @@ + + + + + + + + + + + + + diff --git a/sim/models/dock_plate_v/model.config b/sim/models/dock_plate_v/model.config new file mode 100644 index 0000000..48138ab --- /dev/null +++ b/sim/models/dock_plate_v/model.config @@ -0,0 +1,14 @@ + + + dock_plate_v + 1.0 + model.sdf + + T800 Robotics + tdd@gmail.com + + + Tấm dẫn hướng chữ V của trạm dock, dùng để kiểm bộ dò biên dạng bằng LiDAR trong Gazebo. + Góc trong tại đỉnh 90 độ, mỗi cánh 0.30 m — khớp profile `v_std`. + + diff --git a/sim/models/dock_plate_v/model.sdf b/sim/models/dock_plate_v/model.sdf new file mode 100644 index 0000000..63cc3c4 --- /dev/null +++ b/sim/models/dock_plate_v/model.sdf @@ -0,0 +1,58 @@ + + + + + true + + + + 0.10607 0.10607 0.3 0 0 0.7854 + + + 0.02 0.30 0.6 + + + + + 0.02 0.30 0.6 + + + 0.9 0.6 0.1 1 + 0.9 0.6 0.1 1 + + + + + + 0.10607 -0.10607 0.3 0 0 -0.7854 + + + 0.02 0.30 0.6 + + + + + 0.02 0.30 0.6 + + + 0.9 0.6 0.1 1 + 0.9 0.6 0.1 1 + + + + +