We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94d7607 commit 073339fCopy full SHA for 073339f
scripts/simpleRockTutorialTest.rb
@@ -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