-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut_sensor.orogen
More file actions
30 lines (24 loc) · 897 Bytes
/
tut_sensor.orogen
File metadata and controls
30 lines (24 loc) · 897 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
28
29
30
name "tut_sensor"
import_types_from "base"
using_library 'rock_tutorial'
import_types_from 'rock_tutorial/BearingDistanceSensor.hpp'
task_context "Task" do
input_port "target_frame", "base/samples/RigidBodyState"
input_port "local_frame", "base/samples/RigidBodyState"
output_port "target_sensor_sample", "rock_tutorial/BearingDistanceSensor"
periodic 0.05
end
task_context 'TransformerTask' do
transformer do
# We need a reference frame (the follower's body) and the target frame
# (the leader body frame)
transform 'target', 'ref'
# Because the rocks reference frames are attached to the body (they
# 'roll', we also need the transformation from the world to the reference
# frame)
transform 'ref', 'world'
max_latency 1
end
output_port "target_sensor_sample", "rock_tutorial/BearingDistanceSensor"
periodic 0.05
end