rndf_lane_util.H File Reference

#include "data_type.H"
#include "rndf.H"
#include "world_state.H"
#include <string>

Go to the source code of this file.

Namespaces

namespace  cajun

Defines

#define INVALID_HEADING   -10000

Functions

unsigned cajun::find_boundary_index_after_point (rndf_lane_data_t const &lb_, unsigned start_ind_, double x_, double y_, double &lx_, double &ly_, double &dis_from_lane_, double dis_off_, double dis_before_=1, double dis_after_=1, bool debug=false)
 Returns index to the pt in lane boundary just FOLLOWING x_, y_. If point not within lane boundary, then returns lb's num_points + 1. (lx_, ly_) are position of the (x_, y_) on the lane.
bool cajun::find_look_ahead_point (rndf_lane_data_t const &lb_, double x_, double y_, double &lad_, double &lx_, double &ly_, unsigned &wi_, double width_factor_)
bool cajun::find_xtrack_from_lane (rndf_lane_data_t const &lb_, double x_, double y_, double width_factor_, double &xtrack_dis_)
bool cajun::find_look_behind_point (rndf_lane_data_t const &lb_, double x_, double y_, double &lad_, double &lx_, double &ly_, unsigned &wi_, double width_factor_)
void cajun::get_filename_for_wp_pair (unsigned start_sid, unsigned start_lid, unsigned start_wid, unsigned end_sid, unsigned end_lid, unsigned end_wid, std::string &filename_)
 Returns the filename for storing lane boundary for lane segment starting form given (si, li, wi) waypoint.
bool cajun::get_linear_rndf_lanes (std::vector< rndf_lane_data_t > &lane_list_, rndf_t const *rndf_, double interp_dis_)
void cajun::get_lane_from_files (std::vector< rndf_lane_data_t > &lane_list_, std::string lane_data_dir_, rndf_t const *rndf_, double interp_dis_)
bool cajun::get_lanes_around (world_state_t *ws_, double x_, double y_, std::vector< rndf_lane_data_t > &lane_list, double rad_)
 Returns list of rndf lane boundary lane segments around given (x, y), within given radius rad_.
void cajun::print_rndf_lane (rndf_lane_data_t const &lane_)
void cajun::print_rndf_lane (std::vector< rndf_lane_data_t > const &lanes_)
void cajun::classify_lanes (std::vector< rndf_lane_data_t > const &rndf_lanes_, std::vector< rndf_lane_data_t > &regular_lanes_, std::vector< rndf_lane_data_t > &intersection_lanes_)
bool cajun::map_onto_rndf_lane (world_state_t *ws_, rndf_lane_data_t &lane_, double x_, double y_, double width_multiplier_, double bubble_rad_, double first_lane_seg_dis_before_, double dis_after_, double at_heading=INVALID_HEADING)
 Find the list of rndf lanes near x_,y_ and tries to map (x_,y_) on the these lanes and if successful returns true along with best fit rndf_lane.
bool cajun::map_onto_classified_lanes (double x_, double y_, std::vector< rndf_lane_data_t > const &rndf_lanes_, rndf_lane_data_t &best_lane_, std::vector< unsigned > &all_lane_indexes_, double width_multiplier_, double dis_before_, double dis_after_, double at_heading_=INVALID_HEADING)
bool cajun::map_onto_rndf_lane_from_lanes (world_state_t *ws_, unsigned sid_, std::vector< unsigned > const &lid_list, unsigned &best_lid_, unsigned &wid_, double x_, double y_, double width_multiplier_, double bubble_rad_, double dis_after_)
bool cajun::map_onto_all_rndf_lane (world_state_t *ws_, std::vector< rndf_lane_data_t > &mapped_lane_list_, double x_, double y_, double width_multiplier_, double bubble_rad_, double dis_after_)
bool cajun::map_onto_given_rndf_lanes (double x_, double y_, std::vector< rndf_lane_data_t > const &rndf_lanes_, rndf_lane_data_t &best_lane_, std::vector< unsigned > &all_lane_indexes_, double width_multiplier_, double dis_before_, double dis_after_, double at_heading=INVALID_HEADING)
bool cajun::map_onto_rndf_lane_segment (world_state_t *ws_, rndf_t const *rndf_, double x_, double y_, unsigned sid_, unsigned lid_, unsigned &wid_, double max_dis_off_, double first_lane_dis_before_, double last_lane_dis_after_)
 maps xy on to a lane segment, returns TRUE if could map onto some lane segment on given lane, else return FALSE
double cajun::distance_between_points (world_state_t *ws_, unsigned sid_, unsigned lid_, double x1_, double y1_, unsigned wid1_, double x2_, double y2_, unsigned wid2_)
double cajun::dis_along_rndf_lane (rndf_lane_data_t const &lb_, unsigned si_, unsigned ei_)
 Returns distance between si and ei along the lane boundary.
double cajun::rndf_lane_pre_dis (rndf_lane_data_t const &lb_, double first_lane_dis_before_)
double cajun::rndf_lane_post_dis (rndf_lane_data_t const &lb_, rndf_t const *rndf_, double last_lane_dis_after_)
double cajun::rndf_lane_heading_at (rndf_lane_data_t const &lb_, unsigned id_)
 Computes the orientation of the lane at given index of lane boundary data.
double cajun::distance_along_lane (rndf_lane_data_t const &lb_, double x1_, double y1_, double x2_, double y2_, double width_factor_)
double cajun::rndf_length_between (rndf_lane_data_t const &lb, unsigned start_i_, unsigned end_i_)

Define Documentation

#define INVALID_HEADING   -10000

Generated on Fri Apr 9 10:45:16 2010 for uc_util by  doxygen 1.6.1