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
Humanoid Path Planner
hpp-fcl
Commits
ad9eadff
Verified
Commit
ad9eadff
authored
Jul 30, 2021
by
Justin Carpentier
Browse files
python: tiny refactoring
parent
c80a03c6
Pipeline
#15410
failed with stage
in 45 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/collision-geometries.cc
View file @
ad9eadff
...
...
@@ -508,9 +508,9 @@ void exposeCollisionObject ()
.
def
(
dv
::
init
<
CollisionObject
,
const
CollisionGeometryPtr_t
&
,
const
Transform3f
&>
())
.
def
(
dv
::
init
<
CollisionObject
,
const
CollisionGeometryPtr_t
&
,
const
Matrix3f
&
,
const
Vec3f
&>
())
.
def
(
"getObjectType"
,
&
CollisionObject
::
getObjectType
)
.
def
(
"getNodeType"
,
&
CollisionObject
::
getNodeType
)
.
def
(
"computeAABB"
,
&
CollisionObject
::
computeAABB
)
.
DEF_CLASS_FUNC
(
CollisionObject
,
getObjectType
)
.
DEF_CLASS_FUNC
(
CollisionObject
,
getNodeType
)
.
DEF_CLASS_FUNC
(
CollisionObject
,
computeAABB
)
.
DEF_CLASS_FUNC2
(
CollisionObject
,
getAABB
,
bp
::
return_value_policy
<
bp
::
copy_const_reference
>
())
.
DEF_CLASS_FUNC2
(
CollisionObject
,
getTranslation
,
bp
::
return_value_policy
<
bp
::
copy_const_reference
>
())
...
...
@@ -524,9 +524,9 @@ void exposeCollisionObject ()
.
DEF_CLASS_FUNC
(
CollisionObject
,
isIdentityTransform
)
.
DEF_CLASS_FUNC
(
CollisionObject
,
setIdentityTransform
)
.
def
(
"collisionGeometry"
,
.
def
(
dv
::
member_func
(
"collisionGeometry"
,
static_cast
<
const
CollisionGeometryPtr_t
&
(
CollisionObject
::*
)
()
>
(
&
CollisionObject
::
collisionGeometry
),
bp
::
return_value_policy
<
bp
::
copy_const_reference
>
())
bp
::
return_value_policy
<
bp
::
copy_const_reference
>
())
)
;
}
}
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