Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
pinocchio
Commits
585cc406
Commit
585cc406
authored
7 years ago
by
Nicolas Mansard
Committed by
Nicolas Mansard
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Python] Added static method in geometry API to create a capsule object and add it to GeomModel.
parent
a4454e84
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/python/multibody/geometry-model.hpp
+2
-0
2 additions, 0 deletions
bindings/python/multibody/geometry-model.hpp
bindings/python/multibody/geometry-object.hpp
+11
-0
11 additions, 0 deletions
bindings/python/multibody/geometry-object.hpp
with
13 additions
and
0 deletions
bindings/python/multibody/geometry-model.hpp
+
2
−
0
View file @
585cc406
...
...
@@ -80,6 +80,8 @@ namespace se3
;
}
/* --- Expose --------------------------------------------------------- */
static
void
expose
()
{
...
...
This diff is collapsed.
Click to expand it.
bindings/python/multibody/geometry-object.hpp
+
11
−
0
View file @
585cc406
...
...
@@ -55,9 +55,20 @@ namespace se3
.
def_readonly
(
"meshPath"
,
&
GeometryObject
::
meshPath
,
"Absolute path to the mesh file"
)
.
def_readonly
(
"overrideMaterial"
,
&
GeometryObject
::
overrideMaterial
,
"Boolean that tells whether material information is stored in Geometry object"
)
.
def_readonly
(
"meshTexturePath"
,
&
GeometryObject
::
meshTexturePath
,
"Absolute path to the mesh texture file"
)
.
def
(
"CreateCapsule"
,
&
GeometryObjectPythonVisitor
::
maker_capsule
)
.
staticmethod
(
"CreateCapsule"
)
;
}
static
GeometryObject
maker_capsule
(
const
double
radius
,
const
double
length
)
{
return
GeometryObject
(
""
,
FrameIndex
(
0
),
JointIndex
(
0
),
boost
::
shared_ptr
<
fcl
::
CollisionGeometry
>
(
new
fcl
::
Capsule
(
radius
,
length
)),
SE3
::
Identity
());
}
static
void
expose
()
{
bp
::
class_
<
GeometryObject
>
(
"GeometryObject"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment