Skip to content

Commit 4a61734

Browse files
Merge pull request #10 from tony23545/master
add msg pkg
2 parents b499665 + 8e22805 commit 4a61734

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed

nav2_dynamic_msgs/CMakeLists.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
project(nav2_dynamic_msgs)
3+
4+
# Default to C99
5+
if(NOT CMAKE_C_STANDARD)
6+
set(CMAKE_C_STANDARD 99)
7+
endif()
8+
9+
# Default to C++14
10+
if(NOT CMAKE_CXX_STANDARD)
11+
set(CMAKE_CXX_STANDARD 14)
12+
endif()
13+
14+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
15+
add_compile_options(-Wall -Wextra -Wpedantic)
16+
endif()
17+
18+
# find dependencies
19+
find_package(ament_cmake REQUIRED)
20+
# uncomment the following section in order to fill in
21+
# further dependencies manually.
22+
# find_package(<dependency> REQUIRED)
23+
find_package(rclcpp REQUIRED)
24+
find_package(rosidl_default_generators REQUIRED)
25+
find_package(builtin_interfaces REQUIRED)
26+
find_package(std_msgs REQUIRED)
27+
find_package(sensor_msgs REQUIRED)
28+
29+
rosidl_generate_interfaces(${PROJECT_NAME}
30+
"msg/Obstacle.msg"
31+
"msg/ObstacleArray.msg"
32+
DEPENDENCIES std_msgs sensor_msgs
33+
)
34+
35+
if(BUILD_TESTING)
36+
find_package(ament_lint_auto REQUIRED)
37+
# the following line skips the linter which checks for copyrights
38+
# uncomment the line when a copyright and license is not present in all source files
39+
#set(ament_cmake_copyright_FOUND TRUE)
40+
# the following line skips cpplint (only works in a git repo)
41+
# uncomment the line when this package is not in a git repo
42+
#set(ament_cmake_cpplint_FOUND TRUE)
43+
ament_lint_auto_find_test_dependencies()
44+
endif()
45+
46+
ament_package()

nav2_dynamic_msgs/msg/Obstacle.msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
int8 id
2+
float32 score # detection confidence
3+
geometry_msgs/Point position # center
4+
geometry_msgs/Vector3 velocity
5+
geometry_msgs/Vector3 size
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
std_msgs/Header header
2+
Obstacle[] obstacles

nav2_dynamic_msgs/package.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0"?>
2+
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
3+
<package format="3">
4+
<name>nav2_dynamic_msgs</name>
5+
<version>0.0.1</version>
6+
<description>Msg and srv for nav2_dynamic_obstacle</description>
7+
<maintainer email="[email protected]">Steven Macenski</maintainer>
8+
<maintainer email="[email protected]">Shengjian Chen</maintainer>
9+
<license>Apache-2.0</license>
10+
11+
<buildtool_depend>ament_cmake</buildtool_depend>
12+
13+
<build_depend>rosidl_default_generators</build_depend>
14+
15+
<member_of_group>rosidl_interface_packages</member_of_group>
16+
17+
<depend>sensor_msgs</depend>
18+
<depend>std_msgs</depend>
19+
20+
<test_depend>ament_lint_auto</test_depend>
21+
<test_depend>ament_lint_common</test_depend>
22+
23+
<export>
24+
<build_type>ament_cmake</build_type>
25+
</export>
26+
</package>

0 commit comments

Comments
 (0)