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
Wolfgang Merkt
example-robot-data
Commits
9b656c4c
Commit
9b656c4c
authored
Oct 30, 2019
by
Pep Marti Saumell
Browse files
Double pendulum:
renamed files
parent
7f12d15b
Changes
8
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
9b656c4c
...
...
@@ -46,7 +46,7 @@ IF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
INSTALL
(
DIRECTORY tiago_description DESTINATION share/
${
PROJECT_NAME
}
)
INSTALL
(
DIRECTORY ur_description DESTINATION share/
${
PROJECT_NAME
}
)
INSTALL
(
DIRECTORY hector_description DESTINATION share/
${
PROJECT_NAME
}
)
INSTALL
(
DIRECTORY
2
do
f
_description DESTINATION share/
${
PROJECT_NAME
}
)
INSTALL
(
DIRECTORY do
uble_pendulum
_description DESTINATION share/
${
PROJECT_NAME
}
)
ENDIF
(
NOT INSTALL_PYTHON_INTERFACE_ONLY
)
SETUP_PROJECT_FINALIZE
()
2
do
f
_description/meshes/base_link.STL
→
do
uble_pendulum
_description/meshes/base_link.STL
View file @
9b656c4c
File moved
2
do
f
_description/meshes/link1.STL
→
do
uble_pendulum
_description/meshes/link1.STL
View file @
9b656c4c
File moved
2
do
f
_description/meshes/link2.STL
→
do
uble_pendulum
_description/meshes/link2.STL
View file @
9b656c4c
File moved
2
do
f
_description/urdf/
2
do
f_planar
.urdf
→
do
uble_pendulum
_description/urdf/do
uble_pendulum
.urdf
View file @
9b656c4c
File moved
python/example_robot_data/__init__.py
View file @
9b656c4c
# flake8: noqa
from
.robots_loader
import
(
getModelPath
,
loadANYmal
,
loadHyQ
,
loadICub
,
loadSolo
,
loadTalos
,
loadTalosArm
,
loadTalosLegs
,
loadTiago
,
loadTiagoNoHand
,
loadUR
,
loadHector
,
load
2dof
,
readParamsFromSrdf
)
loadTalosLegs
,
loadTiago
,
loadTiagoNoHand
,
loadUR
,
loadHector
,
load
DoublePendulum
,
readParamsFromSrdf
)
python/example_robot_data/__main__.py
View file @
9b656c4c
...
...
@@ -3,7 +3,7 @@ from argparse import ArgumentParser
from
.
import
robots_loader
ROBOTS
=
[
'anymal'
,
'hyq'
,
'solo'
,
'solo12'
,
'talos'
,
'talos_arm'
,
'talos_legs'
,
'tiago'
,
'tiago_no_hand'
,
'icub'
,
'ur5'
,
'hector'
,
'
2
do
f
'
'anymal'
,
'hyq'
,
'solo'
,
'solo12'
,
'talos'
,
'talos_arm'
,
'talos_legs'
,
'tiago'
,
'tiago_no_hand'
,
'icub'
,
'ur5'
,
'hector'
,
'do
uble_pendulum
'
]
parser
=
ArgumentParser
()
...
...
@@ -72,7 +72,7 @@ if args.robot == 'hector':
hector
.
display
(
hector
.
q0
)
if
args
.
robot
==
'
2
do
f
'
:
if
args
.
robot
==
'do
uble_pendulum
'
:
planar2dof
=
robots_loader
.
load2dof
()
planar2dof
.
initViewer
(
loadModel
=
True
)
planar2dof
.
display
(
planar2dof
.
q0
)
python/example_robot_data/robots_loader.py
View file @
9b656c4c
...
...
@@ -238,9 +238,9 @@ def loadHector():
return
robot
def
load
2dof
():
URDF_FILENAME
=
"
2
do
f_planar
.urdf"
URDF_SUBPATH
=
"/
2
do
f
_description/urdf/"
+
URDF_FILENAME
def
load
DoublePendulum
():
URDF_FILENAME
=
"do
uble_pendulum
.urdf"
URDF_SUBPATH
=
"/do
uble_pendulum
_description/urdf/"
+
URDF_FILENAME
modelPath
=
getModelPath
(
URDF_SUBPATH
)
robot
=
RobotWrapper
.
BuildFromURDF
(
modelPath
+
URDF_SUBPATH
,
[
modelPath
])
return
robot
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