Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
common_lib::structures Namespace Reference

Classes

struct  Cone
 
struct  ControlCommand
 
struct  Midpoint
 MidPoint struct represents a potential path point with connections. More...
 
struct  PathPoint
 
struct  Pose
 Struct for pose representation. More...
 
struct  Position
 
struct  VehiclePose
 
struct  VehicleState
 
struct  Velocities
 

Enumerations

enum class  TrackSide { RIGHT = 0 , LEFT = 1 }
 define enum for right and left sides of the track. More...
 

Functions

double cross_product (const Position &p1, const Position &p2, const Position &p3)
 Calculate the cross product of two vectors.
 
double euclidean_distance (const Position &p1, const Position &p2)
 
bool operator< (const Position &lhs, const Position &rhs)
 

Enumeration Type Documentation

◆ TrackSide

define enum for right and left sides of the track.

Coherent with previous implementation that matched [true] to left and [false] to right

Enumerator
RIGHT 
LEFT 

Definition at line 10 of file track_side.hpp.

Function Documentation

◆ cross_product()

double common_lib::structures::cross_product ( const Position p1,
const Position p2,
const Position p3 
)

Calculate the cross product of two vectors.

Parameters
P1- Origin of the vector
P2- End of the vector
P3- Point to calculate the cross product
Returns
double

Definition at line 18 of file position.cpp.

Here is the caller graph for this function:

◆ euclidean_distance()

double common_lib::structures::euclidean_distance ( const Position p1,
const Position p2 
)

Definition at line 22 of file position.cpp.

◆ operator<()

bool common_lib::structures::operator< ( const Position lhs,
const Position rhs 
)

Definition at line 14 of file position.cpp.