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
Pierre Fernbach
curves
Commits
870eb4fe
Commit
870eb4fe
authored
Oct 02, 2019
by
Pierre Fernbach
Browse files
fix compilation warnings
parent
bfc3f3f3
Pipeline
#6098
passed with stage
in 20 minutes and 34 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
include/curves/curve_abc.h
View file @
870eb4fe
...
...
@@ -69,7 +69,7 @@ namespace curves
// Serialization of the class
friend
class
boost
::
serialization
::
access
;
template
<
class
Archive
>
void
serialize
(
Archive
&
ar
,
const
unsigned
int
version
){
void
serialize
(
Archive
&
/*ar*/
,
const
unsigned
int
version
){
if
(
version
)
{
// Do something depending on version ?
}
...
...
python/curves_python.cpp
View file @
870eb4fe
...
...
@@ -538,6 +538,7 @@ namespace curves
.
def
(
"__call__"
,
&
bernstein_t
::
operator
())
;
/** END bernstein polynomial**/
/** BEGIN curves conversion**/
def
(
"polynomial_from_bezier"
,
polynomial_from_curve
<
polynomial_t
,
bezier_t
>
);
def
(
"polynomial_from_hermite"
,
polynomial_from_curve
<
polynomial_t
,
cubic_hermite_spline_t
>
);
...
...
tests/Main.cpp
View file @
870eb4fe
...
...
@@ -1420,7 +1420,7 @@ void piecewiseCurveConversionFromDiscretePointsTest(bool& error)
double
timestep
=
(
T_max
-
T_min
)
/
double
(
points
.
size
()
-
1
);
std
::
vector
<
double
>
time_points
;
for
(
size_t
i
=
0
;
i
<
points
.
size
();
++
i
)
time_points
.
push_back
(
T_min
+
i
*
timestep
);
time_points
.
push_back
(
T_min
+
double
(
i
)
*
timestep
);
piecewise_polynomial_curve_t
ppc
=
piecewise_polynomial_curve_t
::
convert_discrete_points_to_polynomial
<
polynomial_t
>
(
points
,
time_points
);
if
(
!
ppc
.
is_continuous
(
0
))
...
...
Write
Preview
Markdown
is supported
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