vcTest.py
Go to the documentation of this file.
1 #
2 # test script for VirtualCamera component
3 #
4 # start VirtualCameraComp before running this script
5 #
6 import rtm
7 import commands
8 
9 openhrp_dir = commands.getoutput("pkg-config --variable=prefix openhrp3.1")
10 project = "file://"+openhrp_dir+"/share/OpenHRP-3.1/sample/project/SampleRobot_inHouse.xml"
11 vc = rtm.findRTC("VirtualCamera0")
12 print "vc:",vc
13 vc.setProperty("project", project)
14 vc.setProperty("camera", "Robot:VISION_SENSOR1")
15 vc.start()
def findRTC(name, rnc=None)
get RT component
Definition: jython/rtm.py:341


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51