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
Jason Chemin
curves
Commits
235c80b4
Commit
235c80b4
authored
Jul 04, 2019
by
JasonChmn
Browse files
[piecewise_curve] Set MARGIN as a static const class variable
parent
3eb383ad
Pipeline
#4774
passed with stage
in 1 minute and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
include/curves/piecewise_curve.h
View file @
235c80b4
...
...
@@ -8,8 +8,6 @@
#ifndef _CLASS_PIECEWISE_CURVE
#define _CLASS_PIECEWISE_CURVE
#define MARGIN 1e-3
#include
"curve_abc.h"
#include
"curve_conversion.h"
...
...
@@ -188,8 +186,12 @@ struct piecewise_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
t_time_t
time_curves_
;
// for curves 0/1/2 : [ Tmin0, Tmax0,Tmax1,Tmax2 ]
std
::
size_t
size_
;
// Number of segments in piecewise curve = size of curves_
Time
T_min_
,
T_max_
;
static
const
double
MARGIN
;
};
template
<
typename
Time
,
typename
Numeric
,
std
::
size_t
Dim
,
bool
Safe
,
typename
Point
,
typename
T_Point
,
typename
Curve
>
const
double
piecewise_curve
<
Time
,
Numeric
,
Dim
,
Safe
,
Point
,
T_Point
,
Curve
>::
MARGIN
(
0.001
);
}
// end namespace
...
...
Write
Preview
Supports
Markdown
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