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
cf838df4
Commit
cf838df4
authored
13 years ago
by
Nicolas Mansard
Committed by
nmansard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added a op point modifier. Should be ported to sot-core.
parent
7232e565
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/meta_task_dyn_6d.py
+21
-1
21 additions, 1 deletion
python/meta_task_dyn_6d.py
with
21 additions
and
1 deletion
python/meta_task_dyn_6d.py
+
21
−
1
View file @
cf838df4
from
dynamic_graph
import
plug
from
dynamic_graph.sot.core
import
GainAdaptive
from
dynamic_graph.sot.core
import
GainAdaptive
,
OpPointModifier
from
dynamic_graph.sot.dyninv
import
TaskDynPD
from
dynamic_graph.sot.core.meta_task_6d
import
MetaTask6d
...
...
@@ -18,3 +18,23 @@ class MetaTaskDyn6d(MetaTask6d):
plug
(
self
.
dyn
.
velocity
,
self
.
task
.
qdot
)
plug
(
self
.
task
.
error
,
self
.
gain
.
error
)
plug
(
self
.
gain
.
gain
,
self
.
task
.
controlGain
)
def
__init__
(
self
,
*
args
):
MetaTask6d
.
__init__
(
self
,
*
args
)
self
.
opPointModif
=
OpPointModifier
(
'
opmodif
'
+
self
.
name
)
plug
(
self
.
dyn
.
signal
(
self
.
opPoint
),
self
.
opPointModif
.
signal
(
'
positionIN
'
))
plug
(
self
.
dyn
.
signal
(
'
J
'
+
self
.
opPoint
),
self
.
opPointModif
.
signal
(
'
jacobianIN
'
))
self
.
opPointModif
.
activ
=
False
@property
def
opmodif
(
self
):
if
not
self
.
opPointModif
.
activ
:
return
False
else
:
return
self
.
opPointModif
.
getTransformation
()
@opmodif.setter
def
opmodif
(
self
,
m
):
if
not
self
.
opPointModif
.
activ
:
plug
(
self
.
opPointModif
.
signal
(
'
position
'
),
self
.
feature
.
position
)
plug
(
self
.
opPointModif
.
signal
(
'
jacobian
'
),
self
.
feature
.
Jq
)
self
.
opPointModif
.
activ
=
True
self
.
opPointModif
.
setTransformation
(
m
)
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