Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
ndcurves
Commits
83941f27
Commit
83941f27
authored
Nov 27, 2019
by
Pierre Fernbach
Browse files
[Tests] add a comparePoints method for eigen::Transform
parent
ea66b806
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/Main.cpp
View file @
83941f27
...
...
@@ -63,7 +63,13 @@ ostream& operator<<(ostream& os, const point3_t& pt) {
return
os
;
}
void
ComparePoints
(
const
transform_t
&
pt1
,
const
transform_t
&
pt2
,
const
std
::
string
&
errmsg
,
bool
&
error
,
double
prec
=
Eigen
::
NumTraits
<
double
>::
dummy_precision
()
,
bool
notequal
=
false
)
{
if
(
!
pt1
.
isApprox
(
pt2
,
prec
)
&&
!
notequal
)
{
error
=
true
;
std
::
cout
<<
errmsg
<<
" translation :"
<<
pt1
.
translation
()
<<
" ; "
<<
pt2
.
translation
()
<<
std
::
endl
<<
"rotation : "
<<
pt1
.
rotation
()
<<
" ; "
<<
pt2
.
rotation
()
<<
std
::
endl
;
}
}
void
ComparePoints
(
const
Eigen
::
MatrixXd
&
pt1
,
const
Eigen
::
MatrixXd
&
pt2
,
const
std
::
string
&
errmsg
,
bool
&
error
,
double
prec
=
Eigen
::
NumTraits
<
double
>::
dummy_precision
()
,
bool
notequal
=
false
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment