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
Stack Of Tasks
pinocchio
Commits
28bf08e3
Verified
Commit
28bf08e3
authored
Nov 12, 2020
by
Justin Carpentier
Browse files
python: fix access to some fields
parent
88fd9c8c
Pipeline
#12140
passed with stage
in 122 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/multibody/geometry-object.hpp
View file @
28bf08e3
...
...
@@ -23,9 +23,9 @@ namespace pinocchio
:
public
boost
::
python
::
def_visitor
<
GeometryObjectPythonVisitor
>
{
typedef
GeometryObject
::
CollisionGeometryPtr
CollisionGeometryPtr
;
template
<
class
PyClass
>
void
visit
(
PyClass
&
cl
)
const
void
visit
(
PyClass
&
cl
)
const
{
cl
.
def
(
bp
::
init
<
std
::
string
,
FrameIndex
,
JointIndex
,
CollisionGeometryPtr
,
SE3
,
...
...
@@ -63,13 +63,13 @@ namespace pinocchio
"Index of the parent frame."
)
.
def_readwrite
(
"placement"
,
&
GeometryObject
::
placement
,
"Position of geometry object in parent joint's frame."
)
.
def_read
only
(
"meshPath"
,
&
GeometryObject
::
meshPath
,
"Path to the mesh file."
)
.
def_read
only
(
"overrideMaterial"
,
&
GeometryObject
::
overrideMaterial
,
"Boolean that tells whether material information is stored inside the given GeometryObject."
)
.
def_read
only
(
"meshTexturePath"
,
&
GeometryObject
::
meshTexturePath
,
"Path to the mesh texture file."
)
.
def_read
write
(
"meshPath"
,
&
GeometryObject
::
meshPath
,
"Path to the mesh file."
)
.
def_read
write
(
"overrideMaterial"
,
&
GeometryObject
::
overrideMaterial
,
"Boolean that tells whether material information is stored inside the given GeometryObject."
)
.
def_read
write
(
"meshTexturePath"
,
&
GeometryObject
::
meshTexturePath
,
"Path to the mesh texture file."
)
.
def
(
bp
::
self
==
bp
::
self
)
.
def
(
bp
::
self
!=
bp
::
self
)
...
...
@@ -98,7 +98,7 @@ namespace pinocchio
)
.
def
(
GeometryObjectPythonVisitor
())
;
bp
::
enum_
<
GeometryType
>
(
"GeometryType"
)
.
value
(
"VISUAL"
,
VISUAL
)
.
value
(
"COLLISION"
,
COLLISION
)
...
...
@@ -107,7 +107,7 @@ namespace pinocchio
}
};
}
// namespace python
}
// namespace pinocchio
...
...
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