Eclipse SUMO - Simulation of Urban MObility
libsumo::Vehicle Class Reference

#include <Vehicle.h>

Collaboration diagram for libsumo::Vehicle:

Static Public Member Functions

static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static std::shared_ptr< VariableWrappermakeWrapper ()
 
static void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container. More...
 
LIBSUMO_VEHICLE_TYPE_SETTER static LIBSUMO_SUBSCRIPTION_API void subscribeLeader (const std::string &vehicleID, double dist=0., double beginTime=libsumo::INVALID_DOUBLE_VALUE, double endTime=libsumo::INVALID_DOUBLE_VALUE)
 
Value retrieval
static std::vector< std::string > getIDList ()
 
static int getIDCount ()
 
static double getSpeed (const std::string &vehicleID)
 
static double getLateralSpeed (const std::string &vehicleID)
 
static double getAcceleration (const std::string &vehicleID)
 
static double getSpeedWithoutTraCI (const std::string &vehicleID)
 
static TraCIPosition getPosition (const std::string &vehicleID, const bool includeZ=false)
 
static TraCIPosition getPosition3D (const std::string &vehicleID)
 
static double getAngle (const std::string &vehicleID)
 
static double getSlope (const std::string &vehicleID)
 
static std::string getRoadID (const std::string &vehicleID)
 
static std::string getLaneID (const std::string &vehicleID)
 
static int getLaneIndex (const std::string &vehicleID)
 
static std::string getTypeID (const std::string &vehicleID)
 
static std::string getRouteID (const std::string &vehicleID)
 
static int getRouteIndex (const std::string &vehicleID)
 
static double getLanePosition (const std::string &vehicleID)
 
static double getLateralLanePosition (const std::string &vehicleID)
 
static double getCO2Emission (const std::string &vehicleID)
 
static double getCOEmission (const std::string &vehicleID)
 
static double getHCEmission (const std::string &vehicleID)
 
static double getPMxEmission (const std::string &vehicleID)
 
static double getNOxEmission (const std::string &vehicleID)
 
static double getFuelConsumption (const std::string &vehicleID)
 
static double getNoiseEmission (const std::string &vehicleID)
 
static double getElectricityConsumption (const std::string &vehicleID)
 
static int getPersonNumber (const std::string &vehicleID)
 
static std::vector< std::string > getPersonIDList (const std::string &vehicleID)
 
static std::pair< std::string, double > getLeader (const std::string &vehicleID, double dist=0.)
 
static double getWaitingTime (const std::string &vehicleID)
 
static double getAccumulatedWaitingTime (const std::string &vehicleID)
 
static double getAdaptedTraveltime (const std::string &vehicleID, double time, const std::string &edgeID)
 
static double getEffort (const std::string &vehicleID, double time, const std::string &edgeID)
 
static bool isRouteValid (const std::string &vehicleID)
 
static std::vector< std::string > getRoute (const std::string &vehicleID)
 
static int getSignals (const std::string &vehicleID)
 
static std::vector< TraCIBestLanesDatagetBestLanes (const std::string &vehicleID)
 
static std::vector< TraCINextTLSDatagetNextTLS (const std::string &vehicleID)
 
static std::vector< TraCINextStopDatagetNextStops (const std::string &vehicleID)
 
static int getStopState (const std::string &vehicleID)
 
static double getDistance (const std::string &vehicleID)
 
static double getDrivingDistance (const std::string &vehicleID, const std::string &edgeID, double position, int laneIndex=0)
 
static double getDrivingDistance2D (const std::string &vehicleID, double x, double y)
 
static double getAllowedSpeed (const std::string &vehicleID)
 
static int getSpeedMode (const std::string &vehicleID)
 
static int getLaneChangeMode (const std::string &vehicleID)
 
static int getRoutingMode (const std::string &vehicleID)
 
static std::string getLine (const std::string &vehicleID)
 
static std::vector< std::string > getVia (const std::string &vehicleID)
 
static std::pair< int, int > getLaneChangeState (const std::string &vehicleID, int direction)
 
static double getLastActionTime (const std::string &vehicleID)
 
static std::string getParameter (const std::string &vehicleID, const std::string &key)
 
static std::vector< std::pair< std::string, double > > getNeighbors (const std::string &vehicleID, const int mode)
 
State Changing
static void setStop (const std::string &vehicleID, const std::string &edgeID, double pos=1., int laneIndex=0, double duration=INVALID_DOUBLE_VALUE, int flags=STOP_DEFAULT, double startPos=INVALID_DOUBLE_VALUE, double until=INVALID_DOUBLE_VALUE)
 
static void rerouteParkingArea (const std::string &vehicleID, const std::string &parkingAreaID)
 
static void resume (const std::string &vehicleID)
 
static void add (const std::string &vehicleID, const std::string &routeID, const std::string &typeID="DEFAULT_VEHTYPE", const std::string &depart="now", const std::string &departLane="first", const std::string &departPos="base", const std::string &departSpeed="0", const std::string &arrivalLane="current", const std::string &arrivalPos="max", const std::string &arrivalSpeed="current", const std::string &fromTaz="", const std::string &toTaz="", const std::string &line="", int personCapacity=4, int personNumber=0)
 
static void changeTarget (const std::string &vehicleID, const std::string &edgeID)
 
static void changeLane (const std::string &vehicleID, int laneIndex, double duration)
 
static void changeLaneRelative (const std::string &vehicleID, int indexOffset, double duration)
 
static void changeSublane (const std::string &vehicleID, double latDist)
 
static void slowDown (const std::string &vehicleID, double speed, double duration)
 
static void openGap (const std::string &vehicleID, double newTimeHeadway, double newSpaceHeadway, double duration, double changeRate, double maxDecel=INVALID_DOUBLE_VALUE, const std::string &referenceVehID="")
 
static void deactivateGapControl (const std::string &vehicleID)
 
static void requestToC (const std::string &vehID, double leadTime)
 
static void setSpeed (const std::string &vehicleID, double speed)
 
static void setSpeedMode (const std::string &vehicleID, int speedMode)
 
static void setLaneChangeMode (const std::string &vehicleID, int laneChangeMode)
 
static void setRoutingMode (const std::string &vehicleID, int routingMode)
 
static void setType (const std::string &vehicleID, const std::string &typeID)
 
static void setRouteID (const std::string &vehicleID, const std::string &routeID)
 
static void setRoute (const std::string &vehicleID, const std::vector< std::string > &edgeIDs)
 
static void updateBestLanes (const std::string &vehicleID)
 
static void setAdaptedTraveltime (const std::string &vehicleID, const std::string &edgeID, double time=INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max())
 
static void setEffort (const std::string &vehicleID, const std::string &edgeID, double effort=INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max())
 
static void rerouteTraveltime (const std::string &vehicleID, const bool currentTravelTimes=true)
 
static void rerouteEffort (const std::string &vehicleID)
 
static void setSignals (const std::string &vehicleID, int signals)
 
static void moveTo (const std::string &vehicleID, const std::string &laneID, double position)
 
static void moveToXY (const std::string &vehicleID, const std::string &edgeID, const int laneIndex, const double x, const double y, double angle=INVALID_DOUBLE_VALUE, const int keepRoute=1)
 
static void remove (const std::string &vehicleID, char reason=REMOVE_VAPORIZED)
 
static void setLine (const std::string &vehicleID, const std::string &line)
 
static void setVia (const std::string &vehicleID, const std::vector< std::string > &via)
 
static void setParameter (const std::string &vehicleID, const std::string &key, const std::string &value)
 
static void highlight (const std::string &vehicleID, const TraCIColor &col, double size, const int alphaMax, const double duration, const int type)
 

Private Member Functions

 Vehicle ()=delete
 invalidated standard constructor More...
 

Static Private Member Functions

static bool isOnInit (const std::string &vehicleID)
 
static bool isVisible (const SUMOVehicle *veh)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 51 of file Vehicle.h.

Constructor & Destructor Documentation

◆ Vehicle()

libsumo::Vehicle::Vehicle ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ add()

void Vehicle::add ( const std::string &  vehicleID,
const std::string &  routeID,
const std::string &  typeID = "DEFAULT_VEHTYPE",
const std::string &  depart = "now",
const std::string &  departLane = "first",
const std::string &  departPos = "base",
const std::string &  departSpeed = "0",
const std::string &  arrivalLane = "current",
const std::string &  arrivalPos = "max",
const std::string &  arrivalSpeed = "current",
const std::string &  fromTaz = "",
const std::string &  toTaz = "",
const std::string &  line = "",
int  personCapacity = 4,
int  personNumber = 0 
)
static

Definition at line 977 of file Vehicle.cpp.

References libsumo::Route::add(), MSInsertionControl::add(), MSVehicleControl::addVehicle(), SUMOVehicleParameter::arrivalLane, SUMOVehicleParameter::arrivalLaneProcedure, SUMOVehicleParameter::arrivalPos, SUMOVehicleParameter::arrivalPosProcedure, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSVehicleControl::buildVehicle(), SUMOVehicleParameter::depart, DEPART_GIVEN, DEPART_NOW, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSRoute::dictionary(), EDGEFUNC_NORMAL, SUMOVehicleParameter::fromTaz, MSEdge::getAllEdges(), MSNet::getCurrentTimeStep(), MSRoute::getEdges(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicleControl::getVehicle(), MSVehicleType::getVehicleClass(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, SUMOVehicleParameter::line, SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::parseArrivalLane(), SUMOVehicleParameter::parseArrivalPos(), SUMOVehicleParameter::parseArrivalSpeed(), SUMOVehicleParameter::parseDepart(), SUMOVehicleParameter::parseDepartLane(), SUMOVehicleParameter::parseDepartPos(), SUMOVehicleParameter::parseDepartSpeed(), SUMOVehicleParameter::personNumber, SumoVehicleClassStrings, SUMOVehicleParameter::toTaz, VEHPARS_FORCE_REROUTE, and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

◆ changeLane()

void Vehicle::changeLane ( const std::string &  vehicleID,
int  laneIndex,
double  duration 
)
static

◆ changeLaneRelative()

void Vehicle::changeLaneRelative ( const std::string &  vehicleID,
int  indexOffset,
double  duration 
)
static

◆ changeSublane()

void Vehicle::changeSublane ( const std::string &  vehicleID,
double  latDist 
)
static

◆ changeTarget()

◆ deactivateGapControl()

void Vehicle::deactivateGapControl ( const std::string &  vehicleID)
static

◆ getAcceleration()

double Vehicle::getAcceleration ( const std::string &  vehicleID)
static

◆ getAccumulatedWaitingTime()

double Vehicle::getAccumulatedWaitingTime ( const std::string &  vehicleID)
static

◆ getAdaptedTraveltime()

double Vehicle::getAdaptedTraveltime ( const std::string &  vehicleID,
double  time,
const std::string &  edgeID 
)
static

◆ getAllowedSpeed()

double Vehicle::getAllowedSpeed ( const std::string &  vehicleID)
static

◆ getAngle()

double Vehicle::getAngle ( const std::string &  vehicleID)
static

◆ getBestLanes()

◆ getCO2Emission()

double Vehicle::getCO2Emission ( const std::string &  vehicleID)
static

◆ getCOEmission()

double Vehicle::getCOEmission ( const std::string &  vehicleID)
static

◆ getDistance()

◆ getDrivingDistance()

double Vehicle::getDrivingDistance ( const std::string &  vehicleID,
const std::string &  edgeID,
double  position,
int  laneIndex = 0 
)
static

◆ getDrivingDistance2D()

◆ getEffort()

double Vehicle::getEffort ( const std::string &  vehicleID,
double  time,
const std::string &  edgeID 
)
static

◆ getElectricityConsumption()

double Vehicle::getElectricityConsumption ( const std::string &  vehicleID)
static

◆ getFuelConsumption()

double Vehicle::getFuelConsumption ( const std::string &  vehicleID)
static

◆ getHCEmission()

double Vehicle::getHCEmission ( const std::string &  vehicleID)
static

◆ getIDCount()

int Vehicle::getIDCount ( )
static

Definition at line 96 of file Vehicle.cpp.

References getIDList().

Referenced by handleVariable().

◆ getIDList()

std::vector< std::string > Vehicle::getIDList ( )
static

◆ getLaneChangeMode()

int Vehicle::getLaneChangeMode ( const std::string &  vehicleID)
static

◆ getLaneChangeState()

std::pair< int, int > Vehicle::getLaneChangeState ( const std::string &  vehicleID,
int  direction 
)
static

◆ getLaneID()

std::string Vehicle::getLaneID ( const std::string &  vehicleID)
static

◆ getLaneIndex()

int Vehicle::getLaneIndex ( const std::string &  vehicleID)
static

◆ getLanePosition()

double Vehicle::getLanePosition ( const std::string &  vehicleID)
static

◆ getLastActionTime()

◆ getLateralLanePosition()

double Vehicle::getLateralLanePosition ( const std::string &  vehicleID)
static

◆ getLateralSpeed()

double Vehicle::getLateralSpeed ( const std::string &  vehicleID)
static

◆ getLeader()

std::pair< std::string, double > Vehicle::getLeader ( const std::string &  vehicleID,
double  dist = 0. 
)
static

◆ getLine()

std::string Vehicle::getLine ( const std::string &  vehicleID)
static

◆ getNeighbors()

◆ getNextStops()

◆ getNextTLS()

◆ getNoiseEmission()

double Vehicle::getNoiseEmission ( const std::string &  vehicleID)
static

◆ getNOxEmission()

double Vehicle::getNOxEmission ( const std::string &  vehicleID)
static

◆ getParameter()

◆ getPersonIDList()

std::vector< std::string > Vehicle::getPersonIDList ( const std::string &  vehicleID)
static

Definition at line 274 of file Vehicle.cpp.

References MSBaseVehicle::getPersonIDList(), and libsumo::Helper::getVehicle().

Referenced by handleVariable().

◆ getPersonNumber()

int Vehicle::getPersonNumber ( const std::string &  vehicleID)
static

◆ getPMxEmission()

double Vehicle::getPMxEmission ( const std::string &  vehicleID)
static

◆ getPosition()

TraCIPosition Vehicle::getPosition ( const std::string &  vehicleID,
const bool  includeZ = false 
)
static

◆ getPosition3D()

TraCIPosition Vehicle::getPosition3D ( const std::string &  vehicleID)
static

Definition at line 139 of file Vehicle.cpp.

References getPosition().

◆ getRoadID()

std::string Vehicle::getRoadID ( const std::string &  vehicleID)
static

◆ getRoute()

std::vector< std::string > Vehicle::getRoute ( const std::string &  vehicleID)
static

◆ getRouteID()

std::string Vehicle::getRouteID ( const std::string &  vehicleID)
static

Definition at line 186 of file Vehicle.cpp.

References Named::getID(), MSBaseVehicle::getRoute(), and libsumo::Helper::getVehicle().

Referenced by handleVariable().

◆ getRouteIndex()

int Vehicle::getRouteIndex ( const std::string &  vehicleID)
static

◆ getRoutingMode()

int Vehicle::getRoutingMode ( const std::string &  vehicleID)
static

◆ getSignals()

int Vehicle::getSignals ( const std::string &  vehicleID)
static

Definition at line 342 of file Vehicle.cpp.

References MSVehicle::getSignals(), and libsumo::Helper::getVehicle().

Referenced by handleVariable().

◆ getSlope()

double Vehicle::getSlope ( const std::string &  vehicleID)
static

◆ getSpeed()

double Vehicle::getSpeed ( const std::string &  vehicleID)
static

◆ getSpeedMode()

int Vehicle::getSpeedMode ( const std::string &  vehicleID)
static

◆ getSpeedWithoutTraCI()

double Vehicle::getSpeedWithoutTraCI ( const std::string &  vehicleID)
static

◆ getStopState()

◆ getTypeID()

std::string Vehicle::getTypeID ( const std::string &  vehicleID)
static

◆ getVia()

std::vector< std::string > Vehicle::getVia ( const std::string &  vehicleID)
static

◆ getWaitingTime()

double Vehicle::getWaitingTime ( const std::string &  vehicleID)
static

Definition at line 293 of file Vehicle.cpp.

References libsumo::Helper::getVehicle(), and MSVehicle::getWaitingSeconds().

Referenced by handleVariable().

◆ handleVariable()

bool Vehicle::handleVariable ( const std::string &  objID,
const int  variable,
VariableWrapper wrapper 
)
static

Definition at line 1759 of file Vehicle.cpp.

References libsumo::TraCIRoadPosition::edgeID, getAcceleration(), getAccumulatedWaitingTime(), getAllowedSpeed(), getAngle(), getCO2Emission(), getCOEmission(), getDistance(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getIDCount(), getIDList(), getLaneChangeMode(), getLaneID(), getLaneIndex(), getLanePosition(), getLastActionTime(), getLateralLanePosition(), getLateralSpeed(), getLeader(), getLine(), getNoiseEmission(), getNOxEmission(), getPersonIDList(), getPersonNumber(), getPMxEmission(), getPosition(), getRoadID(), getRoute(), getRouteID(), getRouteIndex(), getRoutingMode(), getSignals(), getSlope(), getSpeed(), getSpeedMode(), getSpeedWithoutTraCI(), getStopState(), getTypeID(), getVia(), getWaitingTime(), libsumo::ID_COUNT, isRouteValid(), libsumo::LAST_STEP_PERSON_ID_LIST, libsumo::TraCIRoadPosition::pos, libsumo::TRACI_ID_LIST, libsumo::VAR_ACCELERATION, libsumo::VAR_ACCUMULATED_WAITING_TIME, libsumo::VAR_ALLOWED_SPEED, libsumo::VAR_ANGLE, libsumo::VAR_CO2EMISSION, libsumo::VAR_COEMISSION, libsumo::VAR_COLOR, libsumo::VAR_DISTANCE, libsumo::VAR_EDGES, libsumo::VAR_ELECTRICITYCONSUMPTION, libsumo::VAR_FUELCONSUMPTION, libsumo::VAR_HCEMISSION, libsumo::VAR_LANE_ID, libsumo::VAR_LANE_INDEX, libsumo::VAR_LANECHANGE_MODE, libsumo::VAR_LANEPOSITION, libsumo::VAR_LANEPOSITION_LAT, libsumo::VAR_LASTACTIONTIME, libsumo::VAR_LEADER, libsumo::VAR_LINE, libsumo::VAR_NOISEEMISSION, libsumo::VAR_NOXEMISSION, libsumo::VAR_PERSON_CAPACITY, libsumo::VAR_PERSON_NUMBER, libsumo::VAR_PMXEMISSION, libsumo::VAR_POSITION, libsumo::VAR_POSITION3D, libsumo::VAR_ROAD_ID, libsumo::VAR_ROUTE_ID, libsumo::VAR_ROUTE_INDEX, libsumo::VAR_ROUTE_VALID, libsumo::VAR_ROUTING_MODE, libsumo::VAR_SIGNALS, libsumo::VAR_SLOPE, libsumo::VAR_SPEED, libsumo::VAR_SPEED_FACTOR, libsumo::VAR_SPEED_LAT, libsumo::VAR_SPEED_WITHOUT_TRACI, libsumo::VAR_SPEEDSETMODE, libsumo::VAR_STOPSTATE, libsumo::VAR_TYPE, libsumo::VAR_VIA, libsumo::VAR_WAITING_TIME, libsumo::VariableWrapper::wrapColor(), libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapPosition(), libsumo::VariableWrapper::wrapRoadPosition(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().

Referenced by makeWrapper(), and TraCIServerAPI_Vehicle::processGet().

◆ highlight()

◆ isOnInit()

bool Vehicle::isOnInit ( const std::string &  vehicleID)
staticprivate

◆ isRouteValid()

bool Vehicle::isRouteValid ( const std::string &  vehicleID)
static

Definition at line 323 of file Vehicle.cpp.

References libsumo::Helper::getVehicle(), and MSBaseVehicle::hasValidRoute().

Referenced by handleVariable().

◆ isVisible()

◆ makeWrapper()

std::shared_ptr< VariableWrapper > Vehicle::makeWrapper ( )
static

◆ moveTo()

◆ moveToXY()

◆ openGap()

void Vehicle::openGap ( const std::string &  vehicleID,
double  newTimeHeadway,
double  newSpaceHeadway,
double  duration,
double  changeRate,
double  maxDecel = INVALID_DOUBLE_VALUE,
const std::string &  referenceVehID = "" 
)
static

◆ remove()

◆ requestToC()

void Vehicle::requestToC ( const std::string &  vehID,
double  leadTime 
)
static

Definition at line 1232 of file Vehicle.cpp.

References setParameter(), and toString().

◆ rerouteEffort()

void Vehicle::rerouteEffort ( const std::string &  vehicleID)
static

◆ rerouteParkingArea()

void Vehicle::rerouteParkingArea ( const std::string &  vehicleID,
const std::string &  parkingAreaID 
)
static

◆ rerouteTraveltime()

void Vehicle::rerouteTraveltime ( const std::string &  vehicleID,
const bool  currentTravelTimes = true 
)
static

◆ resume()

◆ setAdaptedTraveltime()

void Vehicle::setAdaptedTraveltime ( const std::string &  vehicleID,
const std::string &  edgeID,
double  time = INVALID_DOUBLE_VALUE,
double  begSeconds = 0,
double  endSeconds = std::numeric_limits<double>::max() 
)
static

◆ setEffort()

void Vehicle::setEffort ( const std::string &  vehicleID,
const std::string &  edgeID,
double  effort = INVALID_DOUBLE_VALUE,
double  begSeconds = 0,
double  endSeconds = std::numeric_limits<double>::max() 
)
static

◆ setLaneChangeMode()

void Vehicle::setLaneChangeMode ( const std::string &  vehicleID,
int  laneChangeMode 
)
static

◆ setLine()

void Vehicle::setLine ( const std::string &  vehicleID,
const std::string &  line 
)
static

◆ setParameter()

◆ setRoute()

void Vehicle::setRoute ( const std::string &  vehicleID,
const std::vector< std::string > &  edgeIDs 
)
static

◆ setRouteID()

void Vehicle::setRouteID ( const std::string &  vehicleID,
const std::string &  routeID 
)
static

◆ setRoutingMode()

void Vehicle::setRoutingMode ( const std::string &  vehicleID,
int  routingMode 
)
static

◆ setSignals()

void Vehicle::setSignals ( const std::string &  vehicleID,
int  signals 
)
static

◆ setSpeed()

void Vehicle::setSpeed ( const std::string &  vehicleID,
double  speed 
)
static

◆ setSpeedMode()

void Vehicle::setSpeedMode ( const std::string &  vehicleID,
int  speedMode 
)
static

◆ setStop()

void Vehicle::setStop ( const std::string &  vehicleID,
const std::string &  edgeID,
double  pos = 1.,
int  laneIndex = 0,
double  duration = INVALID_DOUBLE_VALUE,
int  flags = STOP_DEFAULT,
double  startPos = INVALID_DOUBLE_VALUE,
double  until = INVALID_DOUBLE_VALUE 
)
static

◆ setType()

void Vehicle::setType ( const std::string &  vehicleID,
const std::string &  typeID 
)
static

◆ setVia()

◆ slowDown()

void Vehicle::slowDown ( const std::string &  vehicleID,
double  speed,
double  duration 
)
static

◆ storeShape()

void Vehicle::storeShape ( const std::string &  id,
PositionVector shape 
)
static

Saves the shape of the requested object in the given container.

Parameters
idThe id of the poi to retrieve
shapeThe container to fill

Definition at line 1747 of file Vehicle.cpp.

References getPosition(), and libsumo::Helper::getVehicle().

◆ subscribeLeader()

void Vehicle::subscribeLeader ( const std::string &  vehicleID,
double  dist = 0.,
double  beginTime = libsumo::INVALID_DOUBLE_VALUE,
double  endTime = libsumo::INVALID_DOUBLE_VALUE 
)
static

Definition at line 1740 of file Vehicle.cpp.

References libsumo::VAR_LEADER.

◆ updateBestLanes()

void Vehicle::updateBestLanes ( const std::string &  vehicleID)
static

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Vehicle::myContextSubscriptionResults
staticprivate

Definition at line 202 of file Vehicle.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Vehicle::mySubscriptionResults
staticprivate

Definition at line 201 of file Vehicle.h.

Referenced by makeWrapper().


The documentation for this class was generated from the following files: