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
b26a590f
Commit
b26a590f
authored
Aug 23, 2019
by
JasonChmn
Committed by
Pierre Fernbach
Sep 03, 2019
Browse files
[main - tests] Modify typedef of curves to use point of dynamic size
parent
5e0243f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/Main.cpp
View file @
b26a590f
...
...
@@ -18,23 +18,24 @@ using namespace std;
namespace
curves
{
typedef
Eigen
::
Vector3d
point_t
;
typedef
std
::
vector
<
point_t
,
Eigen
::
aligned_allocator
<
point_t
>
>
t_point_t
;
typedef
curve_abc
<
double
,
double
,
true
,
point_t
>
curve_abc_t
;
typedef
polynomial
<
double
,
double
,
true
,
point_t
,
t_point_t
>
polynomial_t
;
typedef
exact_cubic
<
double
,
double
,
true
,
point_t
>
exact_cubic_t
;
typedef
Eigen
::
VectorXd
pointX_t
;
typedef
std
::
vector
<
pointX_t
,
Eigen
::
aligned_allocator
<
pointX_t
>
>
t_point_t
;
typedef
curve_abc
<
double
,
double
,
true
,
pointX_t
>
curve_abc_t
;
typedef
polynomial
<
double
,
double
,
true
,
pointX_t
,
t_point_t
>
polynomial_t
;
typedef
exact_cubic
<
double
,
double
,
true
,
pointX_t
>
exact_cubic_t
;
typedef
exact_cubic
<
double
,
double
,
true
,
Eigen
::
Matrix
<
double
,
1
,
1
>
>
exact_cubic_one
;
typedef
bezier_curve
<
double
,
double
,
true
,
point_t
>
bezier_curve_t
;
typedef
cubic_hermite_spline
<
double
,
double
,
true
,
point_t
>
cubic_hermite_spline_t
;
typedef
piecewise_curve
<
double
,
double
,
true
,
point_t
,
t_point_t
,
polynomial_t
>
piecewise_polynomial_curve_t
;
typedef
piecewise_curve
<
double
,
double
,
true
,
point_t
,
t_point_t
,
bezier_curve_t
>
piecewise_bezier_curve_t
;
typedef
piecewise_curve
<
double
,
double
,
true
,
point_t
,
t_point_t
,
cubic_hermite_spline_t
>
piecewise_cubic_hermite_curve_t
;
typedef
bezier_curve
<
double
,
double
,
true
,
point
X
_t
>
bezier_curve_t
;
typedef
cubic_hermite_spline
<
double
,
double
,
true
,
point
X
_t
>
cubic_hermite_spline_t
;
typedef
piecewise_curve
<
double
,
double
,
true
,
point
X
_t
,
t_point_t
,
polynomial_t
>
piecewise_polynomial_curve_t
;
typedef
piecewise_curve
<
double
,
double
,
true
,
point
X
_t
,
t_point_t
,
bezier_curve_t
>
piecewise_bezier_curve_t
;
typedef
piecewise_curve
<
double
,
double
,
true
,
point
X
_t
,
t_point_t
,
cubic_hermite_spline_t
>
piecewise_cubic_hermite_curve_t
;
typedef
exact_cubic_t
::
spline_constraints
spline_constraints_t
;
typedef
std
::
pair
<
double
,
point_t
>
Waypoint
;
typedef
std
::
pair
<
double
,
point
X
_t
>
Waypoint
;
typedef
std
::
vector
<
Waypoint
>
T_Waypoint
;
typedef
Eigen
::
Matrix
<
double
,
1
,
1
>
point_one
;
typedef
std
::
pair
<
double
,
point_one
>
WaypointOne
;
typedef
std
::
vector
<
WaypointOne
>
T_WaypointOne
;
typedef
std
::
pair
<
point_t
,
point_t
>
pair_point_tangent_t
;
typedef
std
::
pair
<
point
X
_t
,
point
X
_t
>
pair_point_tangent_t
;
typedef
std
::
vector
<
pair_point_tangent_t
,
Eigen
::
aligned_allocator
<
pair_point_tangent_t
>
>
t_pair_point_tangent_t
;
const
double
margin
=
1e-3
;
...
...
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