Skip to content

Commit 073339f

Browse files
committed
added a simple test script
1 parent 94d7607 commit 073339f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

scripts/simpleRockTutorialTest.rb

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require 'orocos'
2+
require 'readline'
3+
include Orocos
4+
5+
Orocos.initialize
6+
7+
Orocos.run 'rock_tutorial' do
8+
9+
rockControl = TaskContext.get 'rock_tutorial_control'
10+
rockVisualization = TaskContext.get 'rock_tutorial_visualization'
11+
12+
rockControl.pose.connect_to rockVisualization.pose
13+
14+
sampleWriter = rockControl.motion_command.writer
15+
16+
rockControl.start
17+
rockVisualization.start
18+
19+
sample = sampleWriter.new_sample
20+
sample.translation = 1
21+
sample.rotation = 0.5
22+
sampleWriter.write(sample)
23+
24+
Readline::readline('Press enter to exit')
25+
26+
end

0 commit comments

Comments
 (0)