msg files and cmakelist to build msg

This commit is contained in:
Apoorva Gupta 2023-03-21 12:04:27 +05:30
parent fc5dbd85d3
commit 987530bbfe
4 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,46 @@
cmake_minimum_required(VERSION 3.5)
project(yolov4_msg)
# Find dependencies
#find_package(ament_cmake REQUIRED)
find_package(rclpy REQUIRED)
find_package(std_msgs REQUIRED)
# Create the executable
#add_executable(yolov4_msg yolov4_msg.py)
# Set the permissions of the Python script to be executable
find_package(rosidl_default_generators REQUIRED)
rosidl_generate_interfaces(yolov4_msg
"msg/BoundingBox.msg"
"msg/BoundingBoxes.msg"
DEPENDENCIES builtin_interfaces std_msgs
)
# Link the executable with the necessary libraries
#ament_target_dependencies(yolov4_msg rclpy)
# Install the executable
#install(TARGETS yolov4_msg DESTINATION lib/yolov4_msg)
# Install the script, setup.py, and package.xml files
#install(PROGRAMS yolov4_msg.py
# DESTINATION lib/yolov3_on_bag)
#install(FILES package.xml
# DESTINATION share/yolov3_on_bag)
# Export the package dependencies
#ament_export_dependencies(rclpy)
# Package information
#ament_package()
#add_executable(yolov4_msg yolov4_msg.py)
ament_export_dependencies(rosidl_default_runtime)
ament_package()

View File

@ -0,0 +1,7 @@
float64 probability
int64 xmin
int64 ymin
int64 xmax
int64 ymax
int16 id
string class_id

View File

@ -0,0 +1,3 @@
std_msgs/Header header
std_msgs/Header image_header
BoundingBox[] bounding_boxes

View File

@ -0,0 +1,26 @@
<?xml version="1.0"?>
<package format="3">
<name>yolov4_msg</name>
<version>0.1.0</version>
<description>
This is a ROS2 package for running yolov3 on rosbag
</description>
<maintainer email="myname@myemail.com">My Name</maintainer>
<license>MIT License</license>
<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>rclpy</build_depend>
<build_depend>std_msgs</build_depend>
<exec_depend>rclpy</exec_depend>
<exec_depend>std_msgs</exec_depend>
<build_depend>rosidl_default_generators</build_depend>
<exec_depend>rosidl_default_runtime</exec_depend>
<member_of_group>rosidl_interface_packages</member_of_group>
<export>
<build_type>ament_cmake</build_type>
</export>
</package>