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
Humanoid Path Planner
talos-rbprm
Commits
5b00f829
Commit
5b00f829
authored
Sep 15, 2020
by
Guilhem Saurel
Browse files
use model from example-robot-data
parent
55f8c354
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
5b00f829
...
...
@@ -13,6 +13,8 @@ INCLUDE(cmake/python.cmake)
COMPUTE_PROJECT_ARGS
(
PROJECT_ARGS LANGUAGES CXX
)
PROJECT
(
${
PROJECT_NAME
}
${
PROJECT_ARGS
}
)
ADD_PROJECT_DEPENDENCY
(
example-robot-data REQUIRED
)
FINDPYTHON
()
ADD_LIBRARY
(
${
PROJECT_NAME
}
INTERFACE
)
...
...
talos_rbprm/talos.py
View file @
5b00f829
...
...
@@ -3,6 +3,7 @@
# Author: Pierre Fernbach
import
numpy
as
np
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
as
Parent
from
pinocchio
import
SE3
...
...
@@ -10,8 +11,8 @@ from pinocchio import SE3
class
Robot
(
Parent
):
# Information to retrieve urdf and srdf files.
name
=
"talos"
packageName
=
"talos_data"
meshPackageName
=
"talos_data"
packageName
=
"
example-robot-data/robots/
talos_data"
meshPackageName
=
"
example-robot-data/robots/
talos_data"
rootJointType
=
"freeflyer"
urdfName
=
"talos"
urdfSuffix
=
"_reduced"
...
...
@@ -403,7 +404,7 @@ class Robot(Parent):
self
.
name
=
name
Parent
.
__init__
(
self
,
self
.
name
,
self
.
rootJointType
,
load
,
client
,
None
,
clientRbprm
)
# Even though the bound in the urdf is greater than this values,
# Even though the bound in the urdf is greater than this values,
# the controller do not tolerate values outside of this bounds
self
.
setJointBounds
(
'leg_left_5_joint'
,
[
-
1.26
,
0.768
])
self
.
setJointBounds
(
'leg_right_5_joint'
,
[
-
1.26
,
0.768
])
...
...
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