Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-dynamic-pinocchio
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
Show more breadcrumbs
Stack Of Tasks
sot-dynamic-pinocchio
Commits
93d839b7
Commit
93d839b7
authored
14 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Install tools.py.
parent
2ccda490
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
[major][cpp] starting point to integrate pinocchio
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/dynamics/tools.py
+25
-25
25 additions, 25 deletions
src/dynamic_graph/sot/dynamics/tools.py
with
26 additions
and
25 deletions
src/CMakeLists.txt
+
1
−
0
View file @
93d839b7
...
...
@@ -70,6 +70,7 @@ INSTALL(FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dynamics/__init__.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dynamics/humanoid_robot.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dynamics/parser.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dynamics/tools.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dynamics/solver.py
DESTINATION
${
PYTHON_SITELIB
}
/dynamic_graph/sot/dynamics
)
...
...
This diff is collapsed.
Click to expand it.
src/dynamic_graph/sot/dynamics/tools.py
+
25
−
25
View file @
93d839b7
...
...
@@ -15,14 +15,9 @@
# received a copy of the GNU Lesser General Public License along with
# dynamic-graph. If not, see <http://www.gnu.org/licenses/>.
import
sys
from
optparse
import
OptionParser
from
dynamic_graph
import
plug
from
dynamic_graph.sot.core
import
SOT
from
dynamic_graph.sot.dynamics.hrp2
import
Hrp2Laas
,
Hrp2Jrl
from
dynamic_graph.sot.dynamics.solver
import
Solver
# Robotviewer is optional
hasRobotViewer
=
True
...
...
@@ -145,23 +140,28 @@ def checkFinalConfiguration(position, finalPosition):
# Initialization #
##################
# Parse options and enable robotviewer client if wanted.
clt
=
None
parser
=
OptionParser
()
parser
.
add_option
(
"
-d
"
,
"
--display
"
,
action
=
"
store_true
"
,
dest
=
"
display
"
,
default
=
False
,
help
=
"
enable display using robotviewer
"
)
(
options
,
args
)
=
parser
.
parse_args
()
if
options
.
display
:
if
not
hasRobotViewer
:
print
"
Failed to import robotviewer client library.
"
clt
=
initRobotViewer
()
if
not
clt
:
print
"
Failed to initialize robotviewer client library.
"
# Initialize the stack of tasks.
robot
=
Hrp2Laas
(
"
robot
"
)
timeStep
=
.
005
solver
=
Solver
(
robot
)
if
__name__
==
'
__main__
'
:
import
sys
from
optparse
import
OptionParser
from
dynamic_graph.sot.dynamics.solver
import
Solver
# Parse options and enable robotviewer client if wanted.
clt
=
None
parser
=
OptionParser
()
parser
.
add_option
(
"
-d
"
,
"
--display
"
,
action
=
"
store_true
"
,
dest
=
"
display
"
,
default
=
False
,
help
=
"
enable display using robotviewer
"
)
(
options
,
args
)
=
parser
.
parse_args
()
if
options
.
display
:
if
not
hasRobotViewer
:
print
"
Failed to import robotviewer client library.
"
clt
=
initRobotViewer
()
if
not
clt
:
print
"
Failed to initialize robotviewer client library.
"
# Initialize the stack of tasks.
robot
=
Hrp2Laas
(
"
robot
"
)
timeStep
=
.
005
solver
=
Solver
(
robot
)
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