Skip to content

Commit

Permalink
Merge pull request #4 from mrlee1994lee/main
Browse files Browse the repository at this point in the history
Add customized msg qrb_ros_vision_msgs
  • Loading branch information
quic-zhaoyuan authored Dec 16, 2024
2 parents 0d03fee + 31e2d7b commit 0190003
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
44 changes: 44 additions & 0 deletions qrb_ros_vision_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
cmake_minimum_required(VERSION 3.8)
project(qrb_ros_vision_msgs)

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif()

# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(vision_msgs REQUIRED)

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/Detection2DWithMask.msg"
"msg/Detection2DWithMaskArray.msg"
DEPENDENCIES std_msgs vision_msgs sensor_msgs
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
# the following line skips the linter which checks for copyrights
# comment the line when a copyright and license is added to all source files
set(ament_cmake_copyright_FOUND TRUE)
# the following line skips cpplint (only works in a git repo)
# comment the line when this package is in a git repo and when
# a copyright and license is added to all source files
set(ament_cmake_cpplint_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
endif()

ament_package()

6 changes: 6 additions & 0 deletions qrb_ros_vision_msgs/msg/Detection2DWithMask.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
std_msgs/Header header

vision_msgs/Detection2D detection

# Binary mask(mono8 image format) of detected instance
sensor_msgs/Image instance_mask
3 changes: 3 additions & 0 deletions qrb_ros_vision_msgs/msg/Detection2DWithMaskArray.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
std_msgs/Header header

Detection2DWithMask[] array
25 changes: 25 additions & 0 deletions qrb_ros_vision_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>qrb_ros_vision_msgs</name>
<version>1.0.0</version>
<description>Messages for computer vision pipelines.</description>
<maintainer email="[email protected]">Xiao Li</maintainer>
<license>BSD-3-Clause-Clear</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<depend>std_msgs</depend>
<depend>sensor_msgs</depend>
<depend>vision_msgs</depend>
<exec_depend>rosidl_default_runtime</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<member_of_group>rosidl_interface_packages</member_of_group>
<export>
<build_type>ament_cmake</build_type>
</export>
</package>

0 comments on commit 0190003

Please sign in to comment.