File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ task_context "RockTutorialControl" do
14
14
# http://rock-robotics.org/documentation/base_types.html
15
15
output_port "pose_samples", "base::samples::RigidBodyState"
16
16
17
+ # The name of the world frame
18
+ property "world_frame", "/std/string"
19
+ # The name of the rock's frame
20
+ property 'body_frame', '/std/string'
21
+
17
22
# When deploying this task, use a 10ms period by default
18
23
periodic(0.01)
19
24
end
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ void RockTutorialControl::updateHook()
59
59
rbs.time = base::Time::now ();
60
60
rbs.invalidateCovariances ();
61
61
rbs.invalidateValues (false ,false );
62
+ rbs.sourceFrame = _body_frame.get ();
63
+ rbs.targetFrame = _world_frame.get ();
62
64
63
65
_pose_samples.write (rbs);
64
66
}
You can’t perform that action at this time.
0 commit comments