/Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Clothoids/src/Clothoids/Clothoid_compatibility.hxx Source File

Clothoids: /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Clothoids/src/Clothoids/Clothoid_compatibility.hxx Source File
Clothoids
Clothoid_compatibility.hxx
1/*--------------------------------------------------------------------------*\
2 | |
3 | Copyright (C) 2017 |
4 | |
5 | , __ , __ |
6 | /|/ \ /|/ \ |
7 | | __/ _ ,_ | __/ _ ,_ |
8 | | \|/ / | | | | \|/ / | | | |
9 | |(__/|__/ |_/ \_/|/|(__/|__/ |_/ \_/|/ |
10 | /| /| |
11 | \| \| |
12 | |
13 | Enrico Bertolazzi |
14 | Dipartimento di Ingegneria Industriale |
15 | Universita` degli Studi di Trento |
16 | email: enrico.bertolazzi@unitn.it |
17 | |
18\*--------------------------------------------------------------------------*/
19
23
28thetaTotalVariation() const
29{ return this->theta_total_variation(); }
30
35thetaMinMax( real_type & thMin, real_type & thMax ) const
36{ return this->theta_min_max( thMin, thMax ); }
37
42deltaTheta() const
43{ return this->delta_theta(); }
44
49curvatureMinMax( real_type & kMin, real_type & kMax ) const
50{ return this->curvature_min_max( kMin, kMax ); }
51
56curvatureTotalVariation() const
57{ return this->curvature_total_variation(); }
58
67integralCurvature2() const
68{ return this->integral_curvature2(); }
69
78integralJerk2() const
79{ return this->integral_jerk2(); }
80
89integralSnap2() const
90{ return this->integral_snap2(); }
91
92void
93evaluate(
94 real_type s,
95 real_type & th,
96 real_type & k,
97 real_type & x,
98 real_type & y
99) const override
100{ m_CD.evaluate( s, th, k, x, y ); }
101
102void
103changeOrigin( real_type newx0, real_type newy0 )
104{ change_origin( newx0, newy0 ); }
105
106void
107changeCurvilinearOrigin( real_type s0, real_type newL )
108{ change_curvilinear_origin( s0, newL ); }
109
110real_type thetaBegin() const { return this->theta_begin(); }
111real_type thetaEnd() const { return this->theta_end(); }
112real_type kappaBegin() const { return this->kappa_begin(); }
113real_type kappaEnd() const { return this->kappa_end(); }
114real_type xBegin() const { return this->x_begin(); }
115real_type yBegin() const { return this->y_begin(); }
116real_type xEnd() const { return this->x_end(); }
117real_type yEnd() const { return this->y_end(); }
118real_type xBegin_ISO( real_type offs ) const { return this->x_begin_ISO( offs ); }
119real_type yBegin_ISO( real_type offs ) const { return this->y_begin_ISO( offs ); }
120real_type xEnd_ISO( real_type offs ) const { return this->x_end_ISO( offs ); }
121real_type yEnd_ISO( real_type offs ) const { return this->y_end_ISO( offs ); }
122
124closestPointBySample(
125 real_type ds,
126 real_type qx,
127 real_type qy,
128 real_type & X,
129 real_type & Y,
130 real_type & S
131) const {
132 return this->closest_point_by_sample( ds, qx, qy, X, Y, S );
133}
134
136closestPoint_ISO(
137 real_type qx,
138 real_type qy,
139 real_type & x,
140 real_type & y,
141 real_type & s,
142 real_type & t,
143 real_type & dst
144) const {
145 return this->closest_point_ISO( qx, qy, x, y, s, t, dst );
146}
147
149closestPoint_ISO(
150 real_type qx,
151 real_type qy,
152 real_type offs,
153 real_type & x,
154 real_type & y,
155 real_type & s,
156 real_type & t,
157 real_type & dst
158) const {
159 return this->closest_point_ISO( qx, qy, offs, x, y, s, t, dst );
160}
161
163distanceBySample(
164 real_type ds,
165 real_type qx,
166 real_type qy,
167 real_type & S
168) const {
169 real_type X, Y;
170 return this->closest_point_by_sample( ds, qx, qy, X, Y, S );
171}
172
174distanceBySample(
175 real_type ds,
176 real_type qx,
177 real_type qy
178) const {
179 real_type X, Y, S;
180 return this->closest_point_by_sample( ds, qx, qy, X, Y, S );
181}
182
double real_type
real type number
Definition Clothoids.hh:79
int integer
integer type number
Definition Clothoids.hh:80