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
b3cb6f03
Commit
b3cb6f03
authored
Dec 20, 2019
by
Pierre Fernbach
Browse files
cleaning
parent
c9705b45
Changes
7
Hide whitespace changes
Inline
Side-by-side
include/curves/bezier_curve.h
View file @
b3cb6f03
...
...
@@ -148,7 +148,6 @@ struct bezier_curve : public curve_abc<Time, Numeric, Safe, Point> {
* @return true is the two curves are approximately equals
*/
bool
isApprox
(
const
bezier_curve_t
&
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
())
const
{
std
::
cout
<<
"is approx in bezier called."
<<
std
::
endl
;
bool
equal
=
T_min_
==
other
.
min
()
&&
T_max_
==
other
.
max
()
&&
dim_
==
other
.
dim
()
...
...
include/curves/cubic_hermite_spline.h
View file @
b3cb6f03
...
...
@@ -111,7 +111,6 @@ struct cubic_hermite_spline : public curve_abc<Time, Numeric, Safe, Point> {
* @return true is the two curves are approximately equals
*/
bool
isApprox
(
const
cubic_hermite_spline_t
&
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
())
const
{
std
::
cout
<<
"is approx in hermite called."
<<
std
::
endl
;
bool
equal
=
T_min_
==
other
.
min
()
&&
T_max_
==
other
.
max
()
&&
dim_
==
other
.
dim
()
...
...
include/curves/curve_abc.h
View file @
b3cb6f03
...
...
@@ -68,7 +68,6 @@ struct curve_abc : std::unary_function<Time, Point>, public serialization::Seria
* @return true is the two curves are approximately equals
*/
bool
isEquivalent
(
const
curve_t
*
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
(),
const
size_t
order
=
5
)
const
{
std
::
cout
<<
"is equivalent in curve_abc called"
<<
std
::
endl
;
bool
equal
=
(
min
()
==
other
->
min
())
&&
(
max
()
==
other
->
max
())
&&
(
dim
()
==
other
->
dim
());
...
...
include/curves/piecewise_curve.h
View file @
b3cb6f03
...
...
@@ -88,7 +88,6 @@ struct piecewise_curve : public curve_abc<Time, Numeric, Safe, Point,Point_deriv
* @return true is the two curves are approximately equals
*/
bool
isApprox
(
const
piecewise_curve_t
&
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
())
const
{
std
::
cout
<<
"is approx in piecewise called."
<<
std
::
endl
;
if
(
num_curves
()
!=
other
.
num_curves
())
return
false
;
for
(
size_t
i
=
0
;
i
<
num_curves
()
;
++
i
)
{
...
...
include/curves/polynomial.h
View file @
b3cb6f03
...
...
@@ -262,7 +262,6 @@ struct polynomial : public curve_abc<Time, Numeric, Safe, Point> {
* @return true is the two curves are approximately equals
*/
bool
isApprox
(
const
polynomial_t
&
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
())
const
{
std
::
cout
<<
"is approx in polynomial called."
<<
std
::
endl
;
return
T_min_
==
other
.
min
()
&&
T_max_
==
other
.
max
()
&&
dim_
==
other
.
dim
()
...
...
include/curves/se3_curve.h
View file @
b3cb6f03
...
...
@@ -158,7 +158,6 @@ struct SE3Curve : public curve_abc<Time, Numeric, Safe, Eigen::Transform<Numeric
* @return true is the two curves are approximately equals
*/
bool
isApprox
(
const
SE3Curve_t
&
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
())
const
{
std
::
cout
<<
"is approx in SE3 called."
<<
std
::
endl
;
return
T_min_
==
other
.
min
()
&&
T_max_
==
other
.
max
()
&&
(
translation_curve_
==
other
.
translation_curve_
||
translation_curve_
->
isApprox
(
other
.
translation_curve_
.
get
(),
prec
))
...
...
include/curves/so3_linear.h
View file @
b3cb6f03
...
...
@@ -115,7 +115,6 @@ struct SO3Linear : public curve_abc<Time, Numeric, Safe, Eigen::Matrix<Numeric,
* @return true is the two curves are approximately equals
*/
bool
isApprox
(
const
SO3Linear_t
&
other
,
const
Numeric
prec
=
Eigen
::
NumTraits
<
Numeric
>::
dummy_precision
())
const
{
std
::
cout
<<
"is approx in SO3 called."
<<
std
::
endl
;
return
T_min_
==
other
.
min
()
&&
T_max_
==
other
.
max
()
&&
dim_
==
other
.
dim
()
...
...
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