Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-rbprm-corba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Humanoid Path Planner
hpp-rbprm-corba
Commits
f6e5659c
Commit
f6e5659c
authored
8 years ago
by
Pierre Fernbach
Browse files
Options
Downloads
Patches
Plain Diff
add debug messages in cwc_trajectory
parent
1855b20b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/hpp/corbaserver/rbprm/tools/cwc_trajectory_helper.py
+3
-1
3 additions, 1 deletion
src/hpp/corbaserver/rbprm/tools/cwc_trajectory_helper.py
src/hpp/corbaserver/rbprm/tools/path_to_trajectory.py
+4
-0
4 additions, 0 deletions
src/hpp/corbaserver/rbprm/tools/path_to_trajectory.py
with
7 additions
and
1 deletion
src/hpp/corbaserver/rbprm/tools/cwc_trajectory_helper.py
+
3
−
1
View file @
f6e5659c
...
...
@@ -185,13 +185,15 @@ trackedEffectors = [],use_velocity=False,pathId = 0):
res
=
res
+
[
pid
]
global
trajec
global
trajec_mil
frame_rate
=
1.
/
24.
frame_rate
=
0.01
frame_rate_andrea
=
1.
/
100.
# frame_rate_andrea = 1./1000.
#~ if(len(trajec) > 0):
#~ frame_rate = 1./25.
#~ frame_rate_andrea = 1./1001.
print
"
first traj :
"
new_traj
=
gen_trajectory_to_play
(
fullBody
,
pp
,
trajectory
,
time_per_path
,
frame_rate
)
print
"
traj Andrea :
"
new_traj_andrea
=
gen_trajectory_to_play
(
fullBody
,
pp
,
trajectory
,
time_per_path
,
frame_rate_andrea
)
#~ new_contacts = gencontactsPerFrame(fullBody, i, limbsCOMConstraints, pp, trajectory, times, frame_rate_andrea)
Ps
,
Ns
,
freeEffectorsPerPhase
=
genPandNperFrame
(
fullBody
,
i
,
limbsCOMConstraints
,
pp
,
trajectory
,
time_per_path
,
frame_rate_andrea
)
...
...
This diff is collapsed.
Click to expand it.
src/hpp/corbaserver/rbprm/tools/path_to_trajectory.py
+
4
−
0
View file @
f6e5659c
...
...
@@ -31,6 +31,7 @@ def __find_q_t(robot, path_player, path_id, t):
if
(
a
>=
b
):
print
"
ERROR, a > b, t does not exist
"
if
abs
(
current_t
-
t
)
<
__EPS
:
print
"
last config q =
"
,
q
[
-
1
]
return
q
[:
-
1
]
elif
(
current_t
-
t
)
<
__EPS
:
a
=
u
...
...
@@ -49,6 +50,7 @@ def linear_interpolate_path(robot, path_player, path_id, total_time, dt_framerat
def
follow_trajectory_path
(
robot
,
path_player
,
path_id
,
total_time
,
dt_framerate
=
__24fps
):
pp
=
path_player
print
"
total_times in follow path :
"
,
total_time
length
=
pp
.
client
.
problem
.
pathLength
(
path_id
)
num_frames_required
=
total_time
/
dt_framerate
dt
=
float
(
length
)
/
num_frames_required
...
...
@@ -58,10 +60,12 @@ def follow_trajectory_path(robot, path_player, path_id, total_time, dt_framerate
return
[
__find_q_t
(
robot
,
path_player
,
path_id
,
t
)
for
t
in
dt_finals
]
def
gen_trajectory_to_play
(
robot
,
path_player
,
path_ids
,
total_time_per_paths
,
dt_framerate
=
__24fps
):
print
"
gen_trajectory : dt =
"
,
dt_framerate
config_size
=
len
(
robot
.
getCurrentConfig
())
res
=
[]
pp
=
path_player
activeid
=
0
print
"
path_ids =
"
,
path_ids
for
i
,
path_id
in
enumerate
(
path_ids
):
config_size_path
=
len
(
path_player
.
client
.
problem
.
configAtParam
(
path_id
,
0
))
if
(
config_size_path
>
config_size
):
...
...
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