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
f69be149
Commit
f69be149
authored
Jun 02, 2013
by
Francois Keith
Browse files
Resets the posture of the robot between configs in sot-concept.py
parent
b1361cc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/ros/sot-concept.py
View file @
f69be149
...
...
@@ -325,8 +325,15 @@ ball.move((0.5,-0.2,1.0),0)
next
()
next
()
next
()
import
time
def
config
(
ref
=
0
):
# reset the robot configuration
stop
()
# stop the control loop
time
.
sleep
(
0.1
)
# wait (pb of sync with the viewer)
robot
.
device
.
set
(
robot
.
halfSitting
)
next
()
# manual reset of the robot's posture
if
ref
==
0
:
print
'''Only the task RH'''
elif
ref
==
1
:
...
...
@@ -411,6 +418,8 @@ def menu(ref=0):
print
'''6: Task RH + foot constraint + COM= + SINGULARITE '''
print
'''7: Task RH + foot constraint + COM= + SINGULARITE + DAMPING'''
print
''
print
'''Please re-type menu() to display this choice again'''
print
''
uinp
=
raw_input
(
' Config? >> '
)
config
(
int
(
uinp
))
...
...
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