Skip to content

Commit 970143e

Browse files
committed
properly fill the source and target frame names in the generated RBS
1 parent 979f0d3 commit 970143e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

rock_tutorial.orogen

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ task_context "RockTutorialControl" do
1414
# http://rock-robotics.org/documentation/base_types.html
1515
output_port "pose_samples", "base::samples::RigidBodyState"
1616

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+
1722
# When deploying this task, use a 10ms period by default
1823
periodic(0.01)
1924
end

tasks/RockTutorialControl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ void RockTutorialControl::updateHook()
5959
rbs.time = base::Time::now();
6060
rbs.invalidateCovariances();
6161
rbs.invalidateValues(false,false);
62+
rbs.sourceFrame = _body_frame.get();
63+
rbs.targetFrame = _world_frame.get();
6264

6365
_pose_samples.write(rbs);
6466
}

0 commit comments

Comments
 (0)