feat: EvadeRecovery plugin (back up or turn to the free side)
- plugins/evade_core.h: pure geometry (polygon footprint, reverse sweep, rotation-arc sweep, free-side choice), tested with point lists - plugins/evade_recovery.cpp: reads raw scans through RecoveryContext::sensors; holds on a short view loss, never drives on stale data - RecoveryContext / behavior ABI additions for the sensor reader
This commit is contained in:
@@ -134,6 +134,8 @@ else()
|
||||
robot_geometry_msgs
|
||||
robot_nav_msgs
|
||||
robot_xmlrpcpp
|
||||
robot_sensor_msgs
|
||||
robot_sensor_ports
|
||||
)
|
||||
|
||||
|
||||
@@ -157,6 +159,7 @@ else()
|
||||
recovery_core_clear_costmap_recovery
|
||||
recovery_core_rotate_recovery
|
||||
recovery_core_back_up_recovery
|
||||
recovery_core_evade_recovery
|
||||
|
||||
CATKIN_DEPENDS
|
||||
robot_costmap_2d
|
||||
@@ -165,6 +168,8 @@ else()
|
||||
robot_geometry_msgs
|
||||
robot_nav_msgs
|
||||
robot_xmlrpcpp
|
||||
robot_sensor_msgs
|
||||
robot_sensor_ports
|
||||
|
||||
DEPENDS
|
||||
Boost
|
||||
@@ -456,6 +461,13 @@ add_recovery_core_plugin(
|
||||
plugins/back_up_recovery.cpp
|
||||
)
|
||||
|
||||
# Phản xạ né (lùi hoặc xoay về phía trống). Đọc scan thô qua RecoveryContext::sensors; chỉ dùng
|
||||
# header của robot_sensor_ports/robot_sensor_msgs (template + message), nên không link thêm gì.
|
||||
add_recovery_core_plugin(
|
||||
recovery_core_evade_recovery
|
||||
plugins/evade_recovery.cpp
|
||||
)
|
||||
|
||||
|
||||
# ========================================================
|
||||
# Install - Catkin
|
||||
@@ -560,6 +572,7 @@ else()
|
||||
message(STATUS " recovery_core_clear_costmap_recovery")
|
||||
message(STATUS " recovery_core_rotate_recovery")
|
||||
message(STATUS " recovery_core_back_up_recovery")
|
||||
message(STATUS " recovery_core_evade_recovery")
|
||||
message(STATUS "Dependencies:")
|
||||
message(STATUS " robot_costmap_2d")
|
||||
message(STATUS " robot_cpp")
|
||||
@@ -567,6 +580,8 @@ else()
|
||||
message(STATUS " robot_geometry_msgs")
|
||||
message(STATUS " robot_nav_msgs")
|
||||
message(STATUS " robot_xmlrpcpp")
|
||||
message(STATUS " robot_sensor_msgs (headers)")
|
||||
message(STATUS " robot_sensor_ports (headers)")
|
||||
message(STATUS " tf3")
|
||||
message(STATUS " Boost")
|
||||
message(STATUS " yaml-cpp")
|
||||
@@ -606,6 +621,7 @@ if(BUILD_RECOVERY_CORE_TESTS AND CATKIN_ENABLE_TESTING AND BUILDING_WITH_CATKIN)
|
||||
pose_progress_test
|
||||
rotate_safety_test
|
||||
registry_test
|
||||
evade_recovery_test
|
||||
)
|
||||
|
||||
foreach(test_name ${RECOVERY_CORE_TESTS})
|
||||
|
||||
Reference in New Issue
Block a user