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
Guilhem Saurel
hpp-rbprm-corba
Commits
9916a7bd
Commit
9916a7bd
authored
Jun 03, 2016
by
Steve Tonneau
Browse files
reenabling collision tests for end effector contacts. working for hyq and hrp-2 (no arm)
parent
2c917f62
Changes
3
Hide whitespace changes
Inline
Side-by-side
script/scenarios/darpa_hyq_interp.py
View file @
9916a7bd
...
...
@@ -38,37 +38,28 @@ rLeg = 'rf_haa_joint'
# Last joint of the limb, as in urdf file
rfoot
=
'rf_foot_joint'
# Specifying the distance between last joint and contact surface
rLegO
ffset
=
[
0.
,
0
,
0.
]
o
ffset
=
[
0.
,
-
0.021
,
0.
]
# Specifying the contact surface direction when the limb is in rest pose
rLegN
ormal
=
[
0
,
1
,
0
]
n
ormal
=
[
0
,
1
,
0
]
# Specifying the rectangular contact surface length
rL
egx
=
0.02
;
rL
egy
=
0.02
l
egx
=
0.02
;
l
egy
=
0.02
# remaining parameters are the chosen heuristic (here, manipulability), and the resolution of the octree (here, 10 cm).
fullBody
.
addLimb
(
rLegId
,
rLeg
,
rfoot
,
rLegO
ffset
,
rLegN
ormal
,
rL
egx
,
rL
egy
,
nbSamples
,
"manipulability"
,
0.1
,
cType
)
fullBody
.
addLimb
(
rLegId
,
rLeg
,
rfoot
,
o
ffset
,
n
ormal
,
l
egx
,
l
egy
,
nbSamples
,
"manipulability"
,
0.1
,
cType
)
lLegId
=
'lhleg'
lLeg
=
'lh_haa_joint'
lfoot
=
'lh_foot_joint'
lLegOffset
=
[
0
,
0
,
0
]
lLegNormal
=
[
0
,
1
,
0
]
lLegx
=
0.02
;
lLegy
=
0.02
fullBody
.
addLimb
(
lLegId
,
lLeg
,
lfoot
,
lLegOffset
,
rLegNormal
,
lLegx
,
lLegy
,
nbSamples
,
"manipulability"
,
0.05
,
cType
)
fullBody
.
addLimb
(
lLegId
,
lLeg
,
lfoot
,
offset
,
normal
,
legx
,
legy
,
nbSamples
,
"manipulability"
,
0.05
,
cType
)
rarmId
=
'rhleg'
rarm
=
'rh_haa_joint'
rHand
=
'rh_foot_joint'
rArmOffset
=
[
0.
,
0
,
-
0.
]
rArmNormal
=
[
0
,
1
,
0
]
rArmx
=
0.02
;
rArmy
=
0.02
fullBody
.
addLimb
(
rarmId
,
rarm
,
rHand
,
rArmOffset
,
rArmNormal
,
rArmx
,
rArmy
,
nbSamples
,
"manipulability"
,
0.05
,
cType
)
fullBody
.
addLimb
(
rarmId
,
rarm
,
rHand
,
offset
,
normal
,
legx
,
legy
,
nbSamples
,
"manipulability"
,
0.05
,
cType
)
larmId
=
'lfleg'
larm
=
'lf_haa_joint'
lHand
=
'lf_foot_joint'
lArmOffset
=
[
0.
,
0
,
-
0.
]
lArmNormal
=
[
0
,
1
,
0
]
lArmx
=
0.02
;
lArmy
=
0.02
fullBody
.
addLimb
(
larmId
,
larm
,
lHand
,
lArmOffset
,
lArmNormal
,
lArmx
,
lArmy
,
nbSamples
,
"forward"
,
0.05
,
cType
)
fullBody
.
addLimb
(
larmId
,
larm
,
lHand
,
offset
,
normal
,
legx
,
legy
,
nbSamples
,
"forward"
,
0.05
,
cType
)
q_0
=
fullBody
.
getCurrentConfig
();
q_init
=
fullBody
.
getCurrentConfig
();
q_init
[
0
:
7
]
=
tp
.
q_init
[
0
:
7
]
...
...
script/scenarios/darpa_hyq_path.py
View file @
9916a7bd
...
...
@@ -57,4 +57,4 @@ t = ps.solve ()
# Playing the computed path
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
rbprmBuilder
.
client
.
basic
,
r
)
pp
(
1
)
#~
pp (1)
src/CMakeLists.txt
View file @
9916a7bd
...
...
@@ -30,13 +30,13 @@ OMNIIDL_INCLUDE_DIRECTORIES(
INCLUDE_DIRECTORIES
(
${
CMAKE_BINARY_DIR
}
/src
)
FOREACH
(
IDL
${
IDL_SOURCES
}
)
GENERATE_IDL_
FILE
(
${
IDL
}
GENERATE_IDL_
CPP
(
${
IDL
}
${
CMAKE_SOURCE_DIR
}
/idl/hpp/corbaserver/rbprm
)
ENDFOREACH
()
FOREACH
(
IDL
${
HPP_CORBASERVER_IDL_SOURCES
}
)
GENERATE_IDL_
FILE
(
${
IDL
}
GENERATE_IDL_
CPP
(
${
IDL
}
${
HPP_CORBASERVER_DATAROOTDIR
}
/idl/hpp/corbaserver
)
ENDFOREACH
()
...
...
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