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
geometry-object.cpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2022 INRIA
3
//
4
5
#include <iostream>
6
7
#include "
pinocchio/multibody/model.hpp
"
8
#include "
pinocchio/multibody/data.hpp
"
9
10
#include "
pinocchio/multibody/geometry-object.hpp
"
11
12
#include <vector>
13
#include <boost/test/unit_test.hpp>
14
15
using namespace
pinocchio
;
16
17
BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
18
19
BOOST_AUTO_TEST_CASE
(test_clone)
20
{
21
hpp::fcl::Sphere
* sphere_ptr =
new
hpp::fcl::Sphere
(0.5);
22
GeometryObject::CollisionGeometryPtr
sphere_shared_ptr(sphere_ptr);
23
GeometryObject
geom_obj
(
"sphere"
, 0, 0, SE3::Random(), sphere_shared_ptr);
24
25
const
GeometryObject
geom_obj_clone =
geom_obj
.clone();
26
BOOST_CHECK(geom_obj_clone ==
geom_obj
);
27
28
sphere_ptr->
radius
= 1.;
29
BOOST_CHECK(geom_obj_clone !=
geom_obj
);
30
}
31
32
BOOST_AUTO_TEST_SUITE_END()
model.hpp
hpp::fcl::Sphere
display-shapes-meshcat.geom_obj
geom_obj
Definition:
display-shapes-meshcat.py:25
pinocchio::GeometryObject
Definition:
multibody/geometry-object.hpp:87
Sphere
Sphere()
hpp::fcl::Sphere::radius
FCL_REAL radius
data.hpp
geometry-object.hpp
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(test_clone)
Definition:
geometry-object.cpp:19
pinocchio::GeometryObject::CollisionGeometryPtr
std::shared_ptr< fcl::CollisionGeometry > CollisionGeometryPtr
Definition:
multibody/geometry-object.hpp:102
pinocchio
Main pinocchio namespace.
Definition:
timings.cpp:33
pinocchio
Author(s):
autogenerated on Fri Apr 25 2025 02:41:38