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
e6b83dd2
Commit
e6b83dd2
authored
2 years ago
by
Ale
Browse files
Options
Downloads
Patches
Plain Diff
added riccatio gains
parent
0c228288
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#20918
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
+1
-1
1 addition, 1 deletion
config/walk_parameters.yaml
python/quadruped_reactive_walking/Controller.py
+11
-11
11 additions, 11 deletions
python/quadruped_reactive_walking/Controller.py
with
12 additions
and
12 deletions
config/walk_parameters.yaml
+
1
−
1
View file @
e6b83dd2
...
...
@@ -13,7 +13,7 @@ robot:
predefined_vel
:
true
# If we are using a predefined reference velocity (True) or a joystick (False)
N_SIMULATION
:
10000
# Number of simulated wbc time steps
enable_corba_viewer
:
false
# Enable/disable Corba Viewer
enable_multiprocessing
:
fals
e
# Enable/disable running the MPC in another process in parallel of the main loop
enable_multiprocessing
:
tru
e
# Enable/disable running the MPC in another process in parallel of the main loop
perfect_estimator
:
true
# Enable/disable perfect estimator by using data directly from PyBullet
# General control parameters
...
...
This diff is collapsed.
Click to expand it.
python/quadruped_reactive_walking/Controller.py
+
11
−
11
View file @
e6b83dd2
...
...
@@ -414,17 +414,17 @@ class Controller:
"""
Compute the feedforward torque using ricatti gains
"""
#
x_diff = np.concatenate(
#
[
#
pin.difference(
#
self.pd.model,
#
m["x_m"][: self.pd.nq],
#
self.mpc_result.xs[0][: self.pd.nq],
#
),
#
m["x_m"][self.pd.nq :] - self.mpc_result.xs[0][self.pd.nq :],
#
]
#
)
x_diff
=
self
.
mpc_result
.
xs
[
0
]
-
m
[
"
x_m
"
]
x_diff
=
np
.
concatenate
(
[
pin
.
difference
(
self
.
pd
.
model
,
m
[
"
x_m
"
][:
self
.
pd
.
nq
],
self
.
mpc_result
.
xs
[
0
][:
self
.
pd
.
nq
],
),
m
[
"
x_m
"
][
self
.
pd
.
nq
:]
-
self
.
mpc_result
.
xs
[
0
][
self
.
pd
.
nq
:],
]
)
#
x_diff = self.mpc_result.xs[0] - m["x_m"]
tau
=
self
.
mpc_result
.
us
[
0
]
+
np
.
dot
(
self
.
mpc_result
.
K
[
0
],
x_diff
)
# tau = self.mpc_result.us[0]
return
tau
...
...
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