diff --git a/src/hpp/corbaserver/rbprm/anymal/__init__.py b/src/hpp/corbaserver/rbprm/anymal/__init__.py index 9c6c80ed4530b6d3242c9a0f78ec1038e5a3eb77..7c4e3a8effd69a7b664b6f861b7a917bd9e7f3f9 100644 --- a/src/hpp/corbaserver/rbprm/anymal/__init__.py +++ b/src/hpp/corbaserver/rbprm/anymal/__init__.py @@ -2,4 +2,4 @@ # Copyright (c) 2019 CNRS # Author : Pierre Fernbach -from robot import Robot +from .robot import Robot diff --git a/src/hpp/corbaserver/rbprm/anymal/robot.py b/src/hpp/corbaserver/rbprm/anymal/robot.py index 6bd2ea3b010c86f08d113a96896c33f0d567af9b..fec14ec1c17ee9ac0ac711ac4d282f4885a20a14 100644 --- a/src/hpp/corbaserver/rbprm/anymal/robot.py +++ b/src/hpp/corbaserver/rbprm/anymal/robot.py @@ -161,10 +161,10 @@ class Robot (Parent): raise Exception("heuristic should be either a string or a map limbId:string") #dict_heuristic = {self.rLegId:"static", self.lLegId:"static", self.rArmId:"fixedStep04", self.lArmId:"fixedStep04"} for id in self.limbs_names: - print "add limb : ",id + print("add limb : ",id) eff = self.dict_limb_joint[id] - print "effector name = ",eff - self.addLimb(id,self.dict_limb_rootJoint[id],eff,self.dict_offset[eff].translation.T.tolist()[0],self.dict_normal[eff],self.dict_size[eff][0]/2.,self.dict_size[eff][1]/2.,nbSamples,dict_heuristic[id],octreeSize,self.cType,disableEffectorCollision = disableEffectorCollision,kinematicConstraintsPath=self.kinematicConstraintsPath+self.dict_limb_rootJoint[id]+"_06_com_constraints.obj",limbOffset=self.dict_limb_offset[id],kinematicConstraintsMin=self.minDist) + print("effector name = ",eff) + self.addLimb(id,self.dict_limb_rootJoint[id],eff,self.dict_offset[eff].translation.tolist(),self.dict_normal[eff],self.dict_size[eff][0]/2.,self.dict_size[eff][1]/2.,nbSamples,dict_heuristic[id],octreeSize,self.cType,disableEffectorCollision = disableEffectorCollision,kinematicConstraintsPath=self.kinematicConstraintsPath+self.dict_limb_rootJoint[id]+"_06_com_constraints.obj",limbOffset=self.dict_limb_offset[id],kinematicConstraintsMin=self.minDist) if analysis : self.runLimbSampleAnalysis(id, analysis, True) diff --git a/src/hpp/corbaserver/rbprm/anymal_abstract/__init__.py b/src/hpp/corbaserver/rbprm/anymal_abstract/__init__.py index 9c6c80ed4530b6d3242c9a0f78ec1038e5a3eb77..7c4e3a8effd69a7b664b6f861b7a917bd9e7f3f9 100644 --- a/src/hpp/corbaserver/rbprm/anymal_abstract/__init__.py +++ b/src/hpp/corbaserver/rbprm/anymal_abstract/__init__.py @@ -2,4 +2,4 @@ # Copyright (c) 2019 CNRS # Author : Pierre Fernbach -from robot import Robot +from .robot import Robot diff --git a/src/hpp/corbaserver/rbprm/anymal_contact6D/__init__.py b/src/hpp/corbaserver/rbprm/anymal_contact6D/__init__.py index 9c6c80ed4530b6d3242c9a0f78ec1038e5a3eb77..7c4e3a8effd69a7b664b6f861b7a917bd9e7f3f9 100644 --- a/src/hpp/corbaserver/rbprm/anymal_contact6D/__init__.py +++ b/src/hpp/corbaserver/rbprm/anymal_contact6D/__init__.py @@ -2,4 +2,4 @@ # Copyright (c) 2019 CNRS # Author : Pierre Fernbach -from robot import Robot +from .robot import Robot diff --git a/src/hpp/corbaserver/rbprm/anymal_contact6D/robot.py b/src/hpp/corbaserver/rbprm/anymal_contact6D/robot.py index fc6b63976618ce319556657c5792b86e61f7bdaf..597690799f1a564852a6cca922a91547818130c4 100644 --- a/src/hpp/corbaserver/rbprm/anymal_contact6D/robot.py +++ b/src/hpp/corbaserver/rbprm/anymal_contact6D/robot.py @@ -116,10 +116,10 @@ class Robot (Parent): raise Exception("heuristic should be either a string or a map limbId:string") #dict_heuristic = {self.rLegId:"static", self.lLegId:"static", self.rArmId:"fixedStep04", self.lArmId:"fixedStep04"} for id in self.limbs_names: - print "add limb : ",id + print("add limb : ",id) eff = self.dict_limb_joint[id] - print "effector name = ",eff - self.addLimb(id,self.dict_limb_rootJoint[id],eff,self.dict_offset[eff].translation.T.tolist()[0],self.dict_normal[eff],self.dict_size[eff][0]/2.,self.dict_size[eff][1]/2.,nbSamples,dict_heuristic[id],octreeSize,self.cType,kinematicConstraintsPath=self.kinematicConstraintsPath+self.dict_limb_rootJoint[id]+"06_com_constraints.obj",limbOffset=self.dict_limb_offset[id],kinematicConstraintsMin=self.minDist) + print("effector name = ",eff) + self.addLimb(id,self.dict_limb_rootJoint[id],eff,self.dict_offset[eff].translation.tolist(),self.dict_normal[eff],self.dict_size[eff][0]/2.,self.dict_size[eff][1]/2.,nbSamples,dict_heuristic[id],octreeSize,self.cType,kinematicConstraintsPath=self.kinematicConstraintsPath+self.dict_limb_rootJoint[id]+"06_com_constraints.obj",limbOffset=self.dict_limb_offset[id],kinematicConstraintsMin=self.minDist) if analysis : self.runLimbSampleAnalysis(id, analysis, True)