Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
robotics-codes-from-scratch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
rli
robotics-codes-from-scratch
Commits
76619e19
Commit
76619e19
authored
5 months ago
by
Sylvain CALINON
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.idiap.ch:rli/robotics-codes-from-scratch
parents
5ff00eda
5ce3b21a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/iLQR_manipulator3D.py
+2
-3
2 additions, 3 deletions
python/iLQR_manipulator3D.py
with
2 additions
and
3 deletions
python/iLQR_manipulator3D.py
+
2
−
3
View file @
76619e19
...
@@ -13,8 +13,7 @@ License: GPL-3.0-only
...
@@ -13,8 +13,7 @@ License: GPL-3.0-only
import
numpy
as
np
import
numpy
as
np
import
numpy.matlib
import
numpy.matlib
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
import
matplotlib.patches
as
patches
import
math
# Helper functions
# Helper functions
# ===============================
# ===============================
...
@@ -144,7 +143,7 @@ param.nbPoints = 2 # Number of viapoints
...
@@ -144,7 +143,7 @@ param.nbPoints = 2 # Number of viapoints
param
.
nbVarX
=
7
# State space dimension (x1,x2,x3,...)
param
.
nbVarX
=
7
# State space dimension (x1,x2,x3,...)
param
.
nbVarU
=
param
.
nbVarX
# Control space dimension (dx1,dx2,dx3,...)
param
.
nbVarU
=
param
.
nbVarX
# Control space dimension (dx1,dx2,dx3,...)
param
.
nbVarF
=
7
# Task space dimension (f1,f2,f3 for position, f4,f5,f6,f7 for unit quaternion)
param
.
nbVarF
=
7
# Task space dimension (f1,f2,f3 for position, f4,f5,f6,f7 for unit quaternion)
param
.
q
=
[
1
,
1
,
1
,
0.1
,
0.1
,
0.
1
]
# Tracking weighting term for each parameter of F (3 first position, 3 last orientation)
param
.
q
=
[
1
,
1
,
1
,
1
,
1
,
1
]
# Tracking weighting term for each parameter of F (3 first position, 3 last orientation)
param
.
r
=
1e-6
# Control weighting term
param
.
r
=
1e-6
# Control weighting term
Rtmp
=
q2R
([
np
.
cos
(
np
.
pi
/
3
),
np
.
sin
(
np
.
pi
/
3
),
0.0
,
0.0
])
Rtmp
=
q2R
([
np
.
cos
(
np
.
pi
/
3
),
np
.
sin
(
np
.
pi
/
3
),
0.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