ClothoidList Class Reference
Clothoids
|
Public Member Functions | |
function | ClothoidList () |
function | reserve (in self, in N) |
function | save (in self, in fname) |
function | load (in self, in varargin) |
function | push_back (in self, in varargin) |
function | push_back_G1 (in self, in varargin) |
function | get (in self, in k) |
function | append (in self, in lst) |
function | get_STK (in self) |
function | get_XY (in self) |
function | num_segments (in self) |
function | numSegments (in self) |
function | build_3arcG2 (in self, in x0, in y0, in theta0, in kappa0, in) |
function | build_3arcG2fixed (in self, in s0, in x0, in y0, in theta0, in kappa0, in) |
function | build_2arcG2 (in self, in x0, in y0, in theta0, in kappa0, in) |
function | build_CLC (in self, in x0, in y0, in theta0, in kappa0, in) |
function | build_G1 (in self, in x, in y, in varargin) |
function | build (in self, in x0, in y0, in theta0, in s, in kappa) |
function | build_theta (in self, in x, in y) |
function | build_raw (in self, in x, in y, in abscissa, in theta, in kappa) |
function | make_closed (in self) |
function | make_open (in self) |
function | is_closed (in self) |
function | deltaTheta (in self) |
function | deltaKappa (in self) |
function | closest_point_by_sample (in self, in qx, in qy, in ds) |
function | closestPointBySample (in self, in qx, in qy, in ds) |
function | distanceBySample (in self, in qx, in qy, in ds) |
function | closest_segment (in self, in qx, in qy) |
function | closestSegment (in self, in qx, in qy) |
function | closest_point_in_range (in self, in qx, in qy, in ibegin, in iend, in varargin) |
function | closestPointInRange (in self, in qx, in qy, in ibegin, in iend, in varargin) |
function | closest_point_in_s_range (in self, in qx, in qy, in s_begin, in s_end, in varargin) |
function | closestPointInSRange (in self, in qx, in qy, in s_begin, in s_end, in varargin) |
function | s_to_index (in self, in s) |
function | export_table (in self, in filename) |
function | export_ruby (in self, in filename) |
function | info (in self) |
function | find_coord1 (in self, in x, in y, in varargin) |
function | export (in self) |
function | plot (in self, in varargin) |
function | plot_offs (in self, in offs, in npts, in varargin) |
function | plot_curvature (in self, in npts, in varargin) |
function | plotCurvature (in self, in npts, in varargin) |
function | plot_angle (in self, in npts, in varargin) |
function | plotAngle (in self, in npts, in varargin) |
function | plot_normal (in self, in step, in len) |
function | plotNormal (in self, in step, in len) |
function | save_clothoids (in self, in filename) |
function | saveClothoids (in self, in filename) |
Public Member Functions inherited from CurveBase | |
function | CurveBase (in mexName, in objectType) |
function | obj_handle (in self) |
function | is_type (in self) |
function | load (in self, in OBJ) |
function | bbox (in self, in varargin) |
function | translate (in self, in tx, in ty) |
function | trim (in self, in smin, in smax) |
function | rotate (in self, in angle, in cx, in cy) |
function | reverse (in self) |
function | scale (in self, in sc) |
function | change_origin (in self, in newX0, in newY0) |
function | changeOrigin (in self, in newX0, in newY0) |
function | evaluate (in self, in s, in varargin) |
function | eval (in self, in varargin) |
function | eval_D (in self, in varargin) |
function | eval_DD (in self, in varargin) |
function | eval_DDD (in self, in varargin) |
function | theta (in self, in s) |
function | theta_D (in self, in s) |
function | theta_DD (in self, in s) |
function | theta_DDD (in self, in s) |
function | kappa (in self, in s) |
function | kappa_D (in self, in s) |
function | kappa_DD (in self, in s) |
function | xy_begin (in self) |
function | xyBegin (in self) |
function | xy_end (in self) |
function | xyEnd (in self) |
function | x_begin (in self) |
function | xBegin (in self) |
function | x_end (in self) |
function | xEnd (in self) |
function | y_begin (in self) |
function | yBegin (in self) |
function | y_end (in self) |
function | yEnd (in self) |
function | theta_begin (in self) |
function | thetaBegin (in self) |
function | theta_end (in self) |
function | thetaEnd (in self) |
function | kappa_begin (in self) |
function | kappaBegin (in self) |
function | kappa_end (in self) |
function | kappaEnd (in self) |
function | length (in self, in varargin) |
function | points (in self) |
function | bbTriangles (in self, in varargin) |
function | closest_point (in self, in qx, in qy, in varargin) |
function | closestPoint (in self, in qx, in qy, in varargin) |
function | distance (in self, in qx, in qy, in varargin) |
function | collision (in self, in OBJ, in varargin) |
function | intersect (in self, in OBJ, in varargin) |
function | info (in self) |
function | find_coord (in self, in x, in y) |
function | yesAABBtree (in self) |
function | noAABBtree (in self) |
function | plot_tbox (in self, in P1, in P2, in P3, in varargin) |
function | plotTBox (in self, in P1, in P2, in P3, in varargin) |
function | plot_bbox (in self, in varargin) |
function | plotBBox (in self, in varargin) |
function | plot_triangles (in self, in varargin) |
function | plotTriangles (in self, in varargin) |
Additional Inherited Members | |
Protected Member Functions inherited from CurveBase | |
function | copyElement (in self) |
Protected Attributes inherited from CurveBase | |
Property | mexName |
Property | objectHandle |
Property | call_delete |
Property | objectType |
Constructor & Destructor Documentation
◆ ClothoidList()
function ClothoidList::ClothoidList | ( | ) |
Create a new C++ class instance for the clothoid list object
Usage:
On output:
ref
: reference handle to the object instance
Member Function Documentation
◆ append()
function ClothoidList::append | ( | in | self, |
in | lst ) |
Append a curve to a clothoid list.
◆ build()
function ClothoidList::build | ( | in | self, |
in | x0, | ||
in | y0, | ||
in | theta0, | ||
in | s, | ||
in | kappa ) |
Given a list of curvilinear coordinated and curvatures at nodes build a G2 clothoid list. Initial position and angle must be set to determine a unique clothoid list.
x0
initial x-coordinatesy0
initial y-coordinates at nodestheta0
initial angles
list of curvilinear coordinateskappa
list of curvatures at nodes
◆ build_G1()
function ClothoidList::build_G1 | ( | in | self, |
in | x, | ||
in | y, | ||
in | varargin ) |
Given a list of xy-coordinates at node points build a clothoid list. If third argument (angle
) is not present angles are estimated internally.
x
x-coordinates at nodesy
y-coordinates at nodestheta
angle at nodes
◆ build_theta()
function ClothoidList::build_theta | ( | in | self, |
in | x, | ||
in | y ) |
Given a list of xy-coordinates at node points build a guess of angles for the clothoid list.
x
x-coordinates at nodesy
y-coordinates at nodes
◆ closest_point_in_s_range()
function ClothoidList::closest_point_in_s_range | ( | in | self, |
in | qx, | ||
in | qy, | ||
in | s_begin, | ||
in | s_end, | ||
in | varargin ) |
Find closest point of a Clothoid list given a s-range
◆ closestPointInRange()
function ClothoidList::closestPointInRange | ( | in | self, |
in | qx, | ||
in | qy, | ||
in | ibegin, | ||
in | iend, | ||
in | varargin ) |
- Deprecated
- whill be removed in future version
◆ closestPointInSRange()
function ClothoidList::closestPointInSRange | ( | in | self, |
in | qx, | ||
in | qy, | ||
in | s_begin, | ||
in | s_end, | ||
in | varargin ) |
- Deprecated
- whill be removed in future version
◆ export()
function ClothoidList::export | ( | in | self | ) |
Export list of clothoids
Usage:
S.x0
: vector of initial point x-coordinateS.y0
: vector of initial point y-coordinateS.theta0
: vector of initial anglesS.kappa0
: vector of initial curvaturesS.dkappa
: vector of curvature derivative of the segmentsS.L
: vector of segment length
◆ get()
function ClothoidList::get | ( | in | self, |
in | k ) |
Get the clothoid at position k
. The clothoid is returned as a clothoid object or the data defining the clothoid.
◆ get_STK()
function ClothoidList::get_STK | ( | in | self | ) |
Return curvilinear coordinates, angle and curvature at node point for the clothoid list
s
curvilinear coordinates nodestheta
angles at nodeskappa
curvature at nodes
◆ get_XY()
function ClothoidList::get_XY | ( | in | self | ) |
Return xy-coordinates at node points for the clothoid list
x
x-coordinates at nodesy
y-coordinates at nodes
◆ load()
function ClothoidList::load | ( | in | self, |
in | varargin ) |
Load the clothoid list from a file (check consistency of the readed segments)
Usage:
filename
: file name to be read tol
: tolerance used to check consistency
◆ numSegments()
function ClothoidList::numSegments | ( | in | self | ) |
- Deprecated
- whill be removed in future version
◆ plot()
function ClothoidList::plot | ( | in | self, |
in | varargin ) |
Plot the clothoid list
Usage:
npts
: number of sampling points for plottingfmt1
: format of the odd clothoidsfmt2
: format of the even clothoids
◆ plot_angle()
function ClothoidList::plot_angle | ( | in | self, |
in | npts, | ||
in | varargin ) |
Plot the angle of the clothoid list
Usage:
npts
: number of sampling points for plottingfmt1
: format of the first arcfmt2
: format of the second arc
◆ plot_curvature()
function ClothoidList::plot_curvature | ( | in | self, |
in | npts, | ||
in | varargin ) |
Plot the curvature of the clothoid list
Usage:
npts
: number of sampling points for plottingfmt1
: format of the first arcfmt2
: format of the second arc
◆ plot_normal()
function ClothoidList::plot_normal | ( | in | self, |
in | step, | ||
in | len ) |
Plot the normal of the clothoid list
Usage:
step
: number of sampling normalslen
: length of the plotted normal
◆ plot_offs()
function ClothoidList::plot_offs | ( | in | self, |
in | offs, | ||
in | npts, | ||
in | varargin ) |
Plot the clothoid list with offset
Usage:
npts
: number of sampling points for plottingfmt1
: format of the first arcfmt2
: format of the second arcoffs
: offset used in the plotting
◆ plotAngle()
function ClothoidList::plotAngle | ( | in | self, |
in | npts, | ||
in | varargin ) |
- Deprecated
- whill be removed in future version
◆ plotCurvature()
function ClothoidList::plotCurvature | ( | in | self, |
in | npts, | ||
in | varargin ) |
- Deprecated
- whill be removed in future version
◆ plotNormal()
function ClothoidList::plotNormal | ( | in | self, |
in | step, | ||
in | len ) |
- Deprecated
- whill be removed in future version
◆ push_back()
function ClothoidList::push_back | ( | in | self, |
in | varargin ) |
Append a curve to the clothoid list
Usage:
Mode 1
obj
: curve to be appended can be one of
Mode 2
kappa0
: initial curvature of the appended clothoiddkappa
: derivative of the curvature of the appended clothoidL
: length of the the appended clothoid
Mode 3
x0
,y0
: initial position of the appended clothoid, the builded clothoid will be translated to the and of the actual clothoid listtheta0
: initial curvature of the appended clothoidkappa0
: initial curvature of the appended clothoiddkappa
: derivative of the curvature of the appended clothoidL
: length of the the appended clothoid
◆ push_back_G1()
function ClothoidList::push_back_G1 | ( | in | self, |
in | varargin ) |
Append a curve to the clothoid list
Usage:
Mode 1
Build a clothoid arc using final point and angle of the clothoid list and
x1
,y1
: final pointtheta1
: final angle
the builded clothoid is appended to the list
Mode 2
Build a clothoid arc using the data
x0
,y0
: initial pointtheta0
: initial anglex1
,y1
: final pointtheta1
: final angle
the builded clothoid is appended to the list
◆ reserve()
function ClothoidList::reserve | ( | in | self, |
in | N ) |
Reserve memory for N
segments
Usage:
◆ save()
function ClothoidList::save | ( | in | self, |
in | fname ) |
Save the clothoid list to a file
◆ save_clothoids()
function ClothoidList::save_clothoids | ( | in | self, |
in | filename ) |
Save the clothoid list sampled on a file
Usage:
filename
: file nameds
: sample point everyds
the file is of the form .. code-block:: text
X Y THETA 0 0 1.2 ... ...
{matlab}
ref.saveClothoids( filename, ds );
◆ saveClothoids()
function ClothoidList::saveClothoids | ( | in | self, |
in | filename ) |
- Deprecated
- whill be removed in future version
The documentation for this class was generated from the following file:
- /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Clothoids/toolbox/lib/ClothoidList.m
Generated by 1.12.0