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
bc335bf3
Commit
bc335bf3
authored
11 years ago
by
Francesco Morsillo
Committed by
Florent Lamiraux florent@laas.fr
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added Relative MetaTaskDyn and modified CMakeLists
parent
84a3097f
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
src/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/CMakeLists.txt
src/dynamic_graph/sot/dyninv/meta_tasks_dyn_relative.py
+51
-0
51 additions, 0 deletions
src/dynamic_graph/sot/dyninv/meta_tasks_dyn_relative.py
with
52 additions
and
0 deletions
src/CMakeLists.txt
+
1
−
0
View file @
bc335bf3
...
...
@@ -74,6 +74,7 @@ INSTALL(FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dyninv/__init__.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dyninv/meta_task_dyn_6d.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dyninv/meta_tasks_dyn.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dyninv/meta_tasks_dyn_relative.py
${
CMAKE_CURRENT_BINARY_DIR
}
/../python/robot_specific.py
DESTINATION
${
PYTHON_SITELIB
}
/dynamic_graph/sot/dyninv
)
...
...
This diff is collapsed.
Click to expand it.
src/dynamic_graph/sot/dyninv/meta_tasks_dyn_relative.py
0 → 100644
+
51
−
0
View file @
bc335bf3
from
dynamic_graph
import
plug
from
dynamic_graph.sot.core.meta_tasks
import
setGain
,
generic6dReference
from
dynamic_graph.sot.core
import
GainAdaptive
,
OpPointModifier
from
dynamic_graph.sot.dyninv
import
TaskDynPD
from
dynamic_graph.sot.core.meta_tasks_kine_relative
import
MetaTaskKine6dRel
,
goto6dRel
,
gotoNdRel
from
dynamic_graph.sot.core.matrix_util
import
*
class
MetaTaskDyn6dRel
(
MetaTaskKine6dRel
):
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
.
setReference
(
self
.
featureDes
.
name
)
plug
(
self
.
dyn
.
signal
(
self
.
opPoint
),
self
.
feature
.
signal
(
'
position
'
))
plug
(
self
.
dyn
.
signal
(
'
J
'
+
self
.
opPoint
),
self
.
feature
.
signal
(
'
Jq
'
))
plug
(
self
.
dyn
.
signal
(
self
.
opPointBase
),
self
.
feature
.
signal
(
'
positionRef
'
))
plug
(
self
.
dyn
.
signal
(
'
J
'
+
self
.
opPointBase
),
self
.
feature
.
signal
(
'
JqRef
'
))
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
)
def
__init__
(
self
,
*
args
):
MetaTaskKine6dRel
.
__init__
(
self
,
*
args
)
@property
def
opmodifBase
(
self
):
if
not
self
.
opPointModifBase
.
activ
:
return
False
else
:
return
self
.
opPointModifBase
.
getTransformation
()
@opmodifBase.setter
def
opmodifBase
(
self
,
m
):
if
isinstance
(
m
,
bool
)
and
m
==
False
:
plug
(
self
.
dyn
.
signal
(
self
.
opPointBase
),
self
.
feature
.
signal
(
'
positionRef
'
))
plug
(
self
.
dyn
.
signal
(
'
J
'
+
self
.
opPointBase
),
self
.
feature
.
signal
(
'
JqRef
'
))
self
.
opPointModifBase
.
activ
=
False
else
:
if
not
self
.
opPointModifBase
.
activ
:
plug
(
self
.
opPointModifBase
.
signal
(
'
position
'
),
self
.
feature
.
positionRef
)
plug
(
self
.
opPointModifBase
.
signal
(
'
jacobian
'
),
self
.
feature
.
JqRef
)
self
.
opPointModifBase
.
setTransformation
(
m
)
self
.
opPointModifBase
.
activ
=
True
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