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
48617a04
Commit
48617a04
authored
2 years ago
by
odri
Browse files
Options
Downloads
Patches
Plain Diff
Circular motion
OL Interpolation No multiprocessing Push
parent
2a974232
No related branches found
No related tags found
No related merge requests found
Pipeline
#21094
failed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/walk_parameters.yaml
+2
-2
2 additions, 2 deletions
config/walk_parameters.yaml
python/quadruped_reactive_walking/Controller.py
+26
-26
26 additions, 26 deletions
python/quadruped_reactive_walking/Controller.py
with
28 additions
and
28 deletions
config/walk_parameters.yaml
+
2
−
2
View file @
48617a04
...
...
@@ -6,7 +6,7 @@ robot:
LOGGING
:
true
# Enable/disable logging during the experiment
PLOTTING
:
true
# Enable/disable automatic plotting at the end of the experiment
DEMONSTRATION
:
false
# Enable/disable demonstration functionalities
SIMULATION
:
tru
e
# Enable/disable PyBullet simulation or running on real robot
SIMULATION
:
fals
e
# Enable/disable PyBullet simulation or running on real robot
enable_pyb_GUI
:
true
# Enable/disable PyBullet GUI
envID
:
0
# Identifier of the environment to choose in which one the simulation will happen
use_flat_plane
:
true
# If True the ground is flat, otherwise it has bumps
...
...
@@ -24,7 +24,7 @@ robot:
dt_wbc
:
0.001
# Time step of the whole body control
dt_mpc
:
0.015
# Time step of the model predictive control
type_MPC
:
3
# Which MPC solver you want to use: 0 for OSQP MPC, 1, 2, 3 for Crocoddyl MPCs
save_guess
:
tru
e
# true to interpolate the impedance quantities between nodes of the MPC
save_guess
:
fals
e
# true to interpolate the impedance quantities between nodes of the MPC
movement
:
"
circle"
# name of the movement to perform
interpolate_mpc
:
true
# true to interpolate the impedance quantities between nodes of the MPC
interpolation_type
:
3
# 0,1,2,3 decide which kind of interpolation is used
...
...
This diff is collapsed.
Click to expand it.
python/quadruped_reactive_walking/Controller.py
+
26
−
26
View file @
48617a04
...
...
@@ -218,32 +218,32 @@ class Controller:
self
.
mpc_solved
=
False
try
:
self
.
mpc
.
solve
(
self
.
k
,
m
[
"
x_m
"
],
self
.
target_footstep
.
copy
(),
self
.
gait
,
self
.
xs_init
,
self
.
us_init
,
)
#
if self.initialized:
#
self.mpc.solve(
#
self.k,
#
self.mpc_result.xs[1],
#
self.target_footstep.copy(),
#
self.gait,
#
self.xs_init,
#
self.us_init,
#
)
#
else:
#
self.mpc.solve(
#
self.k,
#
m["x_m"],
#
self.target_footstep.copy(),
#
self.gait,
#
self.xs_init,
#
self.us_init,
#
)
#
self.mpc.solve(
#
self.k,
#
m["x_m"],
#
self.target_footstep.copy(),
#
self.gait,
#
self.xs_init,
#
self.us_init,
#
)
if
self
.
initialized
:
self
.
mpc
.
solve
(
self
.
k
,
self
.
mpc_result
.
xs
[
1
],
self
.
target_footstep
.
copy
(),
self
.
gait
,
self
.
xs_init
,
self
.
us_init
,
)
else
:
self
.
mpc
.
solve
(
self
.
k
,
m
[
"
x_m
"
],
self
.
target_footstep
.
copy
(),
self
.
gait
,
self
.
xs_init
,
self
.
us_init
,
)
except
ValueError
:
self
.
error
=
True
print
(
"
MPC Problem
"
)
...
...
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