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-talos
Commits
ee8147e0
Commit
ee8147e0
authored
Mar 26, 2020
by
Guilhem Saurel
Browse files
[Python] fix imports
parent
64bec0f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
ee8147e0
...
...
@@ -17,6 +17,7 @@ SET(PROJECT_USE_CMAKE_EXPORT TRUE)
SET
(
CUSTOM_HEADER_DIR
"sot/talos"
)
SET
(
CXX_DISABLE_WERROR TRUE
)
# JRL-cmakemodule setup
INCLUDE
(
cmake/base.cmake
)
INCLUDE
(
cmake/boost.cmake
)
INCLUDE
(
cmake/python.cmake
)
...
...
tests/appli-test-simple-seq-play.py.cmake
View file @
ee8147e0
...
...
@@ -3,7 +3,9 @@ from dynamic_graph.sot.core.matrix_util import matrixToTuple
from dynamic_graph.sot.tools import SimpleSeqPlay
from numpy import eye
from dynamic_graph.sot.core import Task, FeatureGeneric, GainAdaptive
from dynamic_graph.sot.core.sot import import Task
from dynamic_graph.sot.core.feature_generic FeatureGeneric
from dynamic_graph.sot.core.gain_adaptive import GainAdaptive
from dynamic_graph.sot.core.meta_tasks import setGain
from dynamic_graph.sot.core.matrix_util import matrixToTuple
from numpy import identity, hstack, zeros
...
...
@@ -29,7 +31,7 @@ aSimpleSeqPlay = SimpleSeqPlay('aSimpleSeqPlay')
aSimpleSeqPlay.
load
(
"@PYRENE_MOTIONS_DATAROOTDIR@/pyrene-motions/grabHandrail15/stairs_15cm_handrail_grab_actuated"
)
aSimpleSeqPlay.
setTimeToStart
(
10.0
)
# Connects the sequence player to the posture task
from dynamic_graph.sot.core import Selec_of_vector
from dynamic_graph.sot.core
.operator
import Selec_of_vector
from dynamic_graph import plug
plug
(
aSimpleSeqPlay.posture, taskPosture.featureDes.errorIN
)
...
...
@@ -47,7 +49,7 @@ plug(taskPosture.gain.gain, taskPosture.controlGain)
plug
(
taskPosture.error, taskPosture.gain.error
)
# Create the solver
from dynamic_graph.sot.core import SOT
from dynamic_graph.sot.core
.sot
import SOT
sot =
SOT
(
'sot'
)
sot.
setSize
(
robot.dynamic.
getDimension
())
plug
(
sot.control,robot.device.control
)
...
...
tests/katana_holding.py.cmake
View file @
ee8147e0
...
...
@@ -70,7 +70,7 @@ robot = HumanoidRobot(robotName, pinocchioRobot.model,
# ---- Kinematic Stack of Tasks (SoT) -----------------------------------------
# ------------------------------------------------------------------------------
from dynamic_graph import plug
from dynamic_graph.sot.core import SOT
from dynamic_graph.sot.core
.sot
import SOT
sot =
SOT
(
'sot'
)
sot.
setSize
(
robot.dynamic.
getDimension
())
plug
(
sot.control,robot.device.control
)
...
...
tests/kinetalos.py.cmake
View file @
ee8147e0
...
...
@@ -67,7 +67,7 @@ robot = HumanoidRobot(robotName, pinocchioRobot.model,
# ---- Kinematic Stack of Tasks (SoT) -----------------------------------------
# ------------------------------------------------------------------------------
from dynamic_graph import plug
from dynamic_graph.sot.core import SOT
from dynamic_graph.sot.core
.sot
import SOT
sot =
SOT
(
'sot'
)
sot.
setSize
(
robot.dynamic.
getDimension
())
plug
(
sot.control,robot.device.control
)
...
...
Write
Preview
Markdown
is supported
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