cajun::lane_file_loader_t Class Reference
#include <lane_file_loader.H>
List of all members.
Public Member Functions |
| lane_file_loader_t (rndf_t const *rndf_, std::string lane_data_dir_, double interp_dis_) |
bool | load_boundary_files (std::vector< rndf_lane_data_t > &lane_list_) |
Private Member Functions |
void | sample_lane_data (std::ifstream &infile_, rndf_t::lane_t &lane_, rndf_t::waypoint_id_t const &start_id, rndf_t::waypoint_id_t const &end_id, rndf_lane_data_t &lane_data_) |
| Reads lane boundary from given file and samples the points to select point at certain distance apart.
|
bool | seg_from_wp_pair (rndf_t::waypoint_id_t start_id, rndf_t::waypoint_id_t end_id, rndf_t::lane_t &lane, rndf_lane_data_t &lane_data_) |
| Determines filename of lane boundary opens the file, if file does not exist returns false, else returns lan_data_ filled with lane data.
|
void | seg_from_wp (std::vector< rndf_lane_data_t > &lane_list_, rndf_t::waypoint_id_t wp_id) |
| Adds lane boundary information for all lanes starting from waypoint wp_id with lane boundary points in the file.
|
Private Attributes |
rndf_t const * | m_rndf |
std::string | m_lane_data_dir |
double | m_interp_dis |
Constructor & Destructor Documentation
cajun::lane_file_loader_t::lane_file_loader_t |
( |
rndf_t const * |
rndf_, |
|
|
std::string |
lane_data_dir_, |
|
|
double |
interp_dis_ | |
|
) |
| | [inline] |
Member Function Documentation
bool cajun::lane_file_loader_t::load_boundary_files |
( |
std::vector< rndf_lane_data_t > & |
lane_list_ |
) |
|
void cajun::lane_file_loader_t::sample_lane_data |
( |
std::ifstream & |
infile_, |
|
|
rndf_t::lane_t & |
lane_, |
|
|
rndf_t::waypoint_id_t const & |
start_id, |
|
|
rndf_t::waypoint_id_t const & |
end_id, |
|
|
rndf_lane_data_t & |
lane_data_ | |
|
) |
| | [private] |
Reads lane boundary from given file and samples the points to select point at certain distance apart.
Referenced by seg_from_wp_pair().
void cajun::lane_file_loader_t::seg_from_wp |
( |
std::vector< rndf_lane_data_t > & |
lane_list_, |
|
|
rndf_t::waypoint_id_t |
wp_id | |
|
) |
| | [private] |
Adds lane boundary information for all lanes starting from waypoint wp_id with lane boundary points in the file.
bool lane_file_loader_t::seg_from_wp_pair |
( |
rndf_t::waypoint_id_t |
start_id, |
|
|
rndf_t::waypoint_id_t |
end_id, |
|
|
rndf_t::lane_t & |
lane, |
|
|
rndf_lane_data_t & |
lane_data_ | |
|
) |
| | [private] |
Member Data Documentation
The documentation for this class was generated from the following files: