Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-dyninv
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Stack Of Tasks
sot-dyninv
Commits
c730b610
Commit
c730b610
authored
13 years ago
by
Nicolas Mansard
Browse files
Options
Downloads
Patches
Plain Diff
Rename.
parent
415080e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/dyndebug.py
+1
-1
1 addition, 1 deletion
python/dyndebug.py
python/meta_task_dyn_6d.py
+20
-0
20 additions, 0 deletions
python/meta_task_dyn_6d.py
with
21 additions
and
1 deletion
python/dyndebug.py
+
1
−
1
View file @
c730b610
...
...
@@ -6,7 +6,7 @@ from dynamic_graph.sot.dyninv import *
import
dynamic_graph.script_shortcuts
from
dynamic_graph.script_shortcuts
import
optionalparentheses
from
dynamic_graph.matlab
import
matlab
from
M
eta
T
ask6d
import
MetaTaskDyn6d
from
m
eta
_t
ask
_dyn_
6d
import
MetaTaskDyn6d
from
robotSpecific
import
pkgDataRootDir
,
modelName
,
robotDimension
,
initialConfig
,
gearRatio
,
inertiaRotor
robotName
=
'
hrp10small
'
...
...
This diff is collapsed.
Click to expand it.
python/meta_task_dyn_6d.py
0 → 100644
+
20
−
0
View file @
c730b610
from
dynamic_graph
import
plug
from
dynamic_graph.sot.core
import
GainAdaptive
from
dynamic_graph.sot.dyninv
import
TaskDynPD
from
dynamic_graph.sot.core.meta_task_6d
import
MetaTask6d
class
MetaTaskDyn6d
(
MetaTask6d
):
def
createTask
(
self
):
self
.
task
=
TaskDynPD
(
'
task
'
+
self
.
name
)
self
.
task
.
dt
.
value
=
1e-3
def
createGain
(
self
):
self
.
gain
=
GainAdaptive
(
'
gain
'
+
self
.
name
)
self
.
gain
.
set
(
1050
,
45
,
125e3
)
def
plugEverything
(
self
):
self
.
feature
.
sdes
.
value
=
self
.
featureDes
.
name
plug
(
self
.
dyn
.
signal
(
self
.
opPoint
),
self
.
feature
.
signal
(
'
position
'
))
plug
(
self
.
dyn
.
signal
(
'
J
'
+
self
.
opPoint
),
self
.
feature
.
signal
(
'
Jq
'
))
self
.
task
.
add
(
self
.
feature
.
name
)
plug
(
self
.
dyn
.
velocity
,
self
.
task
.
qdot
)
plug
(
self
.
task
.
error
,
self
.
gain
.
error
)
plug
(
self
.
gain
.
gain
,
self
.
task
.
controlGain
)
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