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
421c787c
Commit
421c787c
authored
11 years ago
by
Francois Keith
Committed by
Florent Lamiraux florent@laas.fr
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update the kine_romeo sample.
The solver has been moved in sot-application.
parent
71b0eb4d
No related branches found
Branches containing commit
Tags
v2.8
Tags containing commit
1 merge request
!1
[major][cpp] starting point to integrate pinocchio
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/kine_romeo.py
+7
-8
7 additions, 8 deletions
python/kine_romeo.py
with
7 additions
and
8 deletions
python/kine_romeo.py
+
7
−
8
View file @
421c787c
...
...
@@ -29,8 +29,7 @@ from dynamic_graph.ros import *
ros
=
Ros
(
robot
)
# Create a simple kinematic solver.
from
dynamic_graph.sot.dynamics.solver
import
Solver
solver
=
Solver
(
robot
)
from
dynamic_graph.sot.application.velocity.precomputed_tasks
import
initialize
# Alternate visualization tool
from
dynamic_graph.sot.core.utils.viewer_helper
import
addRobotViewer
...
...
@@ -63,11 +62,10 @@ taskRH.feature.frame('desired')
# robot.tasks['right-wrist'].add(taskRH.feature.name)
# --- STATIC COM (if not walking)
robot
.
createCenterOfMassFeatureAndTask
(
'
featureCom
'
,
'
featureComDef
'
,
'
comTask
'
,
selec
=
'
011
'
,
gain
=
10
)
# create the com task and feature tasks.
solver
=
initialize
(
robot
)
# remove the tasks from the sot (they've been automatically added by previous method).
solver
.
sot
.
clear
()
# --- CONTACTS
# define contactLF and contactRF
...
...
@@ -91,7 +89,8 @@ gotoNd(taskRH,target,'111',(4.9,0.9,0.01,0.9))
# Fill the stack with some tasks.
solver
.
push
(
contactRF
.
task
)
solver
.
push
(
contactLF
.
task
)
solver
.
push
(
robot
.
comTask
)
solver
.
push
(
robot
.
tasks
[
'
com
'
])
solver
.
push
(
taskRH
.
task
)
# type inc to run one iteration, or go to run indefinitely.
...
...
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