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
cd76ce13
Commit
cd76ce13
authored
10 years ago
by
Nicolas Mansard
Committed by
Valenza Florian
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Clean CRBA and RNEA tests.
parent
8b2d2602
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
unittest/crba.cpp
+5
-11
5 additions, 11 deletions
unittest/crba.cpp
unittest/rnea.cpp
+0
-2
0 additions, 2 deletions
unittest/rnea.cpp
with
5 additions
and
13 deletions
unittest/crba.cpp
+
5
−
11
View file @
cd76ce13
...
...
@@ -6,23 +6,14 @@
#include
"pinocchio/algorithm/crba.hpp"
#include
"pinocchio/algorithm/rnea.hpp"
#include
"pinocchio/multibody/parser/urdf.hpp"
#include
"pinocchio/multibody/parser/sample-models.hpp"
#include
<iostream>
#include
"pinocchio/tools/timer.hpp"
//#define __SSE3__
#include
<fenv.h>
#ifdef __SSE3__
#include
<pmmintrin.h>
#endif
int
main
(
int
argc
,
const
char
**
argv
)
{
#ifdef __SSE3__
_MM_SET_DENORMALS_ZERO_MODE
(
_MM_DENORMALS_ZERO_ON
);
#endif
using
namespace
Eigen
;
using
namespace
se3
;
...
...
@@ -31,13 +22,16 @@ int main(int argc, const char ** argv)
std
::
string
filename
=
"/home/nmansard/src/metapod/data/simple_arm.urdf"
;
if
(
argc
>
1
)
filename
=
argv
[
1
];
model
=
se3
::
buildModel
(
filename
,
argc
>
1
);
se3
::
buildModels
::
humanoidSimple
(
model
);
//model = se3::buildModel(filename,argc>1);
se3
::
Data
data
(
model
);
VectorXd
q
=
VectorXd
::
Zero
(
model
.
nq
);
StackTicToc
timer
(
StackTicToc
::
US
);
timer
.
tic
();
#ifdef NDEBUG
SMOOTH
(
1000
*
100
)
#endif
{
crba
(
model
,
data
,
q
);
}
...
...
This diff is collapsed.
Click to expand it.
unittest/rnea.cpp
+
0
−
2
View file @
cd76ce13
...
...
@@ -23,13 +23,11 @@ int main()
_MM_SET_DENORMALS_ZERO_MODE
(
_MM_DENORMALS_ZERO_ON
);
#endif
using
namespace
Eigen
;
using
namespace
se3
;
se3
::
Model
model
;
buildModels
::
humanoidSimple
(
model
);
se3
::
Data
data
(
model
);
data
.
v
[
0
]
=
Motion
::
Zero
();
data
.
a
[
0
]
=
-
model
.
gravity
;
...
...
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