bindings
python
pinocchio
bindings/python/pinocchio/__init__.py
Go to the documentation of this file.
1
#
2
# Copyright (c) 2015-2020 CNRS INRIA
3
#
4
5
import
numpy
6
from
.pinocchio_pywrap
import
*
7
8
from
.pinocchio_pywrap
import
__version__, __raw_version__
9
10
from
.
import
utils
11
from
.explog
import
exp, log
12
13
# Manually register submodules
14
import
sys, inspect
15
16
submodules = inspect.getmembers(pinocchio_pywrap, inspect.ismodule)
17
for
module_info
in
submodules:
18
sys.modules[
'pinocchio.'
+ module_info[0]] = module_info[1]
19
20
if
WITH_HPP_FCL:
21
try
:
22
import
hppfcl
23
from
hppfcl
import
Contact, StdVec_Contact, CollisionResult, StdVec_CollisionResult, DistanceResult, StdVec_DistanceResult, CollisionGeometry, MeshLoader, CachedMeshLoader
24
WITH_HPP_FCL_BINDINGS =
True
25
except
ImportError:
26
WITH_HPP_FCL_BINDINGS =
False
27
else
:
28
WITH_HPP_FCL_BINDINGS =
False
29
30
from
.robot_wrapper
import
RobotWrapper
31
from
.deprecated
import
*
32
from
.shortcuts
import
*
33
from
.
import
visualize
pinocchio
Author(s):
autogenerated on Fri Jun 23 2023 02:38:28