Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
f
g
i
j
l
m
n
p
q
r
s
t
u
v
x
y
z
Enumerations
Enumerator
a
b
c
e
f
g
j
l
m
o
p
r
s
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
z
Enumerations
Enumerator
a
b
c
d
f
i
l
m
n
o
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
u
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
Typedefs
a
c
d
g
j
m
p
r
s
t
v
Enumerator
Macros
_
a
b
d
e
f
h
i
j
k
m
o
p
q
r
s
v
Examples
unittest
python
test_case.py
Go to the documentation of this file.
1
import
unittest
2
3
from
pinocchio.utils
import
isapprox
4
5
6
def
tracefunc
(frame, event, arg):
7
print(f
"{event}, {frame.f_code.co_filename}: {frame.f_lineno}"
)
8
return
tracefunc
9
10
11
class
PinocchioTestCase
(unittest.TestCase):
12
def
assertApprox
(self, a, b, eps=1e-6):
13
return
self.assertTrue(
14
isapprox(a, b, eps),
15
f
"\n{a}\nis not approximately equal to\n{b}\nwith precision {eps:f}"
,
16
)
test_case.tracefunc
def tracefunc(frame, event, arg)
Definition:
test_case.py:6
pinocchio.utils
Definition:
bindings/python/pinocchio/utils.py:1
test_case.PinocchioTestCase.assertApprox
def assertApprox(self, a, b, eps=1e-6)
Definition:
test_case.py:12
test_case.PinocchioTestCase
Definition:
test_case.py:11
pinocchio
Author(s):
autogenerated on Wed Apr 16 2025 02:41:51