Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
cb8b6479
Commit
cb8b6479
authored
Oct 25, 2019
by
Gabriele Buondonno
Browse files
[python] Fix Box bindings
parent
2517ed88
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/collision-geometries.cc
View file @
cb8b6479
...
...
@@ -103,6 +103,17 @@ struct ConvexWrapper
}
};
Eigen
::
Vector3d
getHalfSide
(
const
::
hpp
::
fcl
::
Box
&
box
)
{
Eigen
::
Vector3d
halfSide
=
box
.
halfSide
;
return
halfSide
;
}
void
setHalfSide
(
::
hpp
::
fcl
::
Box
&
box
,
const
Eigen
::
Vector3d
&
halfSide
)
{
box
.
halfSide
=
halfSide
;
}
void
exposeShapes
()
{
class_
<
ShapeBase
,
bases
<
CollisionGeometry
>
,
shared_ptr
<
ShapeBase
>
,
noncopyable
>
...
...
@@ -114,7 +125,7 @@ void exposeShapes ()
(
"Box"
,
init
<>
())
.
def
(
init
<
FCL_REAL
,
FCL_REAL
,
FCL_REAL
>
())
.
def
(
init
<
Vec3f
>
())
.
def_readwrite
(
"halfSide"
,
&
Box
::
halfSide
)
.
add_property
(
"halfSide"
,
make_function
(
getHalfSide
),
make_function
(
setHalfSide
)
)
;
class_
<
Capsule
,
bases
<
ShapeBase
>
,
shared_ptr
<
Capsule
>
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment