Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
guiLogic.guiLogic Class Reference
Collaboration diagram for guiLogic.guiLogic:
Collaboration graph

Public Member Functions

 __init__ (self, *args, **kwargs)
 
 lineseg_dists (self, p, a, b)
 
 getClosestInd (self, point, list)
 
 getMinTrackWidth (self)
 
 getTrackLength (self)
 
 getMaxLaneDistance (self)
 
 getCurvature (self, point1, point2, point3)
 
 getMinOuterRadius (self)
 
 readMapFile (self, path)
 
 drawCones (self)
 
 writeMapFile (self, path)
 

Public Attributes

 editorMode
 
 landmarkType
 
 graphicsView
 
 cones
 
 coneColorMap
 
 lanesConnectionLeft
 
 lanesConnectionRight
 
 timeKeepingGates
 
 startPosition
 
 startOrientation
 
 originGeodeticCoordinates
 
 originENURotation
 

Detailed Description

Definition at line 22 of file guiLogic.py.

Constructor & Destructor Documentation

◆ __init__()

guiLogic.guiLogic.__init__ (   self,
args,
**  kwargs 
)

Definition at line 23 of file guiLogic.py.

Member Function Documentation

◆ drawCones()

guiLogic.guiLogic.drawCones (   self)

Definition at line 218 of file guiLogic.py.

◆ getClosestInd()

guiLogic.guiLogic.getClosestInd (   self,
  point,
  list 
)

Definition at line 70 of file guiLogic.py.

Here is the caller graph for this function:

◆ getCurvature()

guiLogic.guiLogic.getCurvature (   self,
  point1,
  point2,
  point3 
)

Definition at line 142 of file guiLogic.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMaxLaneDistance()

guiLogic.guiLogic.getMaxLaneDistance (   self)

Definition at line 124 of file guiLogic.py.

◆ getMinOuterRadius()

guiLogic.guiLogic.getMinOuterRadius (   self)

Definition at line 159 of file guiLogic.py.

Here is the call graph for this function:

◆ getMinTrackWidth()

guiLogic.guiLogic.getMinTrackWidth (   self)

Definition at line 80 of file guiLogic.py.

Here is the call graph for this function:

◆ getTrackLength()

guiLogic.guiLogic.getTrackLength (   self)

Definition at line 106 of file guiLogic.py.

◆ lineseg_dists()

guiLogic.guiLogic.lineseg_dists (   self,
  p,
  a,
  b 
)
Cartesian distance from point to line segment

Edited to support arguments as series, from:
https://stackoverflow.com/a/54442561/11208892

Args:
    - p: np.array of single point, shape (2,) or 2D array, shape (x, 2)
    - a: np.array of shape (x, 2)
    - b: np.array of shape (x, 2)

Definition at line 39 of file guiLogic.py.

Here is the caller graph for this function:

◆ readMapFile()

guiLogic.guiLogic.readMapFile (   self,
  path 
)

Definition at line 182 of file guiLogic.py.

Here is the call graph for this function:

◆ writeMapFile()

guiLogic.guiLogic.writeMapFile (   self,
  path 
)

Definition at line 222 of file guiLogic.py.

Here is the call graph for this function:

Member Data Documentation

◆ coneColorMap

guiLogic.guiLogic.coneColorMap

Definition at line 28 of file guiLogic.py.

◆ cones

guiLogic.guiLogic.cones

Definition at line 27 of file guiLogic.py.

◆ editorMode

guiLogic.guiLogic.editorMode

Definition at line 24 of file guiLogic.py.

◆ graphicsView

guiLogic.guiLogic.graphicsView

Definition at line 26 of file guiLogic.py.

◆ landmarkType

guiLogic.guiLogic.landmarkType

Definition at line 25 of file guiLogic.py.

◆ lanesConnectionLeft

guiLogic.guiLogic.lanesConnectionLeft

Definition at line 29 of file guiLogic.py.

◆ lanesConnectionRight

guiLogic.guiLogic.lanesConnectionRight

Definition at line 30 of file guiLogic.py.

◆ originENURotation

guiLogic.guiLogic.originENURotation

Definition at line 36 of file guiLogic.py.

◆ originGeodeticCoordinates

guiLogic.guiLogic.originGeodeticCoordinates

Definition at line 35 of file guiLogic.py.

◆ startOrientation

guiLogic.guiLogic.startOrientation

Definition at line 33 of file guiLogic.py.

◆ startPosition

guiLogic.guiLogic.startPosition

Definition at line 32 of file guiLogic.py.

◆ timeKeepingGates

guiLogic.guiLogic.timeKeepingGates

Definition at line 31 of file guiLogic.py.


The documentation for this class was generated from the following file: