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
0682d287
Unverified
Commit
0682d287
authored
6 years ago
by
Justin Carpentier
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #598 from jcarpent/devel
bindings/python: fix bug related to eigenpy
parents
31b88626
a5b2c210
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/python/spatial/explog.hpp
+14
-4
14 additions, 4 deletions
bindings/python/spatial/explog.hpp
bindings/python/spatial/expose-explog.cpp
+2
-2
2 additions, 2 deletions
bindings/python/spatial/expose-explog.cpp
with
16 additions
and
6 deletions
bindings/python/spatial/explog.hpp
+
14
−
4
View file @
0682d287
...
...
@@ -14,8 +14,8 @@ namespace pinocchio
{
template
<
typename
Vector3Like
>
typename
Eigen
::
Matrix
<
typename
Vector3Like
::
Scalar
,
3
,
3
,
EIGEN_PLAIN_TYPE
(
Vector3Like
)
::
Options
>
Jexp3_proxy
(
const
Eigen
::
MatrixBase
<
Vector3Like
>
&
v
)
Eigen
::
Matrix
<
typename
Vector3Like
::
Scalar
,
3
,
3
,
EIGEN_PLAIN_TYPE
(
Vector3Like
)
::
Options
>
Jexp3_proxy
(
const
Vector3Like
&
v
)
{
typedef
Eigen
::
Matrix
<
typename
Vector3Like
::
Scalar
,
3
,
3
,
EIGEN_PLAIN_TYPE
(
Vector3Like
)
::
Options
>
ReturnType
;
ReturnType
res
;
Jexp3
(
v
,
res
);
...
...
@@ -23,7 +23,8 @@ namespace pinocchio
}
template
<
typename
Matrix3Like
>
typename
EIGEN_PLAIN_TYPE
(
Matrix3Like
)
Jlog3_proxy
(
const
Eigen
::
MatrixBase
<
Matrix3Like
>
&
M
)
typename
EIGEN_PLAIN_TYPE
(
Matrix3Like
)
Jlog3_proxy
(
const
Matrix3Like
&
M
)
{
typedef
typename
EIGEN_PLAIN_TYPE
(
Matrix3Like
)
ReturnType
;
ReturnType
res
;
Jlog3
(
M
,
res
);
...
...
@@ -53,11 +54,20 @@ namespace pinocchio
return
res
;
}
Eigen
::
Vector3d
log3_proxy
(
const
Eigen
::
Matrix3d
&
R
)
template
<
typename
Matrix3Like
>
Eigen
::
Matrix
<
typename
Matrix3Like
::
Scalar
,
3
,
1
,
EIGEN_PLAIN_TYPE
(
Matrix3Like
)
::
Options
>
log3_proxy
(
const
Matrix3Like
&
R
)
{
return
log3
(
R
);
}
template
<
typename
Matrix4Like
>
MotionTpl
<
typename
Matrix4Like
::
Scalar
,
EIGEN_PLAIN_TYPE
(
Matrix4Like
)
::
Options
>
log6_proxy
(
const
Matrix4Like
&
homegenous_matrix
)
{
return
log6
(
homegenous_matrix
);
}
}
// namespace python
}
//namespace pinocchio
...
...
This diff is collapsed.
Click to expand it.
bindings/python/spatial/expose-explog.cpp
+
2
−
2
View file @
0682d287
...
...
@@ -25,7 +25,7 @@ namespace pinocchio
"Jacobian of exp(R) which maps from the tangent of SO(3) at exp(v) to"
" the tangent of SO(3) at Identity."
);
bp
::
def
(
"log3"
,
&
log3_proxy
,
bp
::
def
(
"log3"
,
&
log3_proxy
<
Eigen
::
Matrix3d
>
,
bp
::
arg
(
"Rotation matrix (matrix of size 3x3))"
),
"Log: SO3 -> so3. Pseudo-inverse of log from SO3"
" -> { v in so3, ||v|| < 2pi }.Exp: so3 -> SO3."
);
...
...
@@ -50,7 +50,7 @@ namespace pinocchio
"Log: SE3 -> se3. Pseudo-inverse of exp from SE3"
" -> { v,w in se3, ||w|| < 2pi }."
);
bp
::
def
(
"log6"
,
&
log6
<
Eigen
::
Matrix4d
>
,
bp
::
def
(
"log6"
,
&
log6
_proxy
<
Eigen
::
Matrix4d
>
,
bp
::
arg
(
"Homegenious matrix (matrix 4x4)"
),
"Log: SE3 -> se3. Pseudo-inverse of exp from SE3"
" -> { v,w in se3, ||w|| < 2pi }."
);
...
...
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