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

[export] openHRP add debug output

parent 839f3976
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,7 @@ def generateOpenHRPMotion(robot, data, path, project_name): ...@@ -189,7 +189,7 @@ def generateOpenHRPMotion(robot, data, path, project_name):
file_zmp.write(line) file_zmp.write(line)
file_zmp.close() file_zmp.close()
print "write file : ",filename_zmp
## Posture trajectory ## ## Posture trajectory ##
filename_pos = filename_prefix + '.pos' filename_pos = filename_prefix + '.pos'
file_pos = open(filename_pos, "w") file_pos = open(filename_pos, "w")
...@@ -233,6 +233,7 @@ def generateOpenHRPMotion(robot, data, path, project_name): ...@@ -233,6 +233,7 @@ def generateOpenHRPMotion(robot, data, path, project_name):
qout_l.append(np.matrix(np.concatenate(q_openhrp))) qout_l.append(np.matrix(np.concatenate(q_openhrp)))
file_pos.close() file_pos.close()
print "write file : ",filename_pos
## Waist orientation ## Waist orientation
filename_hip = filename_prefix + '.hip' filename_hip = filename_prefix + '.hip'
...@@ -246,6 +247,7 @@ def generateOpenHRPMotion(robot, data, path, project_name): ...@@ -246,6 +247,7 @@ def generateOpenHRPMotion(robot, data, path, project_name):
line += eol line += eol
file_hip.write(line) file_hip.write(line)
file_hip.close() file_hip.close()
print "write file : ",filename_hip
return qout_l return qout_l
...@@ -278,6 +280,7 @@ def writeKinematicsData(robot, data, path, project_name): ...@@ -278,6 +280,7 @@ def writeKinematicsData(robot, data, path, project_name):
file_config.write(line) file_config.write(line)
file_config.close() file_config.close()
print "write file : ",filename_config
## Vel trajectory ## ## Vel trajectory ##
filename_vel = filename_prefix + '_vel.csv' filename_vel = filename_prefix + '_vel.csv'
...@@ -290,6 +293,7 @@ def writeKinematicsData(robot, data, path, project_name): ...@@ -290,6 +293,7 @@ def writeKinematicsData(robot, data, path, project_name):
file_vel.write(line) file_vel.write(line)
file_vel.close() file_vel.close()
print "write file : ",filename_vel
## Acc trajectory ## ## Acc trajectory ##
filename_acc = filename_prefix + '_acc.csv' filename_acc = filename_prefix + '_acc.csv'
...@@ -302,6 +306,7 @@ def writeKinematicsData(robot, data, path, project_name): ...@@ -302,6 +306,7 @@ def writeKinematicsData(robot, data, path, project_name):
file_acc.write(line) file_acc.write(line)
file_acc.close() file_acc.close()
print "write file : ",filename_acc
def export(q_t,v_t,a_t): def export(q_t,v_t,a_t):
......
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