-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage_consumer.orogen
More file actions
27 lines (22 loc) · 1014 Bytes
/
message_consumer.orogen
File metadata and controls
27 lines (22 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name "message_consumer"
using_library "message_driver"
import_types_from "message_driver/Message.hpp"
# If the component/deployments use data types that are defined in other oroGen
# projects, these projects should be imported there as well.
# import_types_from "base"
# Declare a new task context (i.e., a component)
#
# The corresponding C++ class can be edited in tasks/Task.hpp and
# tasks/Task.cpp, and will be put in the basics_tutorial/orogen/message_consumer namespace.
task_context "Task" do
# An input port, i.e. an object from which the component gets data from
# other components' outputs
#
# Data can be retrieved using _input.read(value), which returns true if data
# was available, and false otherwise. _input.connected() returns if this
# input is connected to an output or not.
input_port "messages", "message_driver/Message"
# If you want that component's updateHook() to be executed when the "input"
# port gets data, uncomment this
port_driven "messages"
end