Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
6731f05a
Commit
6731f05a
authored
Feb 07, 2020
by
Rohan Budhiraja
Browse files
[benchmark][frames kinematics] add timings for frame kinematics
parent
f4a92f39
Changes
1
Hide whitespace changes
Inline
Side-by-side
benchmark/timings.cpp
View file @
6731f05a
...
...
@@ -6,6 +6,7 @@
#include "pinocchio/multibody/data.hpp"
#include "pinocchio/algorithm/joint-configuration.hpp"
#include "pinocchio/algorithm/frames.hpp"
#include "pinocchio/algorithm/crba.hpp"
#include "pinocchio/algorithm/centroidal.hpp"
#include "pinocchio/algorithm/aba.hpp"
...
...
@@ -332,6 +333,22 @@ int main(int argc, const char ** argv)
forwardKinematics
(
model
,
data
,
qs
[
_smooth
],
qdots
[
_smooth
],
qddots
[
_smooth
]);
}
std
::
cout
<<
"Second Order Kinematics =
\t
"
;
timer
.
toc
(
std
::
cout
,
NBT
);
timer
.
tic
();
SMOOTH
(
NBT
)
{
forwardKinematics
(
model
,
data
,
qs
[
_smooth
]);
updateFramePlacements
(
model
,
data
);
}
std
::
cout
<<
"Zero Order Kinematics + Update Frame Placement =
\t
"
;
timer
.
toc
(
std
::
cout
,
NBT
);
timer
.
tic
();
SMOOTH
(
NBT
)
{
framesForwardKinematics
(
model
,
data
,
qs
[
_smooth
]);
}
std
::
cout
<<
"Zero Order Frames Kinematics =
\t
"
;
timer
.
toc
(
std
::
cout
,
NBT
);
timer
.
tic
();
SMOOTH
(
NBT
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment