#include <sumotls2ros.h>
Classes | |
struct | hash_pair |
Public Member Functions | |
std::unordered_map< int, adore_v2x_sim::SimMAPEM > | getMAPEMFromSUMO (double time, double power=23) |
std::vector< adore_v2x_sim::SimSPATEM > | getSPATEMFromSUMO (double time, double power=23) |
int | getIntersectionIDForSUMOString (std::string sumo_intersection_id) |
std::string | getSUMOStringFromIntersectionID (int intersection_id) |
SumoTLs2Ros () | |
Public Attributes | |
int | utm_zone_ |
bool | is_south_hemi_ |
bool | _use_system_time |
bool | _generate_spat_timing |
Private Member Functions | |
std::vector< adore::sumo_if_ros::Coordinate > | getNodesFromSUMOLane (libsumo::TraCIPositionVector &lane, int nodeCount=5) |
void | getGeoreferencedLinks (std::string sumoIntersectionID, std::unordered_map< std::string, std::vector< std::string >> &linklist, std::unordered_map< std::string, std::vector< adore::sumo_if_ros::Coordinate >> &id_2_shape) |
void | autofill_bit_string (std::size_t size, std::vector< uint8_t > &items) |
std::unordered_map< std::string, adore::sumo_if_ros::MAPEMIntersection > | generateMAPEMFromSUMO () |
std::unordered_map< int, adore_v2x_sim::SimMAPEM > | convertToROSMsg (std::unordered_map< std::string, adore::sumo_if_ros::MAPEMIntersection > mapem_data, double time=0, double power=23) |
double | wgs84_distance (double lat1, double lon1, double lat2, double lon2) |
double | getSystemTime () |
int32_t | getMOY (double time) |
int | getLeapYearSeconds (double time) |
double | getSecondOfYearFromUTC (double time) |
Private Attributes | |
std::unordered_map< std::string, uint8_t > | sumo_lane_id_mapping_ |
std::unordered_map< std::string, int > | sumo_intersection_id_mapping_ |
std::unordered_map< std::string, adore::sumo_if_ros::MAPEMIntersection > | intersections_ |
std::unordered_map< int, adore_v2x_sim::SimMAPEM > | _MAPEM |
std::unordered_map< std::pair< std::string, std::string >, uint8_t, SumoTLs2Ros::hash_pair > | sumo_signal_group_id_mapping_ |
generates MAPEM and SPATEM messages from sumo simulation
|
inline |
|
private |
|
private |
|
private |
|
private |
int SumoTLs2Ros::getIntersectionIDForSUMOString | ( | std::string | sumo_intersection_id | ) |
|
private |
std::unordered_map< int, adore_v2x_sim::SimMAPEM > SumoTLs2Ros::getMAPEMFromSUMO | ( | double | time, |
double | power = 23 |
||
) |
|
private |
|
private |
|
private |
std::vector< adore_v2x_sim::SimSPATEM > SumoTLs2Ros::getSPATEMFromSUMO | ( | double | time, |
double | power = 23 |
||
) |
std::string SumoTLs2Ros::getSUMOStringFromIntersectionID | ( | int | intersection_id | ) |
|
private |
|
private |
bool adore::sumo_if_ros::SumoTLs2Ros::_generate_spat_timing |
|
private |
bool adore::sumo_if_ros::SumoTLs2Ros::_use_system_time |
|
private |
bool adore::sumo_if_ros::SumoTLs2Ros::is_south_hemi_ |
|
private |
|
private |
|
private |
int adore::sumo_if_ros::SumoTLs2Ros::utm_zone_ |