Skip to content

Commit

Permalink
feat: add StringStamped message which will be used to transmit data a…
Browse files Browse the repository at this point in the history
…s JSON
  • Loading branch information
Minipada committed Nov 2, 2022
1 parent 6a06542 commit 7eafb65
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
22 changes: 22 additions & 0 deletions dc_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cmake_minimum_required(VERSION 3.8)
project(dc_interfaces)


set(dependencies
builtin_interfaces
rosidl_default_generators
std_msgs
)
find_package(ament_cmake REQUIRED)
foreach(Dependency IN ITEMS ${dependencies})
find_package(${Dependency} REQUIRED)
endforeach()


rosidl_generate_interfaces(
${PROJECT_NAME}
"msg/StringStamped.msg"
DEPENDENCIES "${dependencies}"
)

ament_package()
4 changes: 4 additions & 0 deletions dc_interfaces/msg/StringStamped.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
std_msgs/Header header

string data
string group_key
20 changes: 20 additions & 0 deletions dc_interfaces/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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>dc_interfaces</name>
<version>0.6.1</version>
<description>Package containing data collection interfaces.</description>
<maintainer email="d.bensoussan@proton.me">David Bensoussan</maintainer>
<license>MPL-2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>builtin_interfaces</build_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>

0 comments on commit 7eafb65

Please sign in to comment.