Skip to content

Commit 49b3a69

Browse files
author
Alexander Duda
committed
add gitignore and vizkit_plugin.rb
1 parent b6e068a commit 49b3a69

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/*

scripts/vizkit.plugin.tutorial.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
require 'vizkit'
22
Orocos.initialize
33

4-
#register plugin
5-
Vizkit.default_loader.register_3d_plugin 'SphereViz',
6-
'vizkit3d_plugin_tutorial', 'SphereVisualization'
7-
84
#create plugin
95
plugin = Vizkit.default_loader.SphereViz
106

@@ -30,4 +26,4 @@
3026

3127
# start the timer with a timeout of 10 ms
3228
timer.start(10)
33-
Vizkit.exec
29+
Vizkit.exec

viz/vizkit_plugin.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Vizkit::UiLoader.register_3d_plugin('SphereViz', 'vizkit3d_plugin_tutorial', 'SphereVisualization')
2+
Vizkit::UiLoader.register_3d_plugin_for('SphereViz', "/base/Vector3d", :updateData )

0 commit comments

Comments
 (0)