Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-dyninv
Commits
9b23f4f0
Commit
9b23f4f0
authored
Aug 26, 2013
by
Francesco Morsillo
Browse files
Fixed bug in setGain() and added reference input type in MetaTaskDynPosture.gotoq()
parent
b0aba963
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamic_graph/sot/dyninv/meta_tasks_dyn.py
View file @
9b23f4f0
...
...
@@ -10,7 +10,7 @@ def setGain(gain,val):
if
val
!=
None
:
if
isinstance
(
val
,
int
)
or
isinstance
(
val
,
float
):
gain
.
setConstant
(
val
)
if
len
(
val
)
==
1
:
el
if
len
(
val
)
==
1
:
gain
.
setConstant
(
val
[
0
])
elif
len
(
val
)
==
3
:
gain
.
set
(
val
[
0
],
val
[
1
],
val
[
2
])
elif
len
(
val
)
==
4
:
gain
.
setByPoint
(
val
[
0
],
val
[
1
],
val
[
2
],
val
[
3
])
...
...
@@ -109,6 +109,7 @@ class MetaTaskDynPosture(object):
r
=
self
.
postureRange
[
n
]
act
+=
r
if
isinstance
(
v
,
matrix
):
qdes
[
r
,
0
]
=
vectorToTuple
(
v
)
if
isinstance
(
v
,
ndarray
):
qdes
[
r
,
0
]
=
vectorToTuple
(
v
)
else
:
qdes
[
r
,
0
]
=
v
self
.
ref
=
vectorToTuple
(
qdes
)
self
.
feature
.
selec
.
value
=
toFlags
(
act
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment