21 #ifndef TraCIServerAPI_Vehicle_h 22 #define TraCIServerAPI_Vehicle_h 91 static std::map<std::string, std::vector<MSLane*> >
gVTDMap;
96 LaneUtility(
double dist_,
double angleDiff_,
bool ID_,
bool onRoute_,
bool sameEdge_,
const MSEdge* prevEdge_,
const MSEdge* nextEdge_) :
APIs for getting/setting vehicle values via TraCI.
Representation of a vehicle in the micro simulation.
static MSVehicleType & getSingularType(SUMOVehicle *const veh)
static std::map< std::string, std::vector< MSLane * > > gVTDMap
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc4: Change Vehicle State)
LaneUtility(double dist_, double angleDiff_, bool ID_, bool onRoute_, bool sameEdge_, const MSEdge *prevEdge_, const MSEdge *nextEdge_)
TraCIServerAPI_Vehicle & operator=(const TraCIServerAPI_Vehicle &s)
invalidated assignment operator
static bool getPosition(const std::string &id, Position &p)
Returns the named vehicle's position.
std::vector< const MSEdge * > ConstMSEdgeVector
The car-following model and parameter.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa4: Get Vehicle Variable)
A road/street connecting two junctions.
Representation of a vehicle.
A point in 2D or 3D with translation and scaling methods.
static bool vtdMap_matchingRoutePosition(const Position &pos, const std::string &origID, MSVehicle &v, double &bestDistance, MSLane **lane, double &lanePos, int &routeOffset, ConstMSEdgeVector &edges)
TraCI server used to control sumo by a remote TraCI client.
TraCIServerAPI_Vehicle(const TraCIServerAPI_Vehicle &s)
invalidated copy constructor
static bool vtdMap(const Position &pos, double maxRouteDistance, const std::string &origID, const double angle, MSVehicle &v, TraCIServer &server, double &bestDistance, MSLane **lane, double &lanePos, int &routeOffset, ConstMSEdgeVector &edges)
static bool findCloserLane(const MSEdge *edge, const Position &pos, double &bestDistance, MSLane **lane)
Representation of a lane in the micro simulation.