Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
quadruped-reactive-walking
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
Show more breadcrumbs
Gepetto
quadruped-reactive-walking
Commits
f46bc46d
Commit
f46bc46d
authored
3 years ago
by
Pierre-Alexandre Leziart
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel_croco_2' into 'devel-PA'
Merge devel croco 27/08/2021 See merge request
!9
parents
04a098dc
73071ad2
No related branches found
No related tags found
1 merge request
!9
Merge devel croco 27/08/2021
Pipeline
#15823
failed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/crocoddyl_class/MPC_crocoddyl_planner.py
+6
-4
6 additions, 4 deletions
scripts/crocoddyl_class/MPC_crocoddyl_planner.py
with
6 additions
and
4 deletions
scripts/crocoddyl_class/MPC_crocoddyl_planner.py
+
6
−
4
View file @
f46bc46d
...
...
@@ -54,16 +54,17 @@ class MPC_crocoddyl_planner():
self
.
frictionWeights
=
1.
# Weight Vector : Friction cone cost
self
.
heuristicWeights
=
0.
*
np
.
array
(
4
*
[
0.03
,
0.04
])
# Weights on the heuristic term
self
.
stepWeights
=
0.
*
np
.
full
(
8
,
0.005
)
# Weight on the step command (distance between steps)
self
.
stopWeights
=
0.
*
np
.
ones
(
8
)
# Weights to stop the optimisation at the end of the flying phase
self
.
shoulderContactWeight
=
1.
*
np
.
full
(
4
,
1.
)
# Weight for shoulder-to-contact penalty
self
.
stopWeights
=
0.
5
*
np
.
ones
(
8
)
# Weights to stop the optimisation at the end of the flying phase
self
.
shoulderContactWeight
=
0.5
*
np
.
full
(
4
,
1.
)
# Weight for shoulder-to-contact penalty
self
.
shoulder_hlim
=
0.235
self
.
shoulderReferencePosition
=
Tru
e
# Use the reference trajectory of the Com (True) or not (False) for shoulder/contact cost
self
.
shoulderReferencePosition
=
Fals
e
# Use the reference trajectory of the Com (True) or not (False) for shoulder/contact cost
# TODO : create a proper warm-start with the previous optimisation
self
.
warm_start
=
True
# Minimum normal force(N) and reference force vector bool
self
.
min_fz
=
1.
self
.
min_fz
=
0.
self
.
max_fz
=
25.
self
.
relative_forces
=
True
# Offset CoM
...
...
@@ -338,6 +339,7 @@ class MPC_crocoddyl_planner():
model
.
gI
=
self
.
gI
model
.
mu
=
self
.
mu
model
.
min_fz
=
self
.
min_fz
model
.
max_fz
=
self
.
max_fz
model
.
relative_forces
=
True
model
.
shoulderContactWeight
=
self
.
shoulderContactWeight
model
.
shoulder_hlim
=
self
.
shoulder_hlim
...
...
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