Bring main up to the dev_cam_intel line
main had not moved since 11 July, while the depth-camera work continued on
dev_cam_intel for six weeks. The two branches did not diverge by accident: they
ended up holding two different clearing designs for the same layer.
main carried frustum clearing as VoxelLayer members - frustum_clearing_enabled_,
a pixel step and a min/max range - driven from costmap_2d_robot. dev_cam_intel
replaced that with a full-column clearing pass whose configuration lives per
observation, so the layer keeps no frustum state of its own.
This commit takes the dev_cam_intel tree whole. It is the line running on the
robot, the one rb_ws points at, and the one the NUC measurements were taken
against; the frustum design is superseded rather than merged, and stays in
history at 45c8227 if it is ever wanted back.
Squashed deliberately: the nineteen commits behind it are a working diary -
metrics that were added and removed, test toggles, an optimal-run series - and
none of that is worth carrying onto a branch other trees track.
This commit is contained in:
@@ -18,8 +18,10 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
# Find dependencies
|
||||
find_package(Eigen3 REQUIRED)
|
||||
find_package(Boost REQUIRED COMPONENTS system thread filesystem)
|
||||
find_package(GTest REQUIRED)
|
||||
find_package(PCL REQUIRED COMPONENTS common io)
|
||||
# GTest is only needed by the test executables, which the robot deployment build
|
||||
# does not produce. QUIET, not REQUIRED: a robot without GTest installed must
|
||||
# still configure. The test block below requires it where it is actually used.
|
||||
find_package(GTest QUIET)
|
||||
find_package(yaml-cpp REQUIRED)
|
||||
|
||||
if (NOT BUILDING_WITH_CATKIN)
|
||||
@@ -78,7 +80,7 @@ else()
|
||||
INCLUDE_DIRS include
|
||||
LIBRARIES robot_costmap_2d plugins
|
||||
CATKIN_DEPENDS robot_std_msgs robot_sensor_msgs geometry_msgs robot_nav_msgs robot_map_msgs robot_laser_geometry robot_visualization_msgs robot_voxel_grid robot_tf3_geometry_msgs robot_tf3_sensor_msgs data_convert robot_xmlrpcpp robot_cpp robot_time
|
||||
DEPENDS PCL Boost
|
||||
DEPENDS Boost
|
||||
)
|
||||
|
||||
include_directories(
|
||||
@@ -87,17 +89,15 @@ else()
|
||||
${EIGEN3_INCLUDE_DIRS}
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${GTEST_INCLUDE_DIRS}
|
||||
${PCL_INCLUDE_DIRS}
|
||||
${TF3_INCLUDE_DIR}
|
||||
)
|
||||
link_directories(${PCL_LIBRARY_DIRS})
|
||||
endif()
|
||||
|
||||
# Define macro để dùng trong code
|
||||
add_definitions(-DROBOT_COSTMAP_2D_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
# Eigen và PCL definitions
|
||||
add_definitions(${EIGEN3_DEFINITIONS} ${PCL_DEFINITIONS})
|
||||
# Eigen definitions
|
||||
add_definitions(${EIGEN3_DEFINITIONS})
|
||||
|
||||
# ========================================================
|
||||
# Core library: robot_costmap_2d
|
||||
@@ -123,7 +123,6 @@ if(BUILDING_WITH_CATKIN)
|
||||
$<INSTALL_INTERFACE:include>
|
||||
${EIGEN3_INCLUDE_DIRS}
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${PCL_INCLUDE_DIRS}
|
||||
${TF3_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
@@ -132,7 +131,6 @@ if(BUILDING_WITH_CATKIN)
|
||||
PRIVATE Boost::boost Boost::system Boost::thread Boost::filesystem
|
||||
PRIVATE yaml-cpp
|
||||
PRIVATE dl
|
||||
PRIVATE ${PCL_LIBRARIES}
|
||||
PRIVATE ${TF3_LIBRARY}
|
||||
)
|
||||
|
||||
@@ -144,7 +142,6 @@ else()
|
||||
$<INSTALL_INTERFACE:include>
|
||||
${EIGEN3_INCLUDE_DIRS}
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${PCL_INCLUDE_DIRS}
|
||||
${TF3_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
@@ -155,7 +152,6 @@ else()
|
||||
Boost::boost Boost::system Boost::thread Boost::filesystem
|
||||
yaml-cpp
|
||||
dl
|
||||
${PCL_LIBRARIES}
|
||||
${TF3_LIBRARY}
|
||||
)
|
||||
|
||||
@@ -271,14 +267,19 @@ else()
|
||||
message(STATUS "Version: ${PROJECT_VERSION}")
|
||||
message(STATUS "C++ Standard: ${CMAKE_CXX_STANDARD}")
|
||||
message(STATUS "Libraries: robot_costmap_2d, plugins")
|
||||
message(STATUS "Dependencies: robot_std_msgs, robot_sensor_msgs, geometry_msgs, robot_nav_msgs, robot_map_msgs, robot_laser_geometry, robot_visualization_msgs, robot_voxel_grid, tf3, robot_tf3_geometry_msgs, robot_tf3_sensor_msgs, data_convert, robot_xmlrpcpp, robot_cpp, robot_time, Eigen3, PCL, Boost, yaml-cpp")
|
||||
message(STATUS "Dependencies: robot_std_msgs, robot_sensor_msgs, geometry_msgs, robot_nav_msgs, robot_map_msgs, robot_laser_geometry, robot_visualization_msgs, robot_voxel_grid, tf3, robot_tf3_geometry_msgs, robot_tf3_sensor_msgs, data_convert, robot_xmlrpcpp, robot_cpp, robot_time, Eigen3, Boost, yaml-cpp")
|
||||
message(STATUS "=================================")
|
||||
endif()
|
||||
|
||||
# ========================================================
|
||||
# Test executables
|
||||
# ========================================================
|
||||
option(BUILD_COSTMAP_TESTS "Build robot_costmap_2d test executables" ON)
|
||||
# Default follows the build mode, not a fixed value: a catkin workspace is a
|
||||
# development machine and gets the tests, while the standalone CMake build is how
|
||||
# the robot is deployed and must not need GTest installed at all. Force it on with
|
||||
# -DBUILD_COSTMAP_TESTS=ON to run the tests from a standalone build.
|
||||
option(BUILD_COSTMAP_TESTS "Build robot_costmap_2d test executables"
|
||||
${BUILDING_WITH_CATKIN})
|
||||
|
||||
if(BUILD_COSTMAP_TESTS)
|
||||
find_package(GTest REQUIRED)
|
||||
@@ -299,6 +300,7 @@ if(BUILD_COSTMAP_TESTS)
|
||||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/coordinates_test.cpp)
|
||||
add_executable(test_costmap test/coordinates_test.cpp)
|
||||
target_link_libraries(test_costmap PRIVATE
|
||||
plugins
|
||||
robot_costmap_2d
|
||||
GTest::GTest
|
||||
GTest::Main
|
||||
|
||||
Reference in New Issue
Block a user