Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
multicontact-locomotion-planning
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
loco-3d
multicontact-locomotion-planning
Commits
394ad32f
Commit
394ad32f
authored
6 years ago
by
Pierre Fernbach
Browse files
Options
Downloads
Patches
Plain Diff
[export] openHRP add debug output
parent
839f3976
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/hpp_wholebody_motion/export/openHRP.py
+6
-1
6 additions, 1 deletion
scripts/hpp_wholebody_motion/export/openHRP.py
with
6 additions
and
1 deletion
scripts/hpp_wholebody_motion/export/openHRP.py
+
6
−
1
View file @
394ad32f
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment