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
5165077d
Commit
5165077d
authored
9 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Python] Add setIdentity and setRandom to SE3 python struct
parent
ec04599c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/se3.hpp
+6
-0
6 additions, 0 deletions
src/python/se3.hpp
with
6 additions
and
0 deletions
src/python/se3.hpp
+
6
−
0
View file @
5165077d
...
...
@@ -78,6 +78,9 @@ namespace se3
.
add_property
(
"translation"
,
&
SE3PythonVisitor
::
getTranslation
,
&
SE3PythonVisitor
::
setTranslation
)
.
add_property
(
"homogeneous"
,
&
SE3_fx
::
toHomogeneousMatrix
)
.
add_property
(
"action"
,
&
SE3_fx
::
toActionMatrix
)
.
def
(
"setIdentity"
,
&
SE3PythonVisitor
::
setIdentity
)
.
def
(
"setRandom"
,
&
SE3PythonVisitor
::
setRandom
)
.
def
(
"inverse"
,
&
SE3_fx
::
inverse
)
.
def
(
"act_point"
,
&
SE3PythonVisitor
::
act_point
)
...
...
@@ -101,6 +104,9 @@ namespace se3
static
void
setRotation
(
SE3_fx
&
self
,
const
Matrix3_fx
&
R
)
{
self
.
rotation
(
R
);
}
static
Vector3_fx
getTranslation
(
const
SE3_fx
&
self
)
{
return
self
.
translation
();
}
static
void
setTranslation
(
SE3_fx
&
self
,
const
Vector3_fx
&
p
)
{
self
.
translation
(
p
);
}
static
void
setIdentity
(
SE3_fx
&
self
)
{
self
.
setIdentity
();
}
static
void
setRandom
(
SE3_fx
&
self
)
{
self
.
setRandom
();
}
static
Vector3_fx
act_point
(
const
SE3_fx
&
self
,
const
Vector3_fx
&
pt
)
{
return
self
.
act
(
pt
);
}
static
Vector3_fx
actInv_point
(
const
SE3_fx
&
self
,
const
Vector3_fx
&
pt
)
{
return
self
.
actInv
(
pt
);
}
...
...
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