unittest
python
bindings_build_geom_from_urdf_memorycheck.py
Go to the documentation of this file.
1
import
unittest
2
from
pathlib
import
Path
3
4
import
pinocchio
as
pin
5
6
7
@unittest.skipUnless(pin.WITH_URDFDOM,
"Needs URDFDOM"
)
8
class
TestBuildGeomFromUrdfMemoryCheck
(unittest.TestCase):
9
def
setUp
(self):
10
self.
current_dir
= Path(__file__).parent
11
self.
model_dir
= self.
current_dir
/
"../../models"
12
self.
model_path
= (
13
self.
model_dir
14
/
"example-robot-data/robots/ur_description/urdf/ur5_robot.urdf"
15
)
16
17
def
test_load
(self):
18
model = pin.buildModelFromUrdf(self.
model_path
)
19
for
_
in
range(2):
20
pin.buildGeomFromUrdf(
21
model,
22
self.
model_path
,
23
pin.COLLISION,
24
package_dirs=self.
model_dir
,
25
)
26
27
28
if
__name__ ==
"__main__"
:
29
unittest.main()
bindings_build_geom_from_urdf_memorycheck.TestBuildGeomFromUrdfMemoryCheck.current_dir
current_dir
Definition:
bindings_build_geom_from_urdf_memorycheck.py:10
bindings_build_geom_from_urdf_memorycheck.TestBuildGeomFromUrdfMemoryCheck
Definition:
bindings_build_geom_from_urdf_memorycheck.py:8
bindings_build_geom_from_urdf_memorycheck.TestBuildGeomFromUrdfMemoryCheck.model_path
model_path
Definition:
bindings_build_geom_from_urdf_memorycheck.py:12
bindings_build_geom_from_urdf_memorycheck.TestBuildGeomFromUrdfMemoryCheck.setUp
def setUp(self)
Definition:
bindings_build_geom_from_urdf_memorycheck.py:9
bindings_build_geom_from_urdf_memorycheck.TestBuildGeomFromUrdfMemoryCheck.model_dir
model_dir
Definition:
bindings_build_geom_from_urdf_memorycheck.py:11
bindings_build_geom_from_urdf_memorycheck.TestBuildGeomFromUrdfMemoryCheck.test_load
def test_load(self)
Definition:
bindings_build_geom_from_urdf_memorycheck.py:17
pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:25