Skip to content
Snippets Groups Projects
Commit 9342f695 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[effector] fix debug output of limb-rrt

parent 2e7db332
No related branches found
No related tags found
No related merge requests found
...@@ -45,12 +45,14 @@ def generateLimbRRTPath(q_init,q_end,phase_previous,phase,phase_next,fullBody,ph ...@@ -45,12 +45,14 @@ def generateLimbRRTPath(q_init,q_end,phase_previous,phase,phase_next,fullBody,ph
print "New state added, q_init = ",q_init print "New state added, q_init = ",q_init
print "New state added, q_end = ",q_end print "New state added, q_end = ",q_end
contacts = fullBody.getAllLimbsInContact(s0) contacts = fullBody.getAllLimbsInContact(s0)
fullBody.setCurrentConfig(fullBody.getConfigAtState(s0))
print "contact at init state : ",contacts print "contact at init state : ",contacts
for contact in contacts : for contact in contacts :
effName = cfg.Robot.dict_limb_joint[contact] effName = cfg.Robot.dict_limb_joint[contact]
print "contact position for joint "+str(effName)+" = "+str(fullBody.getJointPosition(effName)[0:3]) print "contact position for joint "+str(effName)+" = "+str(fullBody.getJointPosition(effName)[0:3])
contacts = fullBody.getAllLimbsInContact(s1) contacts = fullBody.getAllLimbsInContact(s1)
print "contact at init state : ",contacts fullBody.setCurrentConfig(fullBody.getConfigAtState(s1))
print "contact at end state : ",contacts
for contact in contacts : for contact in contacts :
effName = cfg.Robot.dict_limb_joint[contact] effName = cfg.Robot.dict_limb_joint[contact]
print "contact position for joint "+str(effName)+" = "+str(fullBody.getJointPosition(effName)[0:3]) print "contact position for joint "+str(effName)+" = "+str(fullBody.getJointPosition(effName)[0:3])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment