Skip to content

Commit

Permalink
feat: add modulo interface package (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
domire8 authored Apr 17, 2024
1 parent c4b9915 commit 5ad83ad
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Release Versions:
- chore: fix links in readme (#68)
- feat: add mutex around step callback (#67)
- feat: add warn log when topics are sanitized (#66)
- feat: add modulo interface package (#73)

## 4.0.0

Expand Down
10 changes: 10 additions & 0 deletions source/modulo_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 3.15)
project(modulo_interfaces)

find_package(rosidl_default_generators REQUIRED)

file(GLOB MSGS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} msg/*.msg)
file(GLOB SRVS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} srv/*.srv)
rosidl_generate_interfaces(${PROJECT_NAME} ${MSGS} ${SRVS})

ament_package()
1 change: 1 addition & 0 deletions source/modulo_interfaces/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Modulo Interfaces
2 changes: 2 additions & 0 deletions source/modulo_interfaces/msg/Predicate.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string predicate
bool value
6 changes: 6 additions & 0 deletions source/modulo_interfaces/msg/PredicateCollection.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
uint8 COMPONENT=1
uint8 CONTROLLER=2

uint8 type
string node
modulo_interfaces/Predicate[] predicates
22 changes: 22 additions & 0 deletions source/modulo_interfaces/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>modulo_interfaces</name>
<version>0.1.0</version>
<description>Interface package for modulo communication through the ROS framework</description>
<maintainer email="[email protected]">Enrico Eberhard</maintainer>
<maintainer email="[email protected]">Dominic Reber</maintainer>
<license>GPLv3</license>

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>rcl_interfaces</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>
3 changes: 3 additions & 0 deletions source/modulo_interfaces/srv/EmptyTrigger.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bool success
string message
4 changes: 4 additions & 0 deletions source/modulo_interfaces/srv/StringTrigger.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
string payload
---
bool success
string message

0 comments on commit 5ad83ad

Please sign in to comment.