CARLA
Loading...
Searching...
No Matches
Namespaces | Functions
Profiles.cpp File Reference
#include "Profiles.h"
#include <algorithm>
#include <cctype>
#include <cstdlib>
#include <map>
#include <set>

Go to the source code of this file.

Namespaces

namespace  twinmodel
 

Functions

const ClassDefaults * twinmodel::FindClassDefaults (const std::string &highway)
 
bool twinmodel::IsDrivable (const std::string &highway)
 True when the way carries motor traffic and should become a Road.
 
std::optional< double > twinmodel::ParseMaxSpeed (const std::string &value)
 Parse an OSM maxspeed value into m/s; "50", "50 km/h" and "30 mph".
 
LaneProfile twinmodel::ResolveProfile (const std::string &highway, const Tags &tags)
 Resolve the lane layout from the way's tags, falling back to the class defaults.