Add a V plate model so the detector has something to find in simulation
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 commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user