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
f7725967
Verified
Commit
f7725967
authored
5 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
python: fix another issue related to Boost.Python
parent
fa57d90f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/python/spatial/expose-skew.cpp
+15
-1
15 additions, 1 deletion
bindings/python/spatial/expose-skew.cpp
with
15 additions
and
1 deletion
bindings/python/spatial/expose-skew.cpp
+
15
−
1
View file @
f7725967
...
...
@@ -15,6 +15,20 @@ namespace pinocchio
{
namespace
bp
=
boost
::
python
;
// We need to resort to another call, because it seems that Boost.Python is not aligning the Eigen::MatrixBase. TODO: fix it!
template
<
typename
Vector3
>
Eigen
::
Matrix
<
typename
Vector3
::
Scalar
,
3
,
3
,
Vector3
::
Options
>
skew
(
const
Vector3
&
v
)
{
return
pinocchio
::
skew
(
v
);
}
// We need to resort to another call, because it seems that Boost.Python is not aligning the Eigen::MatrixBase. TODO: fix it!
template
<
typename
Vector3
>
Eigen
::
Matrix
<
typename
Vector3
::
Scalar
,
3
,
3
,
Vector3
::
Options
>
skewSquare
(
const
Vector3
&
u
,
const
Vector3
&
v
)
{
return
pinocchio
::
skewSquare
(
u
,
v
);
}
// We need to resort to another call, because it seems that Boost.Python is not aligning the Eigen::MatrixBase. TODO: fix it!
template
<
typename
Matrix3
>
Eigen
::
Matrix
<
typename
Matrix3
::
Scalar
,
3
,
1
,
Matrix3
::
Options
>
unSkew
(
const
Matrix3
&
mat
)
...
...
@@ -34,7 +48,7 @@ namespace pinocchio
"Parameters:
\n
"
"
\t
u: the input vector of dimension 3"
);
bp
::
def
(
"skewSquare"
,
&
skewSquare
<
Vector3
,
Vector3
>
,
bp
::
def
(
"skewSquare"
,
&
skewSquare
<
Vector3
>
,
bp
::
args
(
"u"
,
"v"
),
"Computes the skew square representation of two given 3d vectors, "
"i.e. the antisymmetric matrix representation of the chained cross product operator, u x (v x w), where w is another 3d vector.
\n
"
...
...
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