10 import pinocchio
as pin
13 if tuple(map(int, fcl.__version__.split(
"."))) >= (3, 0, 0):
14 with_octomap = fcl.WITH_OCTOMAP
19 "This example is skiped as HPP-FCL has not been compiled with octomap support."
23 collision_model = pin.GeometryModel()
25 octree = fcl.makeOctree(np.random.rand(1000, 3), 0.01)
26 octree_object = pin.GeometryObject(
"octree", 0, pin.SE3.Identity(), octree)
27 octree_object.meshColor[0] = 1.0
28 collision_model.addGeometryObject(octree_object)
30 visual_model = collision_model
41 viz.initViewer(open=
True)
42 except ImportError
as err:
44 "Error while initializing the viewer. "
45 "It seems you should install Python meshcat"