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

[script] moveEffector correctly write configs in infos.log file

parent 14071915
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ statusFilename = "infos.log" ...@@ -12,7 +12,7 @@ statusFilename = "infos.log"
fullBody = Robot () fullBody = Robot ()
# Set the bounds for the root # Set the bounds for the root
fullBody.setJointBounds ("root_joint", [-0.3,0.3, -0.3, 0.3, 0.9, 1.05]) fullBody.setJointBounds ("root_joint", [-0.3,0.3, -0.3, 0.3, 1.01, 1.03])
## reduce bounds on joints along x, to put conservative condition on the contact generation for sideway steps ## reduce bounds on joints along x, to put conservative condition on the contact generation for sideway steps
joint6L_bounds_prev=fullBody.getJointBounds('leg_left_6_joint') joint6L_bounds_prev=fullBody.getJointBounds('leg_left_6_joint')
joint2L_bounds_prev=fullBody.getJointBounds('leg_left_2_joint') joint2L_bounds_prev=fullBody.getJointBounds('leg_left_2_joint')
...@@ -108,7 +108,9 @@ else: ...@@ -108,7 +108,9 @@ else:
print "Contact generation failed." print "Contact generation failed."
f = open(statusFilename,"a") f = open(statusFilename,"w")
f.write("q_init= "+str(s0.q())+"\n")
f.write("q_goal= "+str(s1.q())+"\n")
f.write("cg_success: "+str(cg_success)+"\n") f.write("cg_success: "+str(cg_success)+"\n")
f.write("cg_reach_goal: "+str(cg_reach_goal)+"\n") f.write("cg_reach_goal: "+str(cg_reach_goal)+"\n")
f.close() f.close()
......
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