コード例 #1
0
 def testImportInvalidRobot(self):
     with self.assertRaises(ImportRobotException):
         GraspitCommander.importRobot("")
コード例 #2
0
 def testSaveWorld(self):
     GraspitCommander.importRobot("Barrett")
     GraspitCommander.importGraspableBody("ashtray")
     GraspitCommander.saveWorld("test_world")
コード例 #3
0
 def testImportRobot(self):
     GraspitCommander.importRobot("Barrett")
     assert len(GraspitCommander.getRobots().ids) == 1