Defines | Enumerations | Functions
RNDF.cc File Reference
#include <cstdio>
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <art/conversions.h>
#include <art_msgs/ArtVehicle.h>
#include <art/epsilon.h>
#include <art_map/RNDF.h>
Include dependency graph for RNDF.cc:

Go to the source code of this file.

Defines

#define DEFAULT_LANE_SPEED   mph2mps(30)
#define DEFAULT_LANE_WIDTH   (art_msgs::ArtVehicle::width+1)
#define DEFAULT_SPOT_WIDTH   (art_msgs::ArtVehicle::width+1)

Enumerations

enum  MDF_PARSE_STATE {
  MDF_COMMENT, MDF_GENERAL, MDF_CHECKPOINTS, MDF_SPEEDLIMITS,
  MDF_UNKNOWN
}
enum  RNDF_PARSE_STATE {
  COMMENT, GENERAL, SEGMENTS, LANES,
  ZONES, PERIMETER, PARKING_SPOT, UNKNOWN
}

Functions

template<class T >
void change_state (T &previous_state, T &current_state, const T new_state)
void checkpoint_error (int seg, int lane, int way)
void exit_error (Exit &ex)
int parse_integer (std::string line, std::string token, int line_number, bool &valid, bool verbose)
int parse_integer (std::string line, int line_number, bool &valid, bool verbose)
std::string parse_string (std::string line, std::string token, int line_number, bool &valid, bool verbose)
void print_error_message (int line_number, std::string token)
template<class T >
void print_vector (std::vector< T > vec)
void stop_error (int seg, int lane, int way)

Define Documentation

#define DEFAULT_LANE_SPEED   mph2mps(30)

Definition at line 19 of file RNDF.cc.

Definition at line 17 of file RNDF.cc.

Definition at line 18 of file RNDF.cc.


Enumeration Type Documentation

Enumerator:
MDF_COMMENT 
MDF_GENERAL 
MDF_CHECKPOINTS 
MDF_SPEEDLIMITS 
MDF_UNKNOWN 

Definition at line 24 of file RNDF.cc.

Enumerator:
COMMENT 
GENERAL 
SEGMENTS 
LANES 
ZONES 
PERIMETER 
PARKING_SPOT 
UNKNOWN 

Definition at line 21 of file RNDF.cc.


Function Documentation

template<class T >
void change_state ( T &  previous_state,
T &  current_state,
const T  new_state 
)

Definition at line 28 of file RNDF.cc.

void checkpoint_error ( int  seg,
int  lane,
int  way 
)

Definition at line 1306 of file RNDF.cc.

void exit_error ( Exit ex)

Definition at line 1290 of file RNDF.cc.

int parse_integer ( std::string  line,
std::string  token,
int  line_number,
bool valid,
bool  verbose 
)

Definition at line 740 of file RNDF.cc.

int parse_integer ( std::string  line,
int  line_number,
bool valid,
bool  verbose 
)

Definition at line 755 of file RNDF.cc.

std::string parse_string ( std::string  line,
std::string  token,
int  line_number,
bool valid,
bool  verbose 
)

Definition at line 725 of file RNDF.cc.

void print_error_message ( int  line_number,
std::string  token 
)

Definition at line 1312 of file RNDF.cc.

template<class T >
void print_vector ( std::vector< T >  vec)

Definition at line 915 of file RNDF.cc.

void stop_error ( int  seg,
int  lane,
int  way 
)

Definition at line 1300 of file RNDF.cc.



art_map
Author(s): David Li, Patrick Beeson, Bartley Gillen, Tarun Nimmagadda, Mickey Ristroph, Michael Quinlan, Jack O'Quin
autogenerated on Fri Jan 3 2014 11:08:34