update hieplm

This commit is contained in:
2026-01-05 13:37:48 +07:00
parent fb03bdf2e8
commit 5c276afb34
18 changed files with 327 additions and 59 deletions

View File

@@ -4,6 +4,27 @@ project(robot_map_msgs)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# ========================================================
# Catkin specific configuration
# ========================================================
if(DEFINED CATKIN_DEVEL_PREFIX OR DEFINED CATKIN_TOPLEVEL)
set(BUILDING_WITH_CATKIN TRUE)
message(STATUS "Building robot_map_msgs with Catkin")
else()
set(BUILDING_WITH_CATKIN FALSE)
message(STATUS "Building robot_map_msgs with Standalone CMake")
endif()
if(BUILDING_WITH_CATKIN)
find_package(catkin REQUIRED COMPONENTS robot_std_msgs)
## The catkin_package macro generates cmake config files for your package
catkin_package(
INCLUDE_DIRS include
# LIBRARIES không cần vì đây là header-only library
)
endif()
# Thư viện header-only
add_library(robot_map_msgs INTERFACE)
@@ -18,13 +39,22 @@ target_include_directories(robot_map_msgs
target_link_libraries(robot_map_msgs INTERFACE robot_std_msgs)
# --- Cài đặt thư viện vào hệ thống khi chạy make install ---
# Export target trong mọi trường hợp để các target khác có thể export và phụ thuộc vào nó
install(TARGETS robot_map_msgs
EXPORT robot_map_msgs-targets
INCLUDES DESTINATION include # Cài đặt include
)
# --- Xuất export set robot_costmap_2dTargets thành file CMake module ---
# --- Tạo file lib/cmake/robot_map_msgs/robot_costmap_2dTargets.cmake ---
if(NOT BUILDING_WITH_CATKIN)
# Install headers for standalone mode
install(DIRECTORY include/
DESTINATION include
FILES_MATCHING PATTERN "*.h"
)
endif()
# --- Xuất export set robot_map_msgs-targets thành file CMake module ---
# --- Tạo file lib/cmake/robot_map_msgs/robot_map_msgs-targets.cmake ---
# --- File này chứa cấu hình giúp project khác có thể dùng ---
# --- Find_package(robot_map_msgs REQUIRED) ---
# --- Target_link_libraries(my_app PRIVATE robot_map_msgs::robot_map_msgs) ---

View File

@@ -2,7 +2,8 @@
#define ROBOT_OCCUPANCY_GRID_UPDATE_H
#include <vector>
#include "robot_std_msgs/Header.h"
#include <robot_std_msgs/Header.h>
namespace robot_map_msgs
{
struct OccupancyGridUpdate

View File

@@ -1,13 +1,8 @@
<package>
<name>robot_nav_msgs</name>
<name>robot_map_msgs</name>
<version>0.7.10</version>
<description>
robot_nav_msgs is the second generation of the transform library, which lets
the user keep track of multiple coordinate frames over time. robot_nav_msgs
maintains the relationship between coordinate frames in a tree
structure buffered in time, and lets the user transform points,
vectors, etc between any two coordinate frames at any desired
point in time.
robot_map_msgs provides message types for map-related data structures.
</description>
<author>Tully Foote</author>
<author>Eitan Marder-Eppstein</author>
@@ -15,12 +10,11 @@
<maintainer email="tfoote@osrfoundation.org">Tully Foote</maintainer>
<license>BSD</license>
<url type="website">http://www.ros.org/wiki/robot_nav_msgs</url>
<url type="website">http://www.ros.org/wiki/robot_map_msgs</url>
<buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>
<build_depend>libconsole-bridge-dev</build_depend>
<run_depend>libconsole-bridge-dev</run_depend>
<build_depend>robot_std_msgs</build_depend>
<run_depend>robot_std_msgs</run_depend>
</package>