コード例 #1
0
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, self.rootJointType, load)
     self.tf_root = "base_footprint"
     self.halfSitting = self.getCurrentConfig ()
     for j, v in self.halfSittingDict.iteritems ():
         index = self.rankInConfiguration [j]
         self.halfSitting [index] = v
コード例 #2
0
ファイル: ur5_robot.py プロジェクト: pFernbach/hpp_perso
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, "planar", load)
     self.tf_root = 'world' # le nom du tf_root est libre
コード例 #3
0
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, "freeflyer", load)
     self.tf_root = "base_link"
     self.leftAnkle = "l_sole_joint"
     self.rightAnkle = "r_sole_joint"
コード例 #4
0
ファイル: robot.py プロジェクト: mylene-campana/hpp_ros
 def __init__ (self, robotName):
     Parent.__init__ (self, robotName, "planar")
     self.tf_root = "base_link"
コード例 #5
0
ファイル: robot.py プロジェクト: airobert/hpp_tutorial
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, self.rootJointType, load)
     self.tf_root = "base_footprint"
コード例 #6
0
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, "planar", load)
     self.tf_root = "base_link"
コード例 #7
0
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, "freeflyer", load)
     self.tf_root = "emu_base"
コード例 #8
0
ファイル: hrp2.py プロジェクト: orthez/hpp-motion-prior
 def __init__ (self, load = True):
         Parent.__init__ (self, 'hrp2', self.rootJointType, load)
コード例 #9
0
 def __init__(self, robotName, load=True):
     Parent.__init__(self, robotName, self.rootJointType, load)
     self.tf_root = "base_footprint"
     self.client.basic = Client()
     self.load = load
コード例 #10
0
 def __init__(self, robotName, load=True):
     Parent.__init__(self, robotName, self.rootJointType, load)
コード例 #11
0
 def __init__(self, robotName, load=True):
     Parent.__init__(self, robotName, self.rootJointType, load)
     self.tf_root = "base_link"
コード例 #12
0
ファイル: robot.py プロジェクト: RenaudViry/hpp_human
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, "freeflyer", load)
     self.tf_root = "base_link"
     self.leftAnkle = "lFoot"
     self.rightAnkle = "rFoot"
コード例 #13
0
 def __init__ (self, robotName, load = True):
     Robot.__init__ (self, robotName, self.rootJointType, load)
コード例 #14
0
 def resetRobot(self):
     try:
         self.robot = Robot(client=self.client)
     except:
         self.robot = None
コード例 #15
0
from hpp.corbaserver.robot import Robot

Robot.packageName = 'hpp_tutorial'
Robot.urdfSuffix = ''
Robot.srdfSuffix = ''
Robot.urdfName = 'pr2'

robot = Robot('pr2', "planar")

robot.tf_root = 'base_footprint'

robot.setJointBounds("base_joint_xy", [-4, -3, -5, -3])

from hpp_ros import ScenePublisher
r = ScenePublisher(robot)

from hpp.corbaserver import ProblemSolver
ps = ProblemSolver(robot)

q_init = robot.getCurrentConfig()
q_goal = q_init[::]
q_init[0:2] = [-3.2, -4]
rank = robot.rankInConfiguration['torso_lift_joint']
q_init[rank] = 0.2
r(q_init)

q_goal[0:2] = [-3.2, -4]
rank = robot.rankInConfiguration['l_shoulder_lift_joint']
q_goal[rank] = 0.5
rank = robot.rankInConfiguration['l_elbow_flex_joint']
q_goal[rank] = -0.5
コード例 #16
0
 def __init__ (self, robotName, load = True, **kwargs):
     Parent.__init__ (self, robotName, self.rootJointType, load, **kwargs)
コード例 #17
0
 def __init__(self, robotName, load=True):
     Parent.__init__(self, robotName, "freeflyer", load)
     self.tf_root = 'base_link'  # le nom du tf_root est libre
コード例 #18
0
 def __init__(self, robotName, load=True):
     Parent.__init__(self, robotName, "planar", load)
     self.tf_root = 'world'  # le nom du tf_root est libre
コード例 #19
0
	def __init__ (self, robotName, load = True):
		Parent.__init__ (self, robotName, self.rootJointType, load)
		self.tf_root = "base_footprint"
		self.client.basic = Client ()
		self.load = load
コード例 #20
0
 def __init__ (self, robotName):
     Parent.__init__ (self, robotName, "anchor", False)
     self.tf_root = 'base_link' # le nom du tf_root est libre
     self.rod = flectoClient().rod
コード例 #21
0
ファイル: robot.py プロジェクト: mylene-campana/hpp_ros
 def __init__ (self, robotName):
     Parent.__init__ (self, robotName, "freeflyer")
     self.tf_root = "Phantom"
コード例 #22
0
ファイル: robot.py プロジェクト: mylene-campana/hpp_ros
 def __init__ (self, robotName):
     Parent.__init__ (self, robotName, "freeflyer")
     self.tf_root = "base_link" 
コード例 #23
0
ファイル: robot_r2d2.py プロジェクト: pFernbach/hpp_perso
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, "freeflyer", load)
     self.tf_root = 'base_link' # le nom du tf_root est libre
コード例 #24
0
 def __init__ (self, load = True):
         Parent.__init__ (self, 'hrp2-irreducible', self.rootJointType, load)
コード例 #25
0
 def __init__ (self):
     Parent.__init__ (self,  self.urdfName, "freeflyer")
コード例 #26
0
 def __init__ (self, robotName, load = True, rootJointType = "anchor"):
     Parent.__init__ (self, robotName, rootJointType, load)
     self.rightWrist = "wrist_3_joint"
     self.leftWrist  = "wrist_3_joint"
     self.endEffector = "ee_fixed_joint"
コード例 #27
0
 def __init__ (self, robotName, load = True):
     Parent.__init__ (self, robotName, "freeflyer", load)
     self.rightWrist = ""
     self.leftWrist  = ""
コード例 #28
0
 def __init__(self, robotName, load=True):
     Parent.__init__(self, robotName, "freeflyer", load)
     self.tf_root = "base_link"