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
9e0a69b5
Commit
9e0a69b5
authored
2 years ago
by
Pierre-Alexandre Leziart
Browse files
Options
Downloads
Patches
Plain Diff
Comment Target
parent
e8fc1f42
No related branches found
No related tags found
1 merge request
!32
Draft: Reverse-merge casadi-walking into new WBC devel branch
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/quadruped_reactive_walking/WB_MPC/Target.py
+13
-1
13 additions, 1 deletion
python/quadruped_reactive_walking/WB_MPC/Target.py
with
13 additions
and
1 deletion
python/quadruped_reactive_walking/WB_MPC/Target.py
+
13
−
1
View file @
9e0a69b5
...
@@ -5,10 +5,22 @@ import pinocchio as pin
...
@@ -5,10 +5,22 @@ import pinocchio as pin
class
Target
:
class
Target
:
"""
Targets of the whole-body tasks
Args:
params (Params): object storing parameters about the control problem as a whole
Attributes:
params (Params): object storing parameters about the control problem as a whole
dt_wbc (float): time step of the OCP
linear_velocity (array): velocity target for the base linear velocity tracking task
angular_velocity (array): velocity target for the base angular velocity tracking task
velocity_task (list of arrays): targets for linear and angular velocities
"""
def
__init__
(
self
,
params
):
def
__init__
(
self
,
params
):
self
.
params
=
params
self
.
params
=
params
self
.
dt_wbc
=
params
.
dt_wbc
self
.
dt_wbc
=
params
.
dt_wbc
self
.
k_per_step
=
160
self
.
linear_velocity
=
np
.
array
([
10
,
0
,
0
])
self
.
linear_velocity
=
np
.
array
([
10
,
0
,
0
])
self
.
angular_velocity
=
np
.
array
([
0
,
0
,
0
])
self
.
angular_velocity
=
np
.
array
([
0
,
0
,
0
])
...
...
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