Skip to content

Commit

Permalink
add openrave-YarpPluginLoader.py, not working yet, for #47
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Dec 3, 2017
1 parent 7f7f245 commit ed19af1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions examples/openrave-YarpPluginLoader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python

import openravepy
from openravepy import *

try:
RaveInitialize()

if not RaveLoadPlugin('OpenraveYarpPluginLoader'):
raveLogError("Plugin not correctly loaded")

env=Environment()
env.SetViewer('qtcoin')
env.Load('/usr/local/share/teo-openrave-models/contexts/openrave/teo/teo.robot.xml')

OpenraveYarpControlboard = RaveCreateModule(env,'OpenraveYarpPluginLoader')
print OpenraveYarpControlboard.SendCommand('open')

while 1:
pass

finally:
RaveDestroy()

0 comments on commit ed19af1

Please sign in to comment.