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
1746e501
Commit
1746e501
authored
9 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[C++] Adjust display representation of Inertia
parent
c4a8b735
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/spatial/inertia.hpp
+6
-9
6 additions, 9 deletions
src/spatial/inertia.hpp
with
6 additions
and
9 deletions
src/spatial/inertia.hpp
+
6
−
9
View file @
1746e501
...
...
@@ -19,6 +19,7 @@
#define __se3_inertia_hpp__
#include
<Eigen/Dense>
#include
<iostream>
#include
"pinocchio/spatial/symmetric3.hpp"
#include
"pinocchio/spatial/force.hpp"
...
...
@@ -76,11 +77,7 @@ namespace se3
return
derived
().
se3ActionInverse_impl
(
M
);
}
void
disp
(
std
::
ostream
&
os
)
const
{
static_cast
<
const
Derived_t
*>
(
this
)
->
disp_impl
(
os
);
}
void
disp
(
std
::
ostream
&
os
)
const
{
static_cast
<
const
Derived_t
*>
(
this
)
->
disp_impl
(
os
);
}
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
InertiaBase
<
Derived_t
>
&
X
)
{
X
.
disp
(
os
);
...
...
@@ -301,11 +298,11 @@ namespace se3
v
.
angular
().
cross
(
c
.
cross
(
mv_mcxw
)
+
I
*
v
.
angular
())
-
v
.
linear
().
cross
(
mcxw
)
);
}
void
disp_impl
(
std
::
ostream
&
os
)
const
void
disp_impl
(
std
::
ostream
&
os
)
const
{
os
<<
"m ="
<<
m
<<
"
;
\n
"
<<
"c =
[
\n
"
<<
c
.
transpose
()
<<
"
]';
\n
"
<<
"I =
[
\n
"
<<
(
Matrix3
)
I
<<
"
];
"
;
os
<<
"
m =
"
<<
m
<<
"
\n
"
<<
"
c = "
<<
c
.
transpose
()
<<
"
\n
"
<<
"
I =
\n
"
<<
(
Matrix3
)
I
<<
""
;
}
protected
:
...
...
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