vcTest.py
Go to the documentation of this file.
00001 #
00002 # test script for VirtualCamera component
00003 # 
00004 # start VirtualCameraComp before running this script
00005 #
00006 import rtm
00007 import commands
00008 
00009 openhrp_dir = commands.getoutput("pkg-config --variable=prefix openhrp3.1")
00010 project = "file://"+openhrp_dir+"/share/OpenHRP-3.1/sample/project/SampleRobot_inHouse.xml"
00011 vc = rtm.findRTC("VirtualCamera0")
00012 print "vc:",vc
00013 vc.setProperty("project", project)
00014 vc.setProperty("camera", "Robot:VISION_SENSOR1")
00015 vc.start()


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed Sep 6 2017 02:35:56