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
6ca250a8
Commit
6ca250a8
authored
9 years ago
by
olivier stasse
Committed by
Valenza Florian
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[unittest] Makes joints return correct value for make test and warning less.
parent
7a4e3e9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unittest/joints.cpp
+12
-2
12 additions, 2 deletions
unittest/joints.cpp
with
12 additions
and
2 deletions
unittest/joints.cpp
+
12
−
2
View file @
6ca250a8
...
...
@@ -21,9 +21,16 @@
//#define VERBOSE
template
<
typename
JoinData_t
>
void
printOutJointData
(
const
Eigen
::
VectorXd
&
q
,
void
printOutJointData
(
#ifdef VERBOSE
const
Eigen
::
VectorXd
&
q
,
const
Eigen
::
VectorXd
&
q_dot
,
const
JoinData_t
&
joint_data
#else
const
Eigen
::
VectorXd
&
,
const
Eigen
::
VectorXd
&
,
const
JoinData_t
&
#endif
)
{
using
namespace
std
;
...
...
@@ -811,9 +818,12 @@ BOOST_AUTO_TEST_CASE ( test_merge_body )
0.
,
0.
,
3.28125
;
assert
(
mergedInertia
.
mass
()
==
expected_mass
);
if
(
mergedInertia
.
mass
()
!=
expected_mass
)
exit
(
-
1
);
is_matrix_closed
(
mergedInertia
.
lever
(),
expected_com
);
is_matrix_closed
(
mergedInertia
.
inertia
().
matrix
(),
expectedBodyInertia
);
exit
(
0
);
}
BOOST_AUTO_TEST_SUITE_END
()
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