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

Functions

void cone_vector_to_eigen (const std::vector< common_lib::structures::Cone > &cones, Eigen::VectorXd &positions, Eigen::VectorXd &confidences)
 Convert vector of the struct common_lib::structures::Cone to Eigen vectors.
 

Function Documentation

◆ cone_vector_to_eigen()

void common_lib::conversions::cone_vector_to_eigen ( const std::vector< common_lib::structures::Cone > &  cones,
Eigen::VectorXd &  positions,
Eigen::VectorXd &  confidences 
)

Convert vector of the struct common_lib::structures::Cone to Eigen vectors.

Parameters
conesinput cones
positionsoutput vector of the positions of cones in the format [x1, y1, x2, y2, ...]
confidencesconfidence associated with each cone

Definition at line 3 of file cones.cpp.

Here is the caller graph for this function: