├── .gitattributes
├── .gitignore
├── ConfigurationTemplates
├── .MATLABDriveTag
├── SingleEgoMinimalSensorsConfigTemplate.m
├── TrafficConfigTemplate.m
├── TwoEgoSensorsConfigTemplate.m
├── egoConfig.json
└── trafficConfig.json
├── Example
└── StraightHighwayDiscreteMetaAction
│ ├── DiscreteHighwayEnvironment.m
│ ├── HighwayStraightDiscreteMetaDQN.mat
│ ├── Networkplot.PNG
│ ├── SingleEgoMinimalSensorsConfigTemplate.m
│ ├── TrafficConfigTemplate.m
│ ├── create_critic_network.m
│ ├── egoConfig.json
│ ├── highwayConfiguration.sumocfg
│ ├── main.m
│ ├── result
│ ├── result.html
│ └── result_media
│ │ ├── result.gif
│ │ └── result_player_embed.js
│ └── trafficConfig.json
├── README.md
├── SECURITY.md
├── TestScripts
├── .MATLABDriveTag
├── TestContinuousModelStanley
│ ├── SingleEgoMinimalSensorsConfigTemplate.m
│ ├── TestModelStanleyController.m
│ ├── egoConfig-ah-marto1.json
│ ├── egoConfig.json
│ └── trafficConfig.json
├── TestDiscreteMetaAction
│ ├── SingleEgoMinimalSensorsConfigTemplate.m
│ ├── TestDiscreteMetaModel.m
│ ├── egoConfig.json
│ └── trafficConfig.json
├── TestEnvironment
│ ├── .MATLABDriveTag
│ ├── SingleEgoMinimalSensorsConfigTemplate.m
│ ├── TestEnvironmentJson.m
│ ├── TrafficConfigTemplate.m
│ ├── TwoEgoSensorsConfigTemplate.m
│ ├── egoConfig.json
│ └── trafficConfig.json
├── TestEnvironmentAppleHill
│ ├── SingleEgoMinimalSensorsConfigTemplate.m
│ ├── TestEnvironmentJson.m
│ ├── TrafficConfigTemplate.m
│ ├── TwoEgoSensorsConfigTemplate.m
│ ├── egoConfig.json
│ ├── highwayConfiguration.sumocfg
│ └── trafficConfig.json
├── TestSensors
│ ├── .MATLABDriveTag
│ ├── SingleEgoMinimalSensorsConfigTemplate.m
│ ├── TestSensors.m
│ ├── TrafficConfigTemplate.m
│ ├── TwoEgoSensorsConfigTemplate.m
│ ├── egoConfig.json
│ ├── inpoly2basedGrid.pdf
│ ├── inpolygonBasedGrid.pdf
│ └── trafficConfig.json
└── TestTrajectory
│ ├── SingleEgoMinimalSensorsConfigTemplate.m
│ ├── TestModeTrajectory.m
│ ├── egoConfig.json
│ └── trafficConfig.json
├── env
├── .MATLABDriveTag
├── AppleHill
│ ├── AppleHill.m
│ ├── Routes.rou.xml
│ ├── applehilldsd.mat
│ ├── network.net.xml
│ ├── scenario.xodr
│ └── vehiclesRoutes.rou.xml
├── highway.settings.xml
├── highwayCurved
│ ├── .MATLABDriveTag
│ ├── HighwayCurved.m
│ ├── HighwayCurved.mat
│ ├── chicago.xodr
│ ├── network.net.xml
│ ├── scenario.xodr
│ └── vehiclesRoutes.rou.xml
├── highwayStraight
│ ├── .MATLABDriveTag
│ ├── HighwayStraight.m
│ ├── HighwayStraight.mat
│ ├── network.net.xml
│ ├── scenario.xodr
│ └── vehiclesRoutes.rou.xml
└── merge
│ ├── .MATLABDriveTag
│ ├── merge.m
│ ├── merge.mat
│ ├── mergeStraight.mat
│ ├── network.net.xml
│ ├── scenario.xodr
│ └── vehiclesRoutes.rou.xml
├── figures
├── AppleHill.gif
├── CustomTopologyInstructions
│ ├── 1.PNG
│ ├── 2.PNG
│ ├── 3.PNG
│ └── 4.PNG
├── OccupancyGridExample.png
├── RLExample
│ └── trainingDetails.PNG
├── RuntimeArch.PNG
├── Stanley
│ └── stanleyGif.gif
├── Workflow.PNG
├── class.PNG
├── egoJson.PNG
├── egoJsonEg.PNG
├── initializationArch.PNG
├── initializationArchOptions.PNG
├── logo.png
├── trafficJson.PNG
└── visualizationEgo.png
├── highwayConfiguration.sumocfg
├── lib
├── .MATLABDriveTag
├── @EgoVehicle
│ ├── .MATLABDriveTag
│ └── EgoVehicle.m
├── @RLEnv
│ └── RLEnv.m
├── @TrafficEnvironment
│ ├── .MATLABDriveTag
│ └── TrafficEnvironment.m
├── @TrafficVehicle
│ ├── .MATLABDriveTag
│ └── TrafficVehicle.m
├── External
│ ├── inpoly
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── inpoly2.m
│ │ ├── inpoly2_mat.m
│ │ ├── inpoly2_oct.cpp
│ │ ├── mesh-file
│ │ │ ├── certify.m
│ │ │ ├── inspect.m
│ │ │ ├── loadmsh.m
│ │ │ └── savemsh.m
│ │ ├── polydemo.m
│ │ └── test-data
│ │ │ ├── coast.msh
│ │ │ ├── lakes.msh
│ │ │ ├── query.png
│ │ │ └── river.msh
│ └── traci4matlab
│ │ ├── +traci
│ │ ├── +edge
│ │ │ ├── adaptTraveltime.m
│ │ │ ├── getAdaptedTraveltime.m
│ │ │ ├── getCO2Emission.m
│ │ │ ├── getCOEmission.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getEffort.m
│ │ │ ├── getElectricityConsumption.m
│ │ │ ├── getFuelConsumption.m
│ │ │ ├── getHCEmission.m
│ │ │ ├── getIDCount.m
│ │ │ ├── getIDList.m
│ │ │ ├── getLaneNumber.m
│ │ │ ├── getLastStepHaltingNumber.m
│ │ │ ├── getLastStepLength.m
│ │ │ ├── getLastStepMeanSpeed.m
│ │ │ ├── getLastStepOccupancy.m
│ │ │ ├── getLastStepPersonIDs.m
│ │ │ ├── getLastStepVehicleIDs.m
│ │ │ ├── getLastStepVehicleNumber.m
│ │ │ ├── getNOxEmission.m
│ │ │ ├── getNoiseEmission.m
│ │ │ ├── getPmxEmission.m
│ │ │ ├── getStreetName.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getTraveltime.m
│ │ │ ├── getUniversal.m
│ │ │ ├── getWaitingTime.m
│ │ │ ├── setEffort.m
│ │ │ ├── setMaxSpeed.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +gui
│ │ │ ├── getBoundary.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getIDList.m
│ │ │ ├── getOffset.m
│ │ │ ├── getSchema.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getUniversal.m
│ │ │ ├── getZoom.m
│ │ │ ├── hasView.m
│ │ │ ├── screenshot.m
│ │ │ ├── setBoundary.m
│ │ │ ├── setOffset.m
│ │ │ ├── setSchema.m
│ │ │ ├── setZoom.m
│ │ │ ├── subscribe.m
│ │ │ ├── subscribeContext.m
│ │ │ └── trackVehicle.m
│ │ ├── +inductionloop
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getIDList.m
│ │ │ ├── getLaneID.m
│ │ │ ├── getLastStepMeanLength.m
│ │ │ ├── getLastStepMeanSpeed.m
│ │ │ ├── getLastStepOccupancy.m
│ │ │ ├── getLastStepVehicleIDs.m
│ │ │ ├── getLastStepVehicleNumber.m
│ │ │ ├── getPosition.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getTimeSinceDetection.m
│ │ │ ├── getUniversal.m
│ │ │ ├── getVehicleData.m
│ │ │ ├── readVehicleData.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +junction
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getIDList.m
│ │ │ ├── getPosition.m
│ │ │ ├── getShape.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getUniversal.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +lane
│ │ │ ├── getAllowed.m
│ │ │ ├── getCO2Emission.m
│ │ │ ├── getCOEmission.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getDisallowed.m
│ │ │ ├── getEdgeID.m
│ │ │ ├── getElectricityConsumption.m
│ │ │ ├── getFoes.m
│ │ │ ├── getFuelConsumption.m
│ │ │ ├── getHCEmission.m
│ │ │ ├── getIDList.m
│ │ │ ├── getInternalFoes.m
│ │ │ ├── getLastStepHaltingNumber.m
│ │ │ ├── getLastStepLength.m
│ │ │ ├── getLastStepMeanSpeed.m
│ │ │ ├── getLastStepOccupancy.m
│ │ │ ├── getLastStepVehicleIDs.m
│ │ │ ├── getLastStepVehicleNumber.m
│ │ │ ├── getLength.m
│ │ │ ├── getLinkNumber.m
│ │ │ ├── getLinks.m
│ │ │ ├── getMaxSpeed.m
│ │ │ ├── getNOxEmission.m
│ │ │ ├── getNoiseEmission.m
│ │ │ ├── getPMxEmission.m
│ │ │ ├── getShape.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getTraveltime.m
│ │ │ ├── getUniversal.m
│ │ │ ├── getWaitingTime.m
│ │ │ ├── getWidth.m
│ │ │ ├── readLinks.m
│ │ │ ├── setAllowed.m
│ │ │ ├── setDisallowed.m
│ │ │ ├── setLength.m
│ │ │ ├── setMaxSpeed.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +lanearea
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getIDCount.m
│ │ │ ├── getIDList.m
│ │ │ ├── getJamLengthMeters.m
│ │ │ ├── getJamLengthVehicle.m
│ │ │ ├── getLaneID.m
│ │ │ ├── getLastStepHaltingNumber.m
│ │ │ ├── getLastStepMeanSpeed.m
│ │ │ ├── getLastStepOccupancy.m
│ │ │ ├── getLastStepVehicleIDs.m
│ │ │ ├── getLastStepVehicleNumber.m
│ │ │ ├── getLength.m
│ │ │ ├── getPosition.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getUniversal.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +multientryexit
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getIDList.m
│ │ │ ├── getLastStepHaltingNumber.m
│ │ │ ├── getLastStepMeanSpeed.m
│ │ │ ├── getLastStepVehicleIDs.m
│ │ │ ├── getLastStepVehicleNumber.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getUniversal.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +person
│ │ │ ├── add.m
│ │ │ ├── appendDrivingStage.m
│ │ │ ├── appendWaitingStage.m
│ │ │ ├── appendWalkingStage.m
│ │ │ ├── getAngle.m
│ │ │ ├── getColor.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getEdges.m
│ │ │ ├── getIDCount.m
│ │ │ ├── getIDList.m
│ │ │ ├── getLanePosition.m
│ │ │ ├── getLength.m
│ │ │ ├── getMinGap.m
│ │ │ ├── getNextEdge.m
│ │ │ ├── getPosition.m
│ │ │ ├── getPosition3D.m
│ │ │ ├── getRemainingStages.m
│ │ │ ├── getRoadID.m
│ │ │ ├── getSpeed.m
│ │ │ ├── getStage.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getTypeID.m
│ │ │ ├── getUniversal.m
│ │ │ ├── getVehicle.m
│ │ │ ├── getWaitingTime.m
│ │ │ ├── getWidth.m
│ │ │ ├── moveToXY.m
│ │ │ ├── removeStage.m
│ │ │ ├── removeStages.m
│ │ │ ├── rerouteTraveltime.m
│ │ │ ├── setColor.m
│ │ │ ├── setHeight.m
│ │ │ ├── setLength.m
│ │ │ ├── setMinGap.m
│ │ │ ├── setSpeed.m
│ │ │ ├── setType.m
│ │ │ ├── setWidth.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +poi
│ │ │ ├── add.m
│ │ │ ├── getColor.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getIDList.m
│ │ │ ├── getPosition.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getType.m
│ │ │ ├── getUniversal.m
│ │ │ ├── remove.m
│ │ │ ├── setColor.m
│ │ │ ├── setPosition.m
│ │ │ ├── setType.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +polygon
│ │ │ ├── add.m
│ │ │ ├── getColor.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getFilled.m
│ │ │ ├── getIDList.m
│ │ │ ├── getLineWidth.m
│ │ │ ├── getShape.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getType.m
│ │ │ ├── getUniversal.m
│ │ │ ├── remove.m
│ │ │ ├── setColor.m
│ │ │ ├── setFilled.m
│ │ │ ├── setLineWidth.m
│ │ │ ├── setShape.m
│ │ │ ├── setType.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +route
│ │ │ ├── add.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getEdges.m
│ │ │ ├── getIDList.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getUniversal.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +simulation
│ │ │ ├── clearPending.m
│ │ │ ├── convert2D.m
│ │ │ ├── convert3D.m
│ │ │ ├── convertGeo.m
│ │ │ ├── convertRoad.m
│ │ │ ├── findIntermodalRoute.m
│ │ │ ├── findRoute.m
│ │ │ ├── getArrivedIDList.m
│ │ │ ├── getArrivedNumber.m
│ │ │ ├── getBusStopWaiting.m
│ │ │ ├── getCollidingVehiclesIDList.m
│ │ │ ├── getCollidingVehiclesNumber.m
│ │ │ ├── getCurrentTime.m
│ │ │ ├── getDeltaT.m
│ │ │ ├── getDepartedIDList.m
│ │ │ ├── getDepartedNumber.m
│ │ │ ├── getDistance2D.m
│ │ │ ├── getDistanceRoad.m
│ │ │ ├── getEmergencyStoppingVehiclesIDList.m
│ │ │ ├── getEmergencyStoppingVehiclesNumber.m
│ │ │ ├── getEndingTeleportIDList.m
│ │ │ ├── getEndingTeleportNumber.m
│ │ │ ├── getLoadedIDList.m
│ │ │ ├── getLoadedNumber.m
│ │ │ ├── getMinExpectedNumber.m
│ │ │ ├── getNetBoundary.m
│ │ │ ├── getParkingEndingVehiclesIDList.m
│ │ │ ├── getParkingEndingVehiclesNumber.m
│ │ │ ├── getParkingStartingVehiclesIDList.m
│ │ │ ├── getParkingStartingVehiclesNumber.m
│ │ │ ├── getStartingTeleportIDList.m
│ │ │ ├── getStartingTeleportNumber.m
│ │ │ ├── getStopEndingVehiclesIDList.m
│ │ │ ├── getStopEndingVehiclesNumber.m
│ │ │ ├── getStopStartingVehiclesIDList.m
│ │ │ ├── getStopStartingVehiclesNumber.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getTime.m
│ │ │ ├── getUniversal.m
│ │ │ ├── readStage.m
│ │ │ ├── saveState.m
│ │ │ ├── step.m
│ │ │ └── subscribe.m
│ │ ├── +trafficlights
│ │ │ ├── Logic.m
│ │ │ ├── Phase.m
│ │ │ ├── getCompleteRedYellowGreenDefinition.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getControlledLanes.m
│ │ │ ├── getControlledLinks.m
│ │ │ ├── getIDList.m
│ │ │ ├── getNextSwitch.m
│ │ │ ├── getPhase.m
│ │ │ ├── getPhaseDuration.m
│ │ │ ├── getProgram.m
│ │ │ ├── getRedYellowGreenState.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getUniversal.m
│ │ │ ├── readLinks.m
│ │ │ ├── readLogics.m
│ │ │ ├── setCompleteRedYellowGreenDefinition.m
│ │ │ ├── setLinkState.m
│ │ │ ├── setPhase.m
│ │ │ ├── setPhaseDuration.m
│ │ │ ├── setProgram.m
│ │ │ ├── setRedYellowGreenState.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── +vehicle
│ │ │ ├── add.m
│ │ │ ├── addFull.m
│ │ │ ├── addSubscriptionFilterCFManeuver.m
│ │ │ ├── addSubscriptionFilterDownstreamDistance.m
│ │ │ ├── addSubscriptionFilterLCManeuver.m
│ │ │ ├── addSubscriptionFilterLanes.m
│ │ │ ├── addSubscriptionFilterLeadFollow.m
│ │ │ ├── addSubscriptionFilterNoOpposite.m
│ │ │ ├── addSubscriptionFilterTurn.m
│ │ │ ├── addSubscriptionFilterUpstreamDistance.m
│ │ │ ├── addSubscriptionFilterVClass.m
│ │ │ ├── addSubscriptionFilterVType.m
│ │ │ ├── changeLane.m
│ │ │ ├── changeLaneRelative.m
│ │ │ ├── changeSublane.m
│ │ │ ├── changeTarget.m
│ │ │ ├── couldChangeLane.m
│ │ │ ├── deactivateGapControl.m
│ │ │ ├── getAccel.m
│ │ │ ├── getAcceleration.m
│ │ │ ├── getAccumulatedWaitingTime.m
│ │ │ ├── getActionStepLength.m
│ │ │ ├── getAdaptedTraveltime.m
│ │ │ ├── getAllowedSpeed.m
│ │ │ ├── getAngle.m
│ │ │ ├── getApparentDecel.m
│ │ │ ├── getBestLanes.m
│ │ │ ├── getCO2Emission.m
│ │ │ ├── getCOEmission.m
│ │ │ ├── getColor.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getDecel.m
│ │ │ ├── getDistance.m
│ │ │ ├── getDrivingDistance.m
│ │ │ ├── getDrivingDistance2D.m
│ │ │ ├── getEffort.m
│ │ │ ├── getElectricityConsumption.m
│ │ │ ├── getEmergencyDecel.m
│ │ │ ├── getEmissionClass.m
│ │ │ ├── getFuelConsumption.m
│ │ │ ├── getHCEmission.m
│ │ │ ├── getHeight.m
│ │ │ ├── getIDList.m
│ │ │ ├── getImperfection.m
│ │ │ ├── getLaneChangeMode.m
│ │ │ ├── getLaneChangeState.m
│ │ │ ├── getLaneID.m
│ │ │ ├── getLaneIndex.m
│ │ │ ├── getLanePosition.m
│ │ │ ├── getLastActionTime.m
│ │ │ ├── getLateralAlignment.m
│ │ │ ├── getLateralLanePosition.m
│ │ │ ├── getLeader.m
│ │ │ ├── getLength.m
│ │ │ ├── getLine.m
│ │ │ ├── getMaxSpeed.m
│ │ │ ├── getMaxSpeedLat.m
│ │ │ ├── getMinGap.m
│ │ │ ├── getMinGapLat.m
│ │ │ ├── getNOxEmission.m
│ │ │ ├── getNextStops.m
│ │ │ ├── getNextTLS.m
│ │ │ ├── getNoiseEmission.m
│ │ │ ├── getPMxEmission.m
│ │ │ ├── getParameter.m
│ │ │ ├── getPersonIDList.m
│ │ │ ├── getPersonNumber.m
│ │ │ ├── getPosition.m
│ │ │ ├── getPosition3D.m
│ │ │ ├── getRoadID.m
│ │ │ ├── getRoute.m
│ │ │ ├── getRouteID.m
│ │ │ ├── getRouteIndex.m
│ │ │ ├── getRoutingMode.m
│ │ │ ├── getShapeClass.m
│ │ │ ├── getSignals.m
│ │ │ ├── getSlope.m
│ │ │ ├── getSpeed.m
│ │ │ ├── getSpeedDeviation.m
│ │ │ ├── getSpeedFactor.m
│ │ │ ├── getSpeedMode.m
│ │ │ ├── getSpeedWithoutTraCI.m
│ │ │ ├── getStopState.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getTau.m
│ │ │ ├── getTypeID.m
│ │ │ ├── getUniversal.m
│ │ │ ├── getVehicleClass.m
│ │ │ ├── getVia.m
│ │ │ ├── getWaitingTime.m
│ │ │ ├── getWidth.m
│ │ │ ├── isAtBusStop.m
│ │ │ ├── isAtContainerStop.m
│ │ │ ├── isRouteValid.m
│ │ │ ├── isStopped.m
│ │ │ ├── isStoppedParking.m
│ │ │ ├── isStoppedTriggered.m
│ │ │ ├── moveTo.m
│ │ │ ├── moveToVTD.m
│ │ │ ├── moveToXY.m
│ │ │ ├── openGap.m
│ │ │ ├── readBestLanes.m
│ │ │ ├── readLeader.m
│ │ │ ├── readNextStops.m
│ │ │ ├── readNextTLS.m
│ │ │ ├── remove.m
│ │ │ ├── rerouteEffort.m
│ │ │ ├── rerouteParkingArea.m
│ │ │ ├── rerouteTraveltime.m
│ │ │ ├── resume.m
│ │ │ ├── setAccel.m
│ │ │ ├── setActionStepLength.m
│ │ │ ├── setAdaptedTraveltime.m
│ │ │ ├── setApparentDecel.m
│ │ │ ├── setBusStop.m
│ │ │ ├── setChargingStationStop.m
│ │ │ ├── setColor.m
│ │ │ ├── setContainerStop.m
│ │ │ ├── setDecel.m
│ │ │ ├── setEffort.m
│ │ │ ├── setEmergencyDecel.m
│ │ │ ├── setEmissionClass.m
│ │ │ ├── setHeight.m
│ │ │ ├── setImperfection.m
│ │ │ ├── setLaneChangeMode.m
│ │ │ ├── setLateralAlignment.m
│ │ │ ├── setLength.m
│ │ │ ├── setLine.m
│ │ │ ├── setMaxSpeed.m
│ │ │ ├── setMaxSpeedLat.m
│ │ │ ├── setMinGap.m
│ │ │ ├── setMinGapLat.m
│ │ │ ├── setParameter.m
│ │ │ ├── setParkingAreaStop.m
│ │ │ ├── setRoute.m
│ │ │ ├── setRouteID.m
│ │ │ ├── setRoutingMode.m
│ │ │ ├── setShapeClass.m
│ │ │ ├── setSignals.m
│ │ │ ├── setSpeed.m
│ │ │ ├── setSpeedDeviation.m
│ │ │ ├── setSpeedFactor.m
│ │ │ ├── setSpeedMode.m
│ │ │ ├── setStop.m
│ │ │ ├── setTau.m
│ │ │ ├── setType.m
│ │ │ ├── setVehicleClass.m
│ │ │ ├── setVia.m
│ │ │ ├── setWidth.m
│ │ │ ├── slowDown.m
│ │ │ ├── subscribe.m
│ │ │ ├── subscribeContext.m
│ │ │ ├── subscribeLeader.m
│ │ │ ├── updateBestLanes.m
│ │ │ └── wantsAndCouldChangeLane.m
│ │ ├── +vehicletype
│ │ │ ├── copy.m
│ │ │ ├── getAccel.m
│ │ │ ├── getActionStepLength.m
│ │ │ ├── getApparentDecel.m
│ │ │ ├── getColor.m
│ │ │ ├── getContextSubscriptionResults.m
│ │ │ ├── getDecel.m
│ │ │ ├── getEmergencyDecel.m
│ │ │ ├── getEmissionClass.m
│ │ │ ├── getHeight.m
│ │ │ ├── getIDList.m
│ │ │ ├── getImperfection.m
│ │ │ ├── getLateralAlignment.m
│ │ │ ├── getLength.m
│ │ │ ├── getMaxSpeed.m
│ │ │ ├── getMaxSpeedLat.m
│ │ │ ├── getMinGap.m
│ │ │ ├── getMinGapLat.m
│ │ │ ├── getShapeClass.m
│ │ │ ├── getSpeedDeviation.m
│ │ │ ├── getSpeedFactor.m
│ │ │ ├── getSubscriptionResults.m
│ │ │ ├── getTau.m
│ │ │ ├── getUniversal.m
│ │ │ ├── getVehicleClass.m
│ │ │ ├── getWidth.m
│ │ │ ├── setAccel.m
│ │ │ ├── setActionStepLength.m
│ │ │ ├── setApparentDecel.m
│ │ │ ├── setColor.m
│ │ │ ├── setDecel.m
│ │ │ ├── setEmergencyDecel.m
│ │ │ ├── setEmissionClass.m
│ │ │ ├── setHeight.m
│ │ │ ├── setImperfection.m
│ │ │ ├── setLateralAlignment.m
│ │ │ ├── setLength.m
│ │ │ ├── setMaxSpeed.m
│ │ │ ├── setMaxSpeedLat.m
│ │ │ ├── setMinGap.m
│ │ │ ├── setMinGapLat.m
│ │ │ ├── setShapeClass.m
│ │ │ ├── setSpeedDeviation.m
│ │ │ ├── setSpeedFactor.m
│ │ │ ├── setTau.m
│ │ │ ├── setVehicleClass.m
│ │ │ ├── setWidth.m
│ │ │ ├── subscribe.m
│ │ │ └── subscribeContext.m
│ │ ├── Message.m
│ │ ├── RETURN_VALUE_FUNC.m
│ │ ├── Socket.m
│ │ ├── Storage.m
│ │ ├── SubscriptionResults.m
│ │ ├── addSubscriptionFilter.m
│ │ ├── beginMessage.m
│ │ ├── checkResult.m
│ │ ├── close.m
│ │ ├── connect.m
│ │ ├── constants.m
│ │ ├── getVersion.m
│ │ ├── init.m
│ │ ├── packInt32.m
│ │ ├── packInt64.m
│ │ ├── readSubscription.m
│ │ ├── recvExact.m
│ │ ├── sendByteCmd.m
│ │ ├── sendDoubleCmd.m
│ │ ├── sendExact.m
│ │ ├── sendIntCmd.m
│ │ ├── sendReadOneStringCmd.m
│ │ ├── sendStringCmd.m
│ │ ├── simulationStep.m
│ │ ├── start.m
│ │ ├── subscribe.m
│ │ ├── subscribeContext.m
│ │ ├── switchConnection.m
│ │ └── time2steps.m
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── examples
│ │ ├── inter_palmas
│ │ │ ├── inter_palmas.poly.xml
│ │ │ ├── inter_palmas_bus_stops.add.xml
│ │ │ ├── inter_palmas_buses.rou.alt.xml
│ │ │ ├── inter_palmas_buses.rou.xml
│ │ │ ├── inter_palmas_buses.trips.xml
│ │ │ ├── inter_palmas_demand.rou.xml
│ │ │ ├── inter_palmas_pedestrians.trip.xml
│ │ │ ├── tls_actuated
│ │ │ │ ├── checkWaitingPersons.m
│ │ │ │ ├── inter_palmas.net.xml
│ │ │ │ ├── inter_palmas_actuated.m
│ │ │ │ └── inter_palmas_actuated.sumocfg
│ │ │ └── viewsettings.xml
│ │ ├── traci_test.m
│ │ └── traci_test2.m
│ │ ├── license.txt
│ │ ├── src
│ │ └── co
│ │ │ └── edu
│ │ │ └── unalmed
│ │ │ └── gaunal
│ │ │ └── traci4matlab
│ │ │ └── utils
│ │ │ └── DataReader.java
│ │ ├── traci4matlab.jar
│ │ └── user_manual.pdf
├── add.m
├── changeLane.m
└── utils
│ ├── .MATLABDriveTag
│ ├── keyInject.m
│ ├── keyInject_sendKey.cc
│ └── keyInject_setFocus.cc
├── license.txt
└── scripts
├── GenerateEnvironmentFiles.m
└── Install.m
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.mlx -crlf -diff -merge
2 | *.mat -crlf -diff -merge
3 | *.fig -crlf -diff -merge
4 | *.p -crlf -diff -merge
5 | *.slx -crlf -diff -merge
6 | *.mdl -crlf -diff -merge
7 | *.sfx -crlf -diff -merge
8 | *.mdlp -crlf -diff -merge
9 | *.slxp -crlf -diff -merge
10 | *.sldd -crlf -diff -merge
11 | *.mexa64 -crlf -diff -merge
12 | *.mexw64 -crlf -diff -merge
13 | *.mexmaci64 -crlf -diff -merge
14 | *.xlsx -crlf -diff -merge
15 | *.docx -crlf -diff -merge
16 | *.pdf -crlf -diff -merge
17 | *.jpg -crlf -diff -merge
18 | *.png -crlf -diff -merge
19 | *.sfx binary
20 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Windows default autosave extension
2 | *.asv
3 |
4 | # OSX / *nix default autosave extension
5 | *.m~
6 |
7 | # Compiled MEX binaries (all platforms)
8 | *.mex*
9 |
10 | # Packaged app and toolbox files
11 | *.mlappinstall
12 | *.mltbx
13 |
14 | # Generated helpsearch folders
15 | helpsearch*/
16 |
17 | # Simulink code generation folders
18 | slprj/
19 | sccprj/
20 |
21 | # Matlab code generation folders
22 | codegen/
23 |
24 | # Simulink autosave extension
25 | *.autosave
26 |
27 | # Octave session info
28 | octave-workspace
--------------------------------------------------------------------------------
/ConfigurationTemplates/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 040bddd2-fcac-43ec-b9dc-d41d62e3f7e9
--------------------------------------------------------------------------------
/ConfigurationTemplates/trafficConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "VehicleType": "DEFAULT_VEHTYPE",
3 | "NumberVehicles": 10,
4 | "RandomTraffic": false,
5 | "BoundsRandomTraffic": [
6 | 10,
7 | 60
8 | ],
9 | "SpawnOptions": {
10 | "departLane": "random",
11 | "departPos": "random_free",
12 | "departSpeed": "random",
13 | "arrivalLane": "random",
14 | "arrivalPos": "max",
15 | "arrivalSpeed": "random"
16 | }
17 | }
--------------------------------------------------------------------------------
/Example/StraightHighwayDiscreteMetaAction/HighwayStraightDiscreteMetaDQN.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/Example/StraightHighwayDiscreteMetaAction/HighwayStraightDiscreteMetaDQN.mat
--------------------------------------------------------------------------------
/Example/StraightHighwayDiscreteMetaAction/Networkplot.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/Example/StraightHighwayDiscreteMetaAction/Networkplot.PNG
--------------------------------------------------------------------------------
/Example/StraightHighwayDiscreteMetaAction/result/result_media/result.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/Example/StraightHighwayDiscreteMetaAction/result/result_media/result.gif
--------------------------------------------------------------------------------
/Example/StraightHighwayDiscreteMetaAction/result/result_media/result_player_embed.js:
--------------------------------------------------------------------------------
1 | var oeTags = '
';
2 | document.write( oeTags );
3 |
--------------------------------------------------------------------------------
/Example/StraightHighwayDiscreteMetaAction/trafficConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "VehicleType": "typedist",
3 | "NumberVehicles": 20,
4 | "RandomTraffic": true,
5 | "BoundsRandomTraffic": [
6 | 5,
7 | 25
8 | ],
9 | "SpawnOptions": {
10 | "departLane": "random",
11 | "departPos": "random_free",
12 | "departSpeed": "random",
13 | "arrivalLane": "random",
14 | "arrivalPos": "max",
15 | "arrivalSpeed": "random"
16 | }
17 | }
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Reporting Security Vulnerabilities
2 |
3 | If you believe you have discovered a security vulnerability, please report it to
4 | [security@mathworks.com](mailto:security@mathworks.com). Please see
5 | [MathWorks Vulnerability Disclosure Policy for Security Researchers](https://www.mathworks.com/company/aboutus/policies_statements/vulnerability-disclosure-policy.html)
6 | for additional information.
--------------------------------------------------------------------------------
/TestScripts/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | c3eae8fb-7a43-479e-81a9-3c4d6d8459ab
--------------------------------------------------------------------------------
/TestScripts/TestContinuousModelStanley/egoConfig-ah-marto1.json:
--------------------------------------------------------------------------------
1 | {
2 | "NumberEgos": 1,
3 | "Ego": {
4 | "Name": "ego01",
5 | "ModelType": "Bicycle",
6 | "ActionType": "Discrete",
7 | "VehicleType": "DEFAULT_VEHTYPE",
8 | "Route": "random",
9 | "Color": [
10 | 0,
11 | 1,
12 | 0
13 | ],
14 | "SpawnOptions": {
15 | "departLane": "random",
16 | "departPos": "base",
17 | "departSpeed": "random",
18 | "arrivalLane": "random",
19 | "arrivalPos": "max",
20 | "arrivalSpeed": "random"
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/TestScripts/TestContinuousModelStanley/egoConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "NumberEgos": 1,
3 | "Ego": {
4 | "Name": "ego01",
5 | "ModelType": "Bicycle",
6 | "ActionType": "Discrete",
7 | "VehicleType": "DEFAULT_VEHTYPE",
8 | "Route": "random",
9 | "Color": [
10 | 0,
11 | 1,
12 | 0
13 | ],
14 | "SpawnOptions": {
15 | "departLane": "3",
16 | "departPos": "100",
17 | "departSpeed": "random",
18 | "arrivalLane": "random",
19 | "arrivalPos": "max",
20 | "arrivalSpeed": "random"
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/TestScripts/TestContinuousModelStanley/trafficConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "VehicleType": "typedist",
3 | "NumberVehicles": 0,
4 | "RandomTraffic": true,
5 | "BoundsRandomTraffic": [
6 | 40,
7 | 50
8 | ],
9 | "SpawnOptions": {
10 | "departLane": "random",
11 | "departPos": "random_free",
12 | "departSpeed": "random",
13 | "arrivalLane": "random",
14 | "arrivalPos": "max",
15 | "arrivalSpeed": "random"
16 | }
17 | }
--------------------------------------------------------------------------------
/TestScripts/TestDiscreteMetaAction/trafficConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "VehicleType": "DEFAULT_VEHTYPE",
3 | "NumberVehicles": 0,
4 | "RandomTraffic": true,
5 | "BoundsRandomTraffic": [
6 | 20,
7 | 30
8 | ],
9 | "SpawnOptions": {
10 | "departLane": "random",
11 | "departPos": "random_free",
12 | "departSpeed": "random",
13 | "arrivalLane": "random",
14 | "arrivalPos": "max",
15 | "arrivalSpeed": "random"
16 | }
17 | }
--------------------------------------------------------------------------------
/TestScripts/TestEnvironment/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 93a19d6e-5af0-4583-9b56-5ef607a503d1
--------------------------------------------------------------------------------
/TestScripts/TestEnvironment/trafficConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "VehicleType": "DEFAULT_VEHTYPE",
3 | "NumberVehicles": 10,
4 | "RandomTraffic": true,
5 | "BoundsRandomTraffic": [
6 | 50,
7 | 70
8 | ],
9 | "SpawnOptions": {
10 | "departLane": "random",
11 | "departPos": "random_free",
12 | "departSpeed": "random",
13 | "arrivalLane": "random",
14 | "arrivalPos": "max",
15 | "arrivalSpeed": "random"
16 | }
17 | }
--------------------------------------------------------------------------------
/TestScripts/TestEnvironmentAppleHill/egoConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "NumberEgos": 1,
3 | "Ego": [
4 | {
5 | "Name": "ego01",
6 | "ModelType": "SUMO",
7 | "ActionType": "Discrete-MetaAction",
8 | "VehicleType": "car",
9 | "Route": "ego_route",
10 | "Color": [
11 | 0,
12 | 1,
13 | 0
14 | ],
15 | "SpawnOptions": {
16 | "departLane": "random",
17 | "departPos": "random_free",
18 | "departSpeed": "random",
19 | "arrivalLane": "random",
20 | "arrivalPos": "max",
21 | "arrivalSpeed": "random"
22 | }
23 | }
24 | ]
25 | }
--------------------------------------------------------------------------------
/TestScripts/TestEnvironmentAppleHill/trafficConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "VehicleType": "typedist",
3 | "NumberVehicles": 45,
4 | "RandomTraffic": false,
5 | "BoundsRandomTraffic": [
6 | 20,
7 | 50
8 | ],
9 | "SpawnOptions": {
10 | "departLane": "random",
11 | "departPos": "random_free",
12 | "departSpeed": "random",
13 | "arrivalLane": "random",
14 | "arrivalPos": "max",
15 | "arrivalSpeed": "random"
16 | }
17 | }
--------------------------------------------------------------------------------
/TestScripts/TestSensors/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 0b7abfcb-5e60-45b7-8a10-76dc81cdd27f
--------------------------------------------------------------------------------
/TestScripts/TestSensors/inpoly2basedGrid.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/TestScripts/TestSensors/inpoly2basedGrid.pdf
--------------------------------------------------------------------------------
/TestScripts/TestSensors/inpolygonBasedGrid.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/TestScripts/TestSensors/inpolygonBasedGrid.pdf
--------------------------------------------------------------------------------
/TestScripts/TestSensors/trafficConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "VehicleType": "DEFAULT_VEHTYPE",
3 | "NumberVehicles": 5,
4 | "RandomTraffic": false,
5 | "BoundsRandomTraffic": [
6 | 60,
7 | 90
8 | ],
9 | "SpawnOptions": {
10 | "departLane": "random",
11 | "departPos": "random_free",
12 | "departSpeed": "random",
13 | "arrivalLane": "random",
14 | "arrivalPos": "max",
15 | "arrivalSpeed": "random"
16 | }
17 | }
--------------------------------------------------------------------------------
/TestScripts/TestTrajectory/egoConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "NumberEgos": 1,
3 | "Ego": {
4 | "Name": "ego01",
5 | "ModelType": "Bicycle",
6 | "ActionType": "Discrete",
7 | "VehicleType": "DEFAULT_VEHTYPE",
8 | "Route": "random",
9 | "Color": [
10 | 0,
11 | 1,
12 | 0
13 | ],
14 | "SpawnOptions": {
15 | "departLane": "0",
16 | "departPos": "random_free",
17 | "departSpeed": "random",
18 | "arrivalLane": "random",
19 | "arrivalPos": "max",
20 | "arrivalSpeed": "random"
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/TestScripts/TestTrajectory/trafficConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "VehicleType": "DEFAULT_VEHTYPE",
3 | "NumberVehicles": 70,
4 | "RandomTraffic": true,
5 | "BoundsRandomTraffic": [
6 | 40,
7 | 50
8 | ],
9 | "SpawnOptions": {
10 | "departLane": "random",
11 | "departPos": "random_free",
12 | "departSpeed": "random",
13 | "arrivalLane": "random",
14 | "arrivalPos": "max",
15 | "arrivalSpeed": "random"
16 | }
17 | }
--------------------------------------------------------------------------------
/env/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | ae5e1ab4-2025-4bfe-8591-cc24c17490a6
--------------------------------------------------------------------------------
/env/AppleHill/applehilldsd.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/env/AppleHill/applehilldsd.mat
--------------------------------------------------------------------------------
/env/highway.settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/env/highwayCurved/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 1208f3bd-0798-44ac-b436-ff80b87ce6fd
--------------------------------------------------------------------------------
/env/highwayCurved/HighwayCurved.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/env/highwayCurved/HighwayCurved.mat
--------------------------------------------------------------------------------
/env/highwayStraight/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 3b575478-3618-47a6-9ae8-ee1d349a0454
--------------------------------------------------------------------------------
/env/highwayStraight/HighwayStraight.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/env/highwayStraight/HighwayStraight.mat
--------------------------------------------------------------------------------
/env/merge/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | c61aa2cf-e64c-4122-a582-e874fb445283
--------------------------------------------------------------------------------
/env/merge/merge.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/env/merge/merge.mat
--------------------------------------------------------------------------------
/env/merge/mergeStraight.mat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/env/merge/mergeStraight.mat
--------------------------------------------------------------------------------
/figures/AppleHill.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/AppleHill.gif
--------------------------------------------------------------------------------
/figures/CustomTopologyInstructions/1.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/CustomTopologyInstructions/1.PNG
--------------------------------------------------------------------------------
/figures/CustomTopologyInstructions/2.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/CustomTopologyInstructions/2.PNG
--------------------------------------------------------------------------------
/figures/CustomTopologyInstructions/3.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/CustomTopologyInstructions/3.PNG
--------------------------------------------------------------------------------
/figures/CustomTopologyInstructions/4.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/CustomTopologyInstructions/4.PNG
--------------------------------------------------------------------------------
/figures/OccupancyGridExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/OccupancyGridExample.png
--------------------------------------------------------------------------------
/figures/RLExample/trainingDetails.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/RLExample/trainingDetails.PNG
--------------------------------------------------------------------------------
/figures/RuntimeArch.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/RuntimeArch.PNG
--------------------------------------------------------------------------------
/figures/Stanley/stanleyGif.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/Stanley/stanleyGif.gif
--------------------------------------------------------------------------------
/figures/Workflow.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/Workflow.PNG
--------------------------------------------------------------------------------
/figures/class.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/class.PNG
--------------------------------------------------------------------------------
/figures/egoJson.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/egoJson.PNG
--------------------------------------------------------------------------------
/figures/egoJsonEg.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/egoJsonEg.PNG
--------------------------------------------------------------------------------
/figures/initializationArch.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/initializationArch.PNG
--------------------------------------------------------------------------------
/figures/initializationArchOptions.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/initializationArchOptions.PNG
--------------------------------------------------------------------------------
/figures/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/logo.png
--------------------------------------------------------------------------------
/figures/trafficJson.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/trafficJson.PNG
--------------------------------------------------------------------------------
/figures/visualizationEgo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/figures/visualizationEgo.png
--------------------------------------------------------------------------------
/lib/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 1d1daec7-3983-42c6-a302-81d6090b58eb
--------------------------------------------------------------------------------
/lib/@EgoVehicle/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 5a6ccfab-ce76-4c8d-b408-1bf4460134fc
--------------------------------------------------------------------------------
/lib/@TrafficEnvironment/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 87c47a94-18eb-4332-b40c-c94efda60862
--------------------------------------------------------------------------------
/lib/@TrafficVehicle/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | 7a93284f-5da8-4a80-8c38-f32e529c0765
--------------------------------------------------------------------------------
/lib/External/inpoly/test-data/query.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/lib/External/inpoly/test-data/query.png
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getCO2Emission.m:
--------------------------------------------------------------------------------
1 | function CO2Emission = getCO2Emission(edgeID)
2 | %getCO2Emission Returns the CO2 emission on the given edge.
3 | % CO2Emission = getCO2Emission(EDGEID) Returns the CO2 emission in mg for
4 | % the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getCO2Emission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | CO2Emission = traci.edge.getUniversal(constants.VAR_CO2EMISSION, edgeID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getCOEmission.m:
--------------------------------------------------------------------------------
1 | function COEmission = getCOEmission(edgeID)
2 | %getCOEmission Returns the CO emission on the given edge.
3 | % COEmission = getCOEmission(EDGEID) Returns the CO emission in mg for
4 | % the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getCOEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | COEmission = traci.edge.getUniversal(constants.VAR_COEMISSION, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getFuelConsumption.m:
--------------------------------------------------------------------------------
1 | function fuelConsumption = getFuelConsumption(edgeID)
2 | %getFuelConsumption Get the fuel consumption on the edge.
3 | % fuelConsumption = getFuelConsumption(EDGEID) Returns the fuel
4 | % consumption in ml for the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getFuelConsumption.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | fuelConsumption = traci.edge.getUniversal(constants.VAR_FUELCONSUMPTION, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getHCEmission.m:
--------------------------------------------------------------------------------
1 | function HCEmission = getHCEmission(edgeID)
2 | %getHCEmission Returns the HC emission on the given edge.
3 | % HCEmission = getCOEmission(EDGEID) Returns the HC emission in mg for
4 | % the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getHCEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | HCEmission = traci.edge.getUniversal(constants.VAR_HCEMISSION, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getIDCount.m:
--------------------------------------------------------------------------------
1 | function IDCount = getIDCount()
2 | %getIDCount Get the number of edges in the SUMO network.
3 |
4 | % Copyright 2019 Universidad Nacional de Colombia,
5 | % Politecnico Jaime Isaza Cadavid.
6 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
7 | % $Id: getIDCount.m 48 2018-12-26 15:35:20Z afacostag $
8 |
9 | import traci.constants
10 | IDCount = traci.edge.getUniversal(constants.ID_COUNT, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the edges in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the edges in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.edge.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getLaneNumber.m:
--------------------------------------------------------------------------------
1 | function laneNumber = getLaneNumber(edgeID)
2 | %getLaneNumber Returns the number of lanes of this edge.
3 | % laneNumber = getLaneNumber(EDGEID) Returns the number of lanes on the
4 | % given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLaneNumber.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 |
13 | laneNumber = traci.edge.getUniversal(constants.VAR_LANE_INDEX, edgeID);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getLastStepLength.m:
--------------------------------------------------------------------------------
1 | function lastStepLength = getLastStepLength(edgeID)
2 | %getLastStepLength Get the mean vehicle length on the edge.
3 | % lastStepLength = getLastStepLength(EDGEID) Returns the mean vehicle
4 | % length in m for the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepLength.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lastStepLength = traci.edge.getUniversal(constants.LAST_STEP_LENGTH, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getLastStepMeanSpeed.m:
--------------------------------------------------------------------------------
1 | function lastStepMeanSpeed = getLastStepMeanSpeed(edgeID)
2 | %getLastStepMeanSpeed Get the average speed on the edge.
3 | % lastStepMeanSpeed = getLastStepMeanSpeed(EDGEID) Returns the average
4 | % speed in m/s for the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepMeanSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lastStepMeanSpeed = traci.edge.getUniversal(constants.LAST_STEP_MEAN_SPEED, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getLastStepOccupancy.m:
--------------------------------------------------------------------------------
1 | function lastStepOccupancy = getLastStepOccupancy(edgeID)
2 | %getLastStepOccupancy Get the percentage of occupation on the edge.
3 | % lastStepOccupancy = getLastStepOccupancy(EDGEID) Returns the occupancy
4 | % in percentage for the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepOccupancy.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lastStepOccupancy = traci.edge.getUniversal(constants.LAST_STEP_OCCUPANCY, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getLastStepPersonIDs.m:
--------------------------------------------------------------------------------
1 | function personIDs = getLastStepPersonIDs(edgeID)
2 | %getLastStepPersonIDs Returns the ids of the persons in the last time step.
3 | % personIDs = getLastStepPersonIDs(EDGEID) Returns the ids of the persons
4 | % on the given edge during the last time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepPersonIDs.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | personIDs = traci.edge.getUniversal(constants.LAST_STEP_PERSON_ID_LIST, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getNOxEmission.m:
--------------------------------------------------------------------------------
1 | function NOxEmission = getNOxEmission(edgeID)
2 | import traci.constants
3 | %getNOxEmission Get the NOx emission in the edge.
4 | % NOxEmission = getNOxEmission(EDGEID) Returns the NOx emission in mg for
5 | % the last time step on the given edge.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getNOxEmission.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | NOxEmission = traci.edge.getUniversal(constants.VAR_NOXEMISSION, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getNoiseEmission.m:
--------------------------------------------------------------------------------
1 | function noiseEmission = getNoiseEmission(edgeID)
2 | %getNoiseEmission Get the noise emission in the edge.
3 | % noiseEmission = getNoiseEmission(EDGEID) Returns the noise emission in
4 | % db for the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getNoiseEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | noiseEmission = traci.edge.getUniversal(constants.VAR_NOISEEMISSION, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getPmxEmission.m:
--------------------------------------------------------------------------------
1 | function pmxEmission = getPmxEmission(edgeID)
2 | %getPmxEmission Get the particular matter emission in the edge.
3 | % pmxEmission = getPmxEmission(EDGEID) Returns the particular matter
4 | % emission in mg for the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPmxEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | pmxEmission = traci.edge.getUniversal(constants.VAR_PMXEMISSION, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getStreetName.m:
--------------------------------------------------------------------------------
1 | function streetName = getStreetName(edgeID)
2 | %getStreetName Returns the street name of this edge.
3 | % streetName = getStreetName(EDGEID) Returns street name on the given
4 | % edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getStreetName.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 |
13 | streetName = traci.edge.getUniversal(constants.VAR_NAME, edgeID);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getTraveltime.m:
--------------------------------------------------------------------------------
1 | function traveltime = getTraveltime(edgeID)
2 | %getTraveltime Get estimated travel time in the edge.
3 | % traveltime = getTraveltime(EDGEID) Returns the estimated travel time in
4 | % seconds for the last time step on the given edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getTraveltime.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traveltime = traci.edge.getUniversal(constants.VAR_CURRENT_TRAVELTIME, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/getWaitingTime.m:
--------------------------------------------------------------------------------
1 | function waitingTime = getWaitingTime(edgeID)
2 | %waitingTime Returns the waiting time on the given edge.
3 | % daptedTraveltime = getWaitingTime(EDGEID) Returns the sum of the
4 | % waiting time of all vehicles currently onthat edge (see traci.vehicle.getWaitingTime).
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getWaitingTime.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | waitingTime = traci.edge.getUniversal(constants.VAR_WAITING_TIME, edgeID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+edge/setMaxSpeed.m:
--------------------------------------------------------------------------------
1 | function setMaxSpeed(edgeID, speed)
2 | %setMaxSpeed Set the maximum speed in the edge.
3 | % setMaxSpeed(EDGEID,SPEED) Set a new maximum speed (in m/s) for all
4 | % lanes of the edge.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMaxSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_EDGE_VARIABLE, constants.VAR_MAXSPEED, edgeID, speed)
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the views in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the views in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.gui.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/getOffset.m:
--------------------------------------------------------------------------------
1 | function offset = getOffset(viewID)
2 | %getOffset Get the offset of the view.
3 | % offset = getOffset(VIEWID) Returns the x and y offset of the center of
4 | % the current view. If no view ID is given, the function return the
5 | % results for the default view.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getOffset.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | if nargin < 1
14 | viewID = 'View #0';
15 | end
16 | offset = traci.gui.getUniversal(constants.VAR_VIEW_OFFSET, viewID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/getSchema.m:
--------------------------------------------------------------------------------
1 | function schema = getSchema(viewID)
2 | %getSchema Get the color schema of the view.
3 | % schema = getSchema(VIEWID) Returns the name of the current coloring
4 | % scheme. If no view ID is given, the function return the results for the
5 | % default view.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getSchema.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | if nargin < 1
14 | viewID = 'View #0';
15 | end
16 | schema = traci.gui.getUniversal(constants.VAR_VIEW_SCHEMA, viewID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/getZoom.m:
--------------------------------------------------------------------------------
1 | function zoom = getZoom(viewID)
2 | %getZoom Get the zoom of the view.
3 | % zoom = getZoom(viewID) Returns the current zoom factor of the view. If
4 | % no view ID is given, the function return the results for the default
5 | % view.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getZoom.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | if nargin < 1
14 | viewID = 'View #0';
15 | end
16 | zoom = traci.gui.getUniversal(constants.VAR_VIEW_ZOOM, viewID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/hasView.m:
--------------------------------------------------------------------------------
1 | function b = hasView(varargin)
2 | %hasView Check whether the given view exists.
3 | % b = hasView(VIEWID) Check whether the given view exists in the GUI.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: hasView.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 |
12 | if nargin < 1
13 | viewID = 'View #0';
14 | else
15 | viewID = varargin{:};
16 | end
17 |
18 | b = traci.gui.getUniversal(constants.VAR_HAS_VIEW, viewID);
19 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/setOffset.m:
--------------------------------------------------------------------------------
1 | function setOffset(viewID, x, y)
2 | %setOffset Set the offset of the view.
3 | % setOffset(VIEWID, X, Y) Set the current offset for the given view.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setOffset.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | global message
12 | traci.beginMessage(constants.CMD_SET_GUI_VARIABLE, constants.VAR_VIEW_OFFSET, viewID, 1+8+8);
13 | message.string = [message.string uint8(sscanf(constants.POSITION_2D,'%x'))...
14 | traci.packInt64([y x])];
15 | traci.sendExact();
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/setSchema.m:
--------------------------------------------------------------------------------
1 | function setSchema(viewID, schemeName)
2 | %setSchema Set the coloring scheme of the view.
3 | % setSchema(VIEWID, SCHEMENAME) Set the current coloring scheme for the
4 | % given view.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setSchema.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_GUI_VARIABLE, constants.VAR_VIEW_SCHEMA, viewID, schemeName);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/setZoom.m:
--------------------------------------------------------------------------------
1 | function setZoom(viewID, zoom)
2 | %setZoom Set the zoom of the view.
3 | % setZoom(VIEWID, ZOOM) Set the current zoom factor for the given view.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setZoom.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_GUI_VARIABLE, constants.VAR_VIEW_ZOOM, viewID, zoom);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+gui/trackVehicle.m:
--------------------------------------------------------------------------------
1 | function trackVehicle(viewID, vehID)
2 | %trackVehicle Track vehicle in SUMO gui.
3 | % trackVehicle(viewID, vehID) Start visually tracking the given vehicle
4 | % on the given view.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: trackVehicle.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_GUI_VARIABLE, constants.VAR_TRACK_VEHICLE, viewID, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+inductionloop/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the induction loops in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the induction loops in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.inductionloop.getUniversal(constants.ID_LIST, '');
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+inductionloop/getLaneID.m:
--------------------------------------------------------------------------------
1 | function laneID = getLaneID(loopID)
2 | %getLaneID Get the id of the lane the loop is on.
3 | % laneID = getLaneID(LOOPID) Returns the id of the lane the loop is on.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getLaneID.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | laneID = traci.inductionloop.getUniversal(constants.VAR_LANE_ID, loopID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+inductionloop/getLastStepMeanLength.m:
--------------------------------------------------------------------------------
1 | function lastStepMeanLength = getLastStepMeanLength(loopID)
2 | %getLastStepMeanLength Get the mean length of the vehicles in the lane.
3 | % lastStepMeanLength = getLastStepMeanLength(LOOPID) Returns the mean
4 | % length in m of vehicles which were on the detector in the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepMeanLength.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lastStepMeanLength = traci.inductionloop.getUniversal(constants.LAST_STEP_LENGTH, loopID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+inductionloop/getLastStepOccupancy.m:
--------------------------------------------------------------------------------
1 | function lastStepOccupancy = getLastStepOccupancy(loopID)
2 | %getLastStepOccupancy Get the percentage of time the loop was occupied.
3 | % lastStepOccupancy = getLastStepOccupancy(LOOPID) Returns the percentage
4 | % of time the detector was occupied by a vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepOccupancy.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lastStepOccupancy = traci.inductionloop.getUniversal(constants.LAST_STEP_OCCUPANCY, loopID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+inductionloop/getPosition.m:
--------------------------------------------------------------------------------
1 | function position = getPosition(loopID)
2 | %getPosition Get the position of the loop.
3 | % position = getPosition(LOOPID) Returns the position measured from the
4 | % beginning of the lane in meters.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPosition.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | position = traci.inductionloop.getUniversal(constants.VAR_POSITION, loopID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+inductionloop/getTimeSinceDetection.m:
--------------------------------------------------------------------------------
1 | function timeSinceDetection = getTimeSinceDetection(loopID)
2 | %getTimeSinceDetection Get the time since the last detection.
3 | % timeSinceDetection = getTimeSinceDetection(LOOPID) Returns the time in
4 | % seconds since last detection.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getTimeSinceDetection.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | timeSinceDetection = traci.inductionloop.getUniversal(constants.LAST_STEP_TIME_SINCE_DETECTION, loopID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+inductionloop/getVehicleData.m:
--------------------------------------------------------------------------------
1 | function vehicleData = getVehicleData(loopID)
2 | %getVehicleData Get several data about passed vehicles.
3 | % vehicleData = getVehicleData(LOOPID) Returns a cell structure
4 | % containing several information about vehicles which passed the detector.
5 |
6 | % Copyright 2017 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getVehicleData.m 44 2017-09-28 14:01:13Z afacostag $
10 |
11 | import traci.constants
12 | vehicleData = traci.inductionloop.getUniversal(constants.LAST_STEP_VEHICLE_DATA, loopID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+junction/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the junctions in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the junctions in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.junction.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+junction/getPosition.m:
--------------------------------------------------------------------------------
1 | function position = getPosition(junctionID)
2 | %getPosition Get the position of the junction.
3 | % position = getPosition(JUNCTIONID) Returns the coordinates of the
4 | % center of the junction.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPosition.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | position = traci.junction.getUniversal(constants.VAR_POSITION, junctionID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+junction/getShape.m:
--------------------------------------------------------------------------------
1 | function shape = getShape(junctionID)
2 | %getShape List of 2D positions (cartesian) describing the geometry.
3 | % shape = getShape(JUNCTIONID) List of 2D positions (cartesian)
4 | % describing the geometry of the given junction.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getShape.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 |
13 | shape = traci.junction.getUniversal(constants.VAR_SHAPE, junctionID);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getAllowed.m:
--------------------------------------------------------------------------------
1 | function allowed = getAllowed(laneID)
2 | %getAllowed Get the allowed vehicle classes in the lane.
3 | % allowed = getAllowed(LANEID) Returns a cell array of strings containing
4 | % the allowed vehicle classes. An empty cell array means all vehicles are
5 | % allowed.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getAllowed.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | allowed = traci.lane.getUniversal(constants.LANE_ALLOWED, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getCO2Emission.m:
--------------------------------------------------------------------------------
1 | function CO2Emission = getCO2Emission(laneID)
2 | %getCO2Emission Returns the CO2 emission on the given lane.
3 | % CO2Emission = getCO2Emission(LANEID) Returns the CO2 emission in mg for
4 | % the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getCO2Emission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | CO2Emission = traci.lane.getUniversal(constants.VAR_CO2EMISSION, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getCOEmission.m:
--------------------------------------------------------------------------------
1 | function COEmission = getCOEmission(laneID)
2 | %getCOEmission Returns the CO emission on the given lane.
3 | % COEmission = getCOEmission(LANEID) Returns the CO emission in mg for
4 | % the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getCOEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | COEmission = traci.lane.getUniversal(constants.VAR_COEMISSION, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getDisallowed.m:
--------------------------------------------------------------------------------
1 | function disallowed = getDisallowed(laneID)
2 | %getDisallowed Get the disallowed vehicle classes in the lane.
3 | % disallowed = getDisallowed(LANEID) Returns a cell array of strings containing
4 | % the disallowed vehicle classes.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getDisallowed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | disallowed = traci.lane.getUniversal(constants.LANE_DISALLOWED, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getEdgeID.m:
--------------------------------------------------------------------------------
1 | function edgeID = getEdgeID(laneID)
2 | %getEdgeID Returns the id of the edge the lane belongs to.
3 | % edgeID = getEdgeID(LANEID) Returns the id of the edge the lane belongs
4 | % to.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getEdgeID.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | edgeID = traci.lane.getUniversal(constants.LANE_EDGE_ID, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getFuelConsumption.m:
--------------------------------------------------------------------------------
1 | function FuelConsumption = getFuelConsumption(laneID)
2 | %getFuelConsumption Get the fuel consumption on the lane.
3 | % fuelConsumption = getFuelConsumption(LANEID) Returns the fuel
4 | % consumption in ml for the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getFuelConsumption.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | FuelConsumption = traci.lane.getUniversal(constants.VAR_FUELCONSUMPTION, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getHCEmission.m:
--------------------------------------------------------------------------------
1 | function HCEmission = getHCEmission(laneID)
2 | %getHCEmission Returns the HC emission on the given lane.
3 | % HCEmission = getCOEmission(LANEID) Returns the HC emission in mg for
4 | % the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getHCEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | HCEmission = traci.lane.getUniversal(constants.VAR_HCEMISSION, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the lanes in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the lanes in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.lane.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getInternalFoes.m:
--------------------------------------------------------------------------------
1 | function foes = getInternalFoes(laneID)
2 | %getInternalFoes Returns internal lanes that have right of way.
3 | % foes = getInternalFoes(LANEID) Returns the ids of internal lanes that
4 | % are in conflict with the given internal lane id.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getInternalFoes.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | foes = traci.lane.getFoes(laneID, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getLastStepLength.m:
--------------------------------------------------------------------------------
1 | function lastStepLength = getLastStepLength(laneID)
2 | %getLastStepLength Get the mean vehicle length on the lane.
3 | % lastStepLength = getLastStepLength(LANEID) Returns the mean vehicle
4 | % length in m for the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepLength.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lastStepLength = traci.lane.getUniversal(constants.LAST_STEP_LENGTH, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getLastStepMeanSpeed.m:
--------------------------------------------------------------------------------
1 | function lastStepMeanSpeed = getLastStepMeanSpeed(laneID)
2 | %getLastStepMeanSpeed Get the average speed on the lane.
3 | % lastStepMeanSpeed = getLastStepMeanSpeed(LANEID) Returns the average
4 | % speed in m/s for the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepMeanSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lastStepMeanSpeed = traci.lane.getUniversal(constants.LAST_STEP_MEAN_SPEED, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getLastStepOccupancy.m:
--------------------------------------------------------------------------------
1 | function lastStepOccupancy = getLastStepOccupancy(laneID)
2 | %getLastStepOccupancy Get the percentage of occupation on the lane.
3 | % lastStepOccupancy = getLastStepOccupancy(LANEID) Returns the occupancy
4 | % in percentage for the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepOccupancy.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lastStepOccupancy = traci.lane.getUniversal(constants.LAST_STEP_OCCUPANCY, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getLength.m:
--------------------------------------------------------------------------------
1 | function length = getLength(laneID)
2 | %getLength Returns the length of the lane in m.
3 | % length = getLength(LANEID) Returns the length of the lane in m.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getLength.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | length = traci.lane.getUniversal(constants.VAR_LENGTH, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getLinkNumber.m:
--------------------------------------------------------------------------------
1 | function linkNumber = getLinkNumber(laneID)
2 | %getLinkNumber Returns the number of connections to successive lanes.
3 | % linkNumber = getLinkNumber(LANEID) Returns the number of connections to
4 | % successive lanes.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLinkNumber.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | linkNumber = traci.lane.getUniversal(constants.LANE_LINK_NUMBER, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getLinks.m:
--------------------------------------------------------------------------------
1 | function links = getLinks(laneID)
2 | %getLinks Returns a cell containing ids of successor lanes together with
3 | %priority, open and foe.
4 | % links = getLinks(LANEID) Returns a cell containing ids of successor
5 | % lanes together with priority, open and foe.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getLinks.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | links = traci.lane.getUniversal(constants.LANE_LINKS, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getMaxSpeed.m:
--------------------------------------------------------------------------------
1 | function maxSpeed = getMaxSpeed(laneID)
2 | % getMaxSpeed Maximum allowed speed in the lane.
3 | % maxSpeed = getMaxSpeed(LANEID) Returns the maximum allowed speed on the
4 | % lane in m/s.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMaxSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | maxSpeed = traci.lane.getUniversal(constants.VAR_MAXSPEED, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getNOxEmission.m:
--------------------------------------------------------------------------------
1 | function NOxEmission = getNOxEmission(laneID)
2 | %getNOxEmission Get the NOx emission in the lane.
3 | % NOxEmission = getNOxEmission(LANEID) Returns the NOx emission in mg for
4 | % the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getNOxEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | NOxEmission = traci.lane.getUniversal(constants.VAR_NOXEMISSION, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getNoiseEmission.m:
--------------------------------------------------------------------------------
1 | function noiseEmission = getNoiseEmission(laneID)
2 | %getNoiseEmission Get the noise emission in the lane.
3 | % noiseEmission = getNoiseEmission(LANEID) Returns the noise emission in
4 | % db for the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getNoiseEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | noiseEmission = traci.lane.getUniversal(constants.VAR_NOISEEMISSION, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getPMxEmission.m:
--------------------------------------------------------------------------------
1 | function PMxEmission = getPMxEmission(laneID)
2 | %getPmxEmission Get the particular matter emission in the lane.
3 | % pmxEmission = getPmxEmission(LANEID) Returns the particular matter
4 | % emission in mg for the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPMxEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | PMxEmission = traci.lane.getUniversal(constants.VAR_PMXEMISSION, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getShape.m:
--------------------------------------------------------------------------------
1 | function shape = getShape(laneID)
2 | %getShape Get the shape of the lane.
3 | % shape = getShape(LANEID) Returns a list of 2D positions (cartesian)
4 | % describing the geometry of the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getShape.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | shape = traci.lane.getUniversal(constants.VAR_SHAPE, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getTraveltime.m:
--------------------------------------------------------------------------------
1 | function traveltime = getTraveltime(laneID)
2 | %getTraveltime Get estimated travel time in the lane.
3 | % traveltime = getTraveltime(LANEID) Returns the estimated travel time in
4 | % seconds for the last time step on the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getTraveltime.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traveltime = traci.lane.getUniversal(constants.VAR_CURRENT_TRAVELTIME, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getWaitingTime.m:
--------------------------------------------------------------------------------
1 | function waitingTime = getWaitingTime(laneID)
2 | %getWaitingTime Returns the waiting time in seconds.
3 | % waitingTime = getWaitingTime(LANEID) eturns the waiting time in seconds
4 | % for the given lane.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getWaitingTime.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 |
13 | waitingTime = traci.lane.getUniversal(constants.VAR_WAITING_TIME, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/getWidth.m:
--------------------------------------------------------------------------------
1 | function width = getWidth(laneID)
2 | %getWidth Returns the width of the lane in m.
3 | % width = getWidth(LANEID) Returns the width of the lane in m.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getWidth.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | width = traci.lane.getUniversal(constants.VAR_WIDTH, laneID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/setLength.m:
--------------------------------------------------------------------------------
1 | function setLength(laneID, len)
2 | %setLength Sets the length of the lane in m.
3 | % setLength(LANEID,LENGTH) Sets the length of the lane in m.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setLength.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_LANE_VARIABLE, constants.VAR_LENGTH, laneID, len)
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lane/setMaxSpeed.m:
--------------------------------------------------------------------------------
1 | function setMaxSpeed(laneID, speed)
2 | %setMaxSpeed Sets a new maximum allowed speed on the lane in m/s.
3 | % setMaxSpeed(LANEID,SPEED) Sets a new maximum allowed speed on the lane
4 | % in m/s.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMaxSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_LANE_VARIABLE, constants.VAR_MAXSPEED, laneID, speed)
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getIDCount.m:
--------------------------------------------------------------------------------
1 | function IDCount = getIDCount()
2 | %getIDCount Get the number of aeral detectors in the SUMO network.
3 |
4 | % Copyright 2019 Universidad Nacional de Colombia,
5 | % Politecnico Jaime Isaza Cadavid.
6 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
7 | % $Id: getIDCount.m 54 2019-01-03 15:41:54Z afacostag $
8 |
9 | import traci.constants
10 | IDCount = traci.lanearea.getUniversal(constants.ID_COUNT, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the lanearea detectors in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the lanearea detectors in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.lanearea.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getJamLengthMeters.m:
--------------------------------------------------------------------------------
1 | function JamLengthMeters = getJamLengthMeters(detID)
2 | %getJamLengthMeters Return the jam length in vehicles.
3 | % JamLengthVehicle = getJamLengthVehicle(DETID) Returns the
4 | % jam length in meters within the last simulation step on
5 | % the given lanearea detector.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getJamLengthMeters.m 54 2019-01-03 15:41:54Z afacostag $
11 |
12 | import traci.constants
13 | JamLengthMeters = traci.lanearea.getUniversal(constants.JAM_LENGTH_METERS, detID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getJamLengthVehicle.m:
--------------------------------------------------------------------------------
1 | function JamLengthVehicle = getJamLengthVehicle(detID)
2 | %getJamLengthVehicle Return the jam length in vehicles.
3 | % JamLengthVehicle = getJamLengthVehicle(DETID) Returns the
4 | % jam length in vehicles within the last simulation step on
5 | % the given lanearea detector.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getJamLengthVehicle.m 54 2019-01-03 15:41:54Z afacostag $
11 |
12 | import traci.constants
13 | JamLengthVehicle = traci.lanearea.getUniversal(constants.JAM_LENGTH_VEHICLE, detID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getLaneID.m:
--------------------------------------------------------------------------------
1 | function laneID = getLaneID(detID)
2 | %getLaneID Returns the id of the lane the detector is on.
3 | % laneID = getLaneID(DETID) Returns the id of the lane the detector is on.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getLaneID.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | laneID = traci.lanearea.getUniversal(constants.VAR_LANE_ID, detID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getLastStepMeanSpeed.m:
--------------------------------------------------------------------------------
1 | function lastStepMeanSpeed = getLastStepMeanSpeed(detID)
2 | %getLastStepMeanSpeed Get the average speed on the lanearea detector.
3 | % lastStepMeanSpeed = getLastStepMeanSpeed(DETID) Returns the average
4 | % speed in m/s for the last time step on the given lanearea detector.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepMeanSpeed.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | lastStepMeanSpeed = traci.lanearea.getUniversal(constants.LAST_STEP_MEAN_SPEED, detID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getLastStepOccupancy.m:
--------------------------------------------------------------------------------
1 | function lastStepOccupancy = getLastStepOccupancy(detID)
2 | %getLastStepOccupancy Get the percentage of occupation on the lanearea detector.
3 | % lastStepOccupancy = getLastStepOccupancy(DETID) Returns the occupancy
4 | % in percentage for the last time step on the given lanearea detector.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastStepOccupancy.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | lastStepOccupancy = traci.lanearea.getUniversal(constants.LAST_STEP_OCCUPANCY, detID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getLength.m:
--------------------------------------------------------------------------------
1 | function length = getLength(detID)
2 | %getLength Returns the length of the detector.
3 | % length = getLength(DETID) Returns the length of the given detector in m.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getLength.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | length = traci.lanearea.getUniversal(constants.VAR_LENGTH, detID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+lanearea/getPosition.m:
--------------------------------------------------------------------------------
1 | function position = getPosition(detID)
2 | %getPosition Get the position of the detector.
3 | % position = getPosition(DETID) Returns the starting position of the
4 | % detector measured from the beginning of the lane in meters.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPosition.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | position = traci.lanearea.getUniversal(constants.VAR_POSITION, detID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+multientryexit/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the multi-entry/multi-exit detectors in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the multi-entry/multi-exit detectors in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.multientryexit.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+multientryexit/getLastStepMeanSpeed.m:
--------------------------------------------------------------------------------
1 | function lastStepMeanSpeed = getLastStepMeanSpeed(detID)
2 | %getLastStepMeanSpeed Get the average speed.
3 | % lastStepMeanSpeed = getLastStepMeanSpeed(DETID) Returns the average
4 | % speed in m/s for the last time step on the given multi-entry/multi-exit
5 | % detector.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getLastStepMeanSpeed.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | lastStepMeanSpeed = traci.multientryexit.getUniversal(constants.LAST_STEP_MEAN_SPEED, detID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getAngle.m:
--------------------------------------------------------------------------------
1 | function angle = getAngle(personID)
2 | %getAngle Get the angle of the person.
3 | % angle = getAngle(PERSONID) Returns the angle in degrees of the named
4 | % person within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getAngle.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | angle = traci.person.getUniversal(constants.VAR_ANGLE, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getColor.m:
--------------------------------------------------------------------------------
1 | function color = getColor(personID)
2 | %getColor Get the color of the person.
3 | % color = getColor(PERSONID) Returns the person's rgba color.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getColor.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | color = traci.person.getUniversal(constants.VAR_COLOR, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getIDCount.m:
--------------------------------------------------------------------------------
1 | function IDCount = getIDCount()
2 | %getIDCount Get the number of persons in the SUMO network.
3 |
4 | % Copyright 2019 Universidad Nacional de Colombia,
5 | % Politecnico Jaime Isaza Cadavid.
6 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
7 | % $Id: getIDCount.m 48 2018-12-26 15:35:20Z afacostag $
8 |
9 | import traci.constants
10 | IDCount = traci.person.getUniversal(constants.ID_COUNT, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the persons in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the persons in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.person.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getLanePosition.m:
--------------------------------------------------------------------------------
1 | function lanePosition = getLanePosition(personID)
2 | %getLanePosition Get the position of the person along the lane.
3 | % lanePosition = getLanePosition(PERSONID) Returns the position of the
4 | % person along the lane measured in m.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLanePosition.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lanePosition = traci.person.getUniversal(constants.VAR_LANEPOSITION, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getLength.m:
--------------------------------------------------------------------------------
1 | function length = getLength(personID)
2 | %getLength Returns the length in m of the given person.
3 | % length = getLength(PERSONID) Returns the length in m of the given person.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getLength.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | length = traci.person.getUniversal(constants.VAR_LENGTH, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getMinGap.m:
--------------------------------------------------------------------------------
1 | function minGap = getMinGap(personID)
2 | %getMinGap Returns the gap to front person.
3 | % minGap = getMinGap(PERSONID) Returns the offset (gap to front person if
4 | % halting) of this person.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMinGap.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | minGap = traci.person.getUniversal(constants.VAR_MINGAP, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getPosition.m:
--------------------------------------------------------------------------------
1 | function position = getPosition(personID)
2 | %getPosition Returns the position of the named person within the last step.
3 | % position = getPosition(PERSONID) Returns the x,y position of the named
4 | % person within the last step [m,m].
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPosition.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | position = traci.person.getUniversal(constants.VAR_POSITION, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getPosition3D.m:
--------------------------------------------------------------------------------
1 | function position = getPosition3D(personID)
2 | %getPosition3D Returns the position of the named person within the last step.
3 | % position = getPosition3D(PERSONID) Returns the position of the named
4 | % person within the last step [m,m,m].
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPosition3D.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | position = traci.person.getUniversal(constants.VAR_POSITION3D, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getRemainingStages.m:
--------------------------------------------------------------------------------
1 | function remStages = getRemainingStages(personID)
2 | %getRemainingStages Returns the number of remaining stages.
3 | % remStages = getRemainingStages(PERSONID) Returns the number of
4 | % remaining stages (at least 1).
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getRemainingStages.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | remStages = traci.person.getUniversal(constants.VAR_STAGES_REMAINING, personID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getRoadID.m:
--------------------------------------------------------------------------------
1 | function roadID = getRoadID(personID)
2 | %getRoadID Returns the edge the person was at in last step.
3 | % roadID = getRoadID(PERSONID) Returns the id of the edge the named person
4 | % was at within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getRoadID.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | roadID = traci.person.getUniversal(constants.VAR_ROAD_ID, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getSpeed.m:
--------------------------------------------------------------------------------
1 | function speed = getSpeed(personID)
2 | %getSpeed Get the person speed.
3 | % speed = getSpeed(PERSONID) Returns the speed in m/s of the named person
4 | % within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | speed = traci.person.getUniversal(constants.VAR_SPEED, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getTypeID.m:
--------------------------------------------------------------------------------
1 | function typeID = getTypeID(personID)
2 | %getTypeID Returns the id of the type of the named person.
3 | % typeID = getTypeID(PERSONID) Returns the id of the type of the named
4 | % person.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getTypeID.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | typeID = traci.person.getUniversal(constants.VAR_TYPE, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getVehicle.m:
--------------------------------------------------------------------------------
1 | function vehicle = getVehicle(personID)
2 | %getVehicle Returns the id of the current vehicle.
3 | % vehicle = getVehicle(PERSONID) Returns the id of the current vehicle if
4 | % the person is in stage driving and has entered a vehicle. Return the
5 | % empty string otherwise
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getVehicle.m 54 2019-01-03 15:41:54Z afacostag $
11 |
12 | import traci.constants
13 | vehicle = traci.person.getUniversal(constants.VAR_VEHICLE, personID);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/getWidth.m:
--------------------------------------------------------------------------------
1 | function width = getWidth(personID)
2 | %getWidth Returns the width in m of this person.
3 | % width = getWidth(PERSONID) Returns the width in m of this person.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getWidth.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | width = traci.person.getUniversal(constants.VAR_WIDTH, personID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/setHeight.m:
--------------------------------------------------------------------------------
1 | function setHeight(personID, height)
2 | %setHeight Sets the height in m for this person.
3 | % setHeight(PERSONID) Sets the height in m for this person.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setHeight.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 |
12 | traci.sendDoubleCmd(constants.CMD_SET_PERSON_VARIABLE, constants.VAR_HEIGHT,...
13 | personID, height);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/setLength.m:
--------------------------------------------------------------------------------
1 | function setLength(personID, length)
2 | %setLength Sets the length in m for this person.
3 | % setLength(PERSONID) Sets the length in m for this person.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setLength.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 |
12 | traci.sendDoubleCmd(constants.CMD_SET_PERSON_VARIABLE, constants.VAR_LENGTH,...
13 | personID, length);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/setMinGap.m:
--------------------------------------------------------------------------------
1 | function setMinGap(personID, minGap)
2 | %setMinGap Sets the minimum Gap for this person.
3 | % setMinGap(PERSONID) Sets the offset (gap to front person if halting)
4 | % for this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMinGap.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 |
13 | traci.sendDoubleCmd(constants.CMD_SET_PERSON_VARIABLE, constants.VAR_MINGAP,...
14 | personID, minGap);
15 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/setSpeed.m:
--------------------------------------------------------------------------------
1 | function setSpeed(personID, speed)
2 | %setSpeed Set maximum speed.
3 | % setSpeed(PERSONID) Sets the maximum speed in m/s for the named person
4 | % for subsequent step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setSpeed.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 |
13 | traci.sendDoubleCmd(constants.CMD_SET_PERSON_VARIABLE, constants.VAR_SPEED,...
14 | personID, speed);
15 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/setType.m:
--------------------------------------------------------------------------------
1 | function setType(personID, typeID)
2 | %setType Sets the id of the type for the named person.
3 | % setType(PERSONID) Sets the id of the type for the named person.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setType.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 |
12 | traci.sendStringCmd(constants.CMD_SET_PERSON_VARIABLE, constants.VAR_TYPE,...
13 | personID, typeID);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+person/setWidth.m:
--------------------------------------------------------------------------------
1 | function setWidth(personID, width)
2 | %setWidth Sets the width in m for this person.
3 | % setWidth(PERSONID) Sets the width in m for this person.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setWidth.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 |
12 | traci.sendDoubleCmd(constants.CMD_SET_PERSON_VARIABLE, constants.VAR_WIDTH,...
13 | personID, width);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+poi/getColor.m:
--------------------------------------------------------------------------------
1 | function color = getColor(poiID)
2 | %getColor Get the color of the poi.
3 | % color = getColor(POIID) Returns the rgba color of the given poi.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getColor.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | color = traci.poi.getUniversal(constants.VAR_COLOR, poiID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+poi/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the pois in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the pois in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.poi.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+poi/getPosition.m:
--------------------------------------------------------------------------------
1 | function position = getPosition(poiID)
2 | %getPosition Get the position of the poi.
3 | % position = getPosition(POIID) Returns the position coordinates of
4 | % the given poi.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPosition.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | position = traci.poi.getUniversal(constants.VAR_POSITION, poiID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+poi/getType.m:
--------------------------------------------------------------------------------
1 | function type = getType(poiID)
2 | %getType Returns the (abstract) type of the poi.
3 | % type = getType(POIID) Returns the (abstract) type of the poi.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getType.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | type = traci.poi.getUniversal(constants.VAR_TYPE, poiID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+poi/setPosition.m:
--------------------------------------------------------------------------------
1 | function setPosition(poiID, x, y)
2 | %setPosition Sets the position coordinates of the poi.
3 | % setPosition(POIID,X,Y) Sets the position coordinates of the poi.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setPosition.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | global message
12 | traci.beginMessage(constants.CMD_SET_POI_VARIABLE, constants.VAR_POSITION, poiID, 1+8+8);
13 | message.string = [message.string uint8(sscanf(constants.POSITION_2D,'%x')) traci.packInt64([y x])];
14 | traci.sendExact();
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+polygon/getColor.m:
--------------------------------------------------------------------------------
1 | function color = getColor(polygonID)
2 | %getColor Get the color of the polygon.
3 | % color = getColor(POLYGONID) Returns the rgba color of the given polygon.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getColor.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | color = traci.polygon.getUniversal(constants.VAR_COLOR, polygonID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+polygon/getFilled.m:
--------------------------------------------------------------------------------
1 | function isFilled = getFilled(polygonID)
2 | %getFilled Returns whether the polygon is filled.
3 | % isFilled = getFilled(POLYGONID) Returns whether the polygon is filled.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getFilled.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | isFilled = traci.polygon.getUniversal(constants.VAR_FILL, polygonID);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+polygon/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the polygons in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the polygons in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.polygon.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+polygon/getLineWidth.m:
--------------------------------------------------------------------------------
1 | function lineWidth = getLineWidth(polygonID)
2 | %getLineWidth Returns drawing width of unfilled polygon.
3 | % lineWidth = getLineWidth(POLYGONID) Returns drawing width of unfilled
4 | % polygon.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLineWidth.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | lineWidth = traci.polygon.getUniversal(constants.VAR_WIDTH, polygonID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+polygon/getShape.m:
--------------------------------------------------------------------------------
1 | function shape = getShape(polygonID)
2 | %getShape Get the shape of the polygon.
3 | % shape = getShape(POLYGONID) Returns the shape of the given polygon,
4 | % which is a cell array containing 2-dimensional vectors that represent
5 | % the x and y coordinates of the points that define the shape of the
6 | % polygon.
7 |
8 | % Copyright 2019 Universidad Nacional de Colombia,
9 | % Politecnico Jaime Isaza Cadavid.
10 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
11 | % $Id: getShape.m 48 2018-12-26 15:35:20Z afacostag $
12 |
13 | import traci.constants
14 | shape = traci.polygon.getUniversal(constants.VAR_SHAPE, polygonID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+polygon/getType.m:
--------------------------------------------------------------------------------
1 | function type = getType(polygonID)
2 | %getType Returns the (abstract) type of the polygon.
3 | % type = getType(POLYGONID) Returns the (abstract) type of the polygon.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getType.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | type = traci.polygon.getUniversal(constants.VAR_TYPE, polygonID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+polygon/setFilled.m:
--------------------------------------------------------------------------------
1 | function setFilled(polygonID, filled)
2 | %setFilled Sets the filled status of the polygon.
3 | % setFilled(POLYGONID, FILLED) Sets the filled status of the polygon.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setFilled.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 |
12 | traci.sendIntCmd(constants.CMD_SET_POLYGON_VARIABLE, constants.VAR_FILL,...
13 | polygonID, int32(filled));
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+polygon/setLineWidth.m:
--------------------------------------------------------------------------------
1 | function setLineWidth(polygonID, lineWidth)
2 | %setLineWidth Sets the line width for drawing unfilled polygon.
3 | % setLineWidth(POLYGONID, LINEWIDTH) Sets the line width for drawing
4 | % unfilled polygon
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setLineWidth.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 |
13 | traci.sendDoubleCmd(constants.CMD_SET_POLYGON_VARIABLE, constants.VAR_WIDTH,...
14 | polygonID, lineWidth);
15 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+route/getEdges.m:
--------------------------------------------------------------------------------
1 | function edges = getEdges(routeID)
2 | %getEdges Return the edges of the route.
3 | % edges = getEdges(ROUTEID) Returns a list of all edges in the route. The
4 | % list of edges is a cell array of strings whose elements are the IDs of
5 | % the edges.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getEdges.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | edges = traci.route.getUniversal(constants.VAR_EDGES, routeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+route/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the routes in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the routes in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.route.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getArrivedNumber.m:
--------------------------------------------------------------------------------
1 | function arrivedNumber = getArrivedNumber()
2 | %getArrivedNumber Get the number of arrived vehicles.
3 | % arrivedNumber = getArrivedNumber() Returns the number of vehicles which
4 | % arrived (have reached their destination and are removed from the road
5 | % network) in this time step.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getArrivedNumber.m 50 2018-12-28 16:25:47Z afacostag $
11 |
12 | import traci.constants
13 | arrivedNumber = traci.simulation.getUniversal(constants.VAR_ARRIVED_VEHICLES_NUMBER);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getBusStopWaiting.m:
--------------------------------------------------------------------------------
1 | function busStopWaiting = getBusStopWaiting(stopID)
2 | %getBusStopWaiting Number of waiting persons at a bus stop.
3 | % busStopWaiting = getBusStopWaiting() Get the total number of waiting
4 | % persons at the named bus stop.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getBusStopWaiting.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | busStopWaiting = traci.simulation.getUniversal(constants.VAR_BUS_STOP_WAITING, stopID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getCollidingVehiclesIDList.m:
--------------------------------------------------------------------------------
1 | function collidingIDList = getCollidingVehiclesIDList()
2 | %getCollidingVehiclesIDList
3 | % collidingIDList = getCollidingVehiclesIDList()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getCollidingVehiclesIDList.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | collidingIDList = traci.simulation.getUniversal(constants.VAR_COLLIDING_VEHICLES_IDS);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getCollidingVehiclesNumber.m:
--------------------------------------------------------------------------------
1 | function collidingNumber = getCollidingVehiclesNumber()
2 | %getCollidingVehiclesNumber
3 | % collidingNumber = getCollidingVehiclesNumber()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getCollidingVehiclesNumber.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | collidingNumber = traci.simulation.getUniversal(constants.VAR_COLLIDING_VEHICLES_NUMBER);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getCurrentTime.m:
--------------------------------------------------------------------------------
1 | function currentTime = getCurrentTime()
2 | %getCurrentTime Returns the current simulation time in ms.
3 | % currentTime = getCurrentTime() Returns the current simulation time in
4 | % ms.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getCurrentTime.m 50 2018-12-28 16:25:47Z afacostag $
10 |
11 | import traci.constants
12 | warning('getCurrentTime is deprecated, please use getTime which returns floating point seconds')
13 | currentTime = traci.simulation.getUniversal(constants.VAR_TIME_STEP);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getDeltaT.m:
--------------------------------------------------------------------------------
1 | function deltaT = getDeltaT()
2 | %getDeltaT Returns the time-step of the simulation in ms.
3 | % deltaT = getDeltaT() Returns the time-step of the simulation in ms.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getDeltaT.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | deltaT = traci.simulation.getUniversal(constants.VAR_DELTA_T);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getDepartedIDList.m:
--------------------------------------------------------------------------------
1 | function departedIDList = getDepartedIDList()
2 | %getDepartedIDList Get the IDs of departed vehicles.
3 | % departedIDList = getDepartedIDList() Returns a cell array of strings
4 | % containing the ids of vehicles which departed (were inserted into the
5 | % road network) in this time step.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getDepartedIDList.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | departedIDList = traci.simulation.getUniversal(constants.VAR_DEPARTED_VEHICLES_IDS);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getDepartedNumber.m:
--------------------------------------------------------------------------------
1 | function departedNumber = getDepartedNumber()
2 | %getDepartedNumber Get the number of departed vehicles.
3 | % departedNumber = getDepartedNumber() Returns the number of vehicles
4 | % which departed (were inserted into the road network) in this time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getDepartedNumber.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | departedNumber = traci.simulation.getUniversal(constants.VAR_DEPARTED_VEHICLES_NUMBER);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getEmergencyStoppingVehiclesIDList.m:
--------------------------------------------------------------------------------
1 | function emergencyStoppingIDList = getEmergencyStoppingVehiclesIDList()
2 | %getEmergencyStoppingVehiclesIDList
3 | % emergencyStoppingIDList = getEmergencyStoppingVehiclesIDList()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getEmergencyStoppingVehiclesIDList.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | emergencyStoppingIDList = traci.simulation.getUniversal(constants.VAR_EMERGENCYSTOPPING_VEHICLES_IDS);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getEmergencyStoppingVehiclesNumber.m:
--------------------------------------------------------------------------------
1 | function emergencyStoppingNumber = getEmergencyStoppingVehiclesNumber()
2 | %getEmergencyStoppingVehiclesNumber
3 | % emergencyStoppingNumber = getEmergencyStoppingVehiclesNumber()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getEmergencyStoppingVehiclesNumber.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | emergencyStoppingNumber = traci.simulation.getUniversal(constants.VAR_EMERGENCYSTOPPING_VEHICLES_NUMBER);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getEndingTeleportNumber.m:
--------------------------------------------------------------------------------
1 | function endingTeleportNumber = getEndingTeleportNumber()
2 | %getEndingTeleportNumber Get the number teleported vehicles.
3 | % endingTeleportNumber = getEndingTeleportNumber() Returns the number of
4 | % vehicles which ended to be teleported in this time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getEndingTeleportNumber.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | endingTeleportNumber = traci.simulation.getUniversal(constants.VAR_TELEPORT_ENDING_VEHICLES_NUMBER);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getLoadedIDList.m:
--------------------------------------------------------------------------------
1 | function loadedIDList = getLoadedIDList()
2 | %getLoadedIDList Get the IDs of loaded vehicles.
3 | % loadedIDList = getLoadedIDList() Returns a cell array of strings
4 | % cotaining the ids of the vehicles which were loaded in this time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLoadedIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | loadedIDList = traci.simulation.getUniversal(constants.VAR_LOADED_VEHICLES_IDS);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getLoadedNumber.m:
--------------------------------------------------------------------------------
1 | function loadedNumber = getLoadedNumber()
2 | %getLoadedNumber Get the number loaded vehicles.
3 | % loadedNumber = getLoadedNumber() Returns the number of vehicles which
4 | % were loaded in this time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLoadedNumber.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | loadedNumber = traci.simulation.getUniversal(constants.VAR_LOADED_VEHICLES_NUMBER);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getNetBoundary.m:
--------------------------------------------------------------------------------
1 | function netBoundary = getNetBoundary()
2 | %getNetBoundary Get the boundary box of the network.
3 | % netBoundary = getNetBoundary() Returns the coordinates of the
4 | % lower-left and the upper-right points that define the boundaries of the
5 | % network.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getNetBoundary.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | netBoundary = traci.simulation.getUniversal(constants.VAR_NET_BOUNDING_BOX);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getParkingEndingVehiclesIDList.m:
--------------------------------------------------------------------------------
1 | function parkingEndingIDList = getParkingEndingVehiclesIDList()
2 | %getParkingEndingVehiclesIDList
3 | % parkingEndingIDList = getParkingSEndingVehiclesIDList()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getParkingEndingVehiclesIDList.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | parkingEndingIDList = traci.simulation.getUniversal(constants.VAR_PARKING_ENDING_VEHICLES_IDS);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getParkingEndingVehiclesNumber.m:
--------------------------------------------------------------------------------
1 | function parkingEndingNumber = getParkingEndingVehiclesNumber()
2 | %getParkingEndingVehiclesNumber
3 | % parkingEndingNumber = getParkingEndingVehiclesNumber()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getParkingEndingVehiclesNumber.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | parkingEndingNumber = traci.simulation.getUniversal(constants.VAR_PARKING_ENDING_VEHICLES_NUMBER);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getParkingStartingVehiclesIDList.m:
--------------------------------------------------------------------------------
1 | function parkingStartingIDList = getParkingStartingVehiclesIDList()
2 | %getParkingStartingVehiclesIDList
3 | % parkingStartingIDList = getParkingStartingVehiclesIDList()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getParkingStartingVehiclesIDList.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | parkingStartingIDList = traci.simulation.getUniversal(constants.VAR_PARKING_STARTING_VEHICLES_IDS);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getParkingStartingVehiclesNumber.m:
--------------------------------------------------------------------------------
1 | function parkingStartingNumber = getParkingStartingVehiclesNumber()
2 | %getParkingStartingVehiclesNumber
3 | % parkingStartingNumber = getParkingStartingVehiclesNumber()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getParkingStartingVehiclesNumber.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | parkingStartingNumber = traci.simulation.getUniversal(constants.VAR_PARKING_STARTING_VEHICLES_NUMBER);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getStopEndingVehiclesIDList.m:
--------------------------------------------------------------------------------
1 | function stopEndingIDList = getStopEndingVehiclesIDList()
2 | %getStopEndingVehiclesIDList
3 | % stopEndingIDList = getStopEndingVehiclesIDList()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getStopEndingVehiclesIDList.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | stopEndingIDList = traci.simulation.getUniversal(constants.VAR_STOP_ENDING_VEHICLES_IDS);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getStopEndingVehiclesNumber.m:
--------------------------------------------------------------------------------
1 | function stopEndingNumber = getStopEndingVehiclesNumber()
2 | %getStopEndingVehiclesNumber
3 | % stopEndingNumber = getStopEndingVehiclesNumber()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getStopEndingVehiclesNumber.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | stopEndingNumber = traci.simulation.getUniversal(constants.VAR_STOP_ENDING_VEHICLES_NUMBER);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getStopStartingVehiclesIDList.m:
--------------------------------------------------------------------------------
1 | function stopStartingIDList = getStopStartingVehiclesIDList()
2 | %getStopStartingVehiclesIDList
3 | % stopStartingIDList = getStopStartingVehiclesIDList()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getStopStartingVehiclesIDList.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | stopStartingIDList = traci.simulation.getUniversal(constants.VAR_STOP_STARTING_VEHICLES_IDS);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getStopStartingVehiclesNumber.m:
--------------------------------------------------------------------------------
1 | function stopStartingNumber = getStopStartingVehiclesNumber()
2 | %getStopStartingVehiclesNumber
3 | % stopStartingNumber = getStopStartingVehiclesNumber()
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getStopStartingVehiclesNumber.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | stopStartingNumber = traci.simulation.getUniversal(constants.VAR_STOP_STARTING_VEHICLES_NUMBER);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/getTime.m:
--------------------------------------------------------------------------------
1 | function time = getTime()
2 | %getTime Returns the current simulation time in s.
3 | % time = getTime() Returns the current simulation time in s.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getTime.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | time = traci.simulation.getUniversal(constants.VAR_TIME);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/saveState.m:
--------------------------------------------------------------------------------
1 | function saveState(fileName)
2 | %saveState
3 | % saveState(FILENAME)
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: saveState.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | global message
12 |
13 | traci.beginMessage(constants.CMD_SET_SIM_VARIABLE, constants.CMD_SAVE_SIMSTATE,...
14 | '', 1+4+length(fileName));
15 | message.string = [message.string uint8(sscanf(constants.TYPE_STRING,'%x')) ...
16 | traci.packInt32(length(fileName)) uint8(fileName)];
17 | traci.sendExact();
18 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+simulation/step.m:
--------------------------------------------------------------------------------
1 | function step(varargin)
2 | %step Make a simulation step.
3 | % step() Perform exactly one simulation step.
4 | % step(TIME) simulate up to the given sim time (in seconds).
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: step.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 |
13 | time = 0;
14 | if nargin > 0
15 | time = varargin{1};
16 | end
17 |
18 | traci.simulationStep(time);
19 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+trafficlights/getControlledLanes.m:
--------------------------------------------------------------------------------
1 | function controlledLanes = getControlledLanes(tlsID)
2 | %getControlledLanes Get the controlled lanes.
3 | % controlledLanes = getControlledLanes(TLSID) Returns a cell array of
4 | % strings containing the ids of the lanes controlled by the given traffic
5 | % lights.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getControlledLanes.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | controlledLanes = traci.trafficlights.getUniversal(constants.TL_CONTROLLED_LANES, tlsID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+trafficlights/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the traffic lights in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the traffic lights in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.trafficlights.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+trafficlights/getNextSwitch.m:
--------------------------------------------------------------------------------
1 | function nextSwitch = getNextSwitch(tlsID)
2 | %getNextSwitch Returns the time in ms at which the next phase change will
3 | %be performed.
4 | % nextSwitch = getNextSwitch(TLSID) Returns the time in ms at which the
5 | % next phase change will be performed.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getNextSwitch.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | nextSwitch = traci.trafficlights.getUniversal(constants.TL_NEXT_SWITCH, tlsID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+trafficlights/getPhase.m:
--------------------------------------------------------------------------------
1 | function phase = getPhase(tlsID)
2 | %getPhase Get the phase index.
3 | % phase = getPhase(TLSID) Returns the current phase index of
4 | % given trafficlights.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPhase.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | phase = traci.trafficlights.getUniversal(constants.TL_CURRENT_PHASE, tlsID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+trafficlights/getPhaseDuration.m:
--------------------------------------------------------------------------------
1 | function phaseDuration = getPhaseDuration(tlsID)
2 | %getPhaseDuration Get the duration of the traffic lights' current phase.
3 | % phaseDuration = getPhaseDuration(TLSID) Returns the phase duration of
4 | % the current phase of the named traffic lights.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPhaseDuration.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | phaseDuration = traci.trafficlights.getUniversal(constants.TL_PHASE_DURATION, tlsID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+trafficlights/getProgram.m:
--------------------------------------------------------------------------------
1 | function program = getProgram(tlsID)
2 | %getProgram Returns the id of the current program.
3 | % program = getProgram(TLSID) Returns the id of the current program.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getProgram.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | program = traci.trafficlights.getUniversal(constants.TL_CURRENT_PROGRAM, tlsID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+trafficlights/setProgram.m:
--------------------------------------------------------------------------------
1 | function setProgram(tlsID, programID)
2 | %setProgram Sets the id of the current program.
3 | % setProgram(TLSID,PROGRAMID)Sets the id of the current program.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setProgram.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendStringCmd(constants.CMD_SET_TL_VARIABLE,...
12 | constants.TL_PROGRAM, tlsID, programID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/changeTarget.m:
--------------------------------------------------------------------------------
1 | function changeTarget(vehID, edgeID)
2 | %changeTarget Change the vehicle's destination.
3 | % changeTarget(VEHID,EDGEID) Changes the vehicle's destination edge to
4 | % the given. The route is rebuilt.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: changeTarget.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.CMD_CHANGETARGET, vehID, edgeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/deactivateGapControl.m:
--------------------------------------------------------------------------------
1 | function deactivateGapControl(vehID)
2 | %deactivateGapControl Deactivate the vehicle's gap control.
3 | % deactivateGapControl(VEHID) Deactivate the vehicle's gap control.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: deactivateGapControl.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 |
12 | traci.vehicle.openGap(vehID, -1, -1, -1, -1);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getAccel.m:
--------------------------------------------------------------------------------
1 | function accel = getAccel(vehID)
2 | %getAccel Get the acceleration of the vehicle.
3 | % accel = getAccel(VEHID) Returns the maximum acceleration possibility in
4 | % m/s^2 of this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getAccel.m 51 2018-12-30 22:32:29Z afacostag $
10 |
11 | import traci.constants
12 | accel = traci.vehicle.getUniversal(constants.VAR_ACCEL, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getAcceleration.m:
--------------------------------------------------------------------------------
1 | function accel = getAcceleration(vehID)
2 | %getAcceleration Get the acceleration of the vehicle.
3 | % accel = accel = getAcceleration(VEHID) Returns the acceleration in
4 | % m/s^2 of this vehicle in the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getAcceleration.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | accel = traci.vehicle.getUniversal(constants.VAR_ACCELERATION, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getActionStepLength.m:
--------------------------------------------------------------------------------
1 | function stepLength = getActionStepLength(vehID)
2 | %getActionStepLength Returns the action step length for this vehicle.
3 | % stepLength = getActionStepLength(VEHID) Returns the action step length
4 | % for this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getActionStepLength.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | stepLength = traci.vehicle.getUniversal(constants.VAR_ACTIONSTEPLENGTH, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getAllowedSpeed.m:
--------------------------------------------------------------------------------
1 | function allowedSpeed = getAllowedSpeed(vehID)
2 | %getAngle Get the maximum allowed speed.
3 | % allowedSpeed = getAllowedSpeed(VEHID) Returns the maximum allowed speed
4 | % on the current lane regarding speed factor in m/s for this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getAllowedSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | allowedSpeed = traci.vehicle.getUniversal(constants.VAR_ALLOWED_SPEED, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getAngle.m:
--------------------------------------------------------------------------------
1 | function angle = getAngle(vehID)
2 | %getAngle Get the angle of the vehicle.
3 | % angle = getAngle(VEHID) Returns the angle in degrees of the named
4 | % vehicle within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getAngle.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | angle = traci.vehicle.getUniversal(constants.VAR_ANGLE, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getApparentDecel.m:
--------------------------------------------------------------------------------
1 | function apparentDecel = getApparentDecel(vehID)
2 | %getApparentDecel Get the aparent deceleration of the vehicle.
3 | % apparentDecel = getApparentDecel(VEHID) Returns the apparent
4 | % deceleration in m/s^2 of this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getApparentDecel.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | apparentDecel = traci.vehicle.getUniversal(constants.VAR_APPARENT_DECEL, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getCO2Emission.m:
--------------------------------------------------------------------------------
1 | function CO2Emission = getCO2Emission(vehID)
2 | %getCO2Emission Returns the CO2 emission of the vehicle.
3 | % CO2Emission = getCO2Emission(VEHID) Returns the CO2 emission in mg for
4 | % the last time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getCO2Emission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | CO2Emission = traci.vehicle.getUniversal(constants.VAR_CO2EMISSION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getCOEmission.m:
--------------------------------------------------------------------------------
1 | function COEmission = getCOEmission(vehID)
2 | %getCOEmission Returns the CO emission of the vehicle.
3 | % COEmission = getCO2Emission(VEHID) Returns the CO emission in mg for
4 | % the last time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getCOEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | COEmission = traci.vehicle.getUniversal(constants.VAR_COEMISSION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getColor.m:
--------------------------------------------------------------------------------
1 | function color = getColor(vehID)
2 | %getColor Get the color of the vehicle.
3 | % color = getColor(VEHID) Returns the vehicle's rgba color.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getColor.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | color = traci.vehicle.getUniversal(constants.VAR_COLOR, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getDecel.m:
--------------------------------------------------------------------------------
1 | function decel = getDecel(vehID)
2 | %getDecel Returns the deceleration of the vehicle.
3 | % decel = getDecel(VEHID) Returns the maximum deceleration possibility
4 | % in m/s^2 of this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getDecel.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | decel = traci.vehicle.getUniversal(constants.VAR_DECEL, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getDistance.m:
--------------------------------------------------------------------------------
1 | function distance = getDistance(vehID)
2 | %getDistance Get the distance from the starting point of the vehicle.
3 | % distance = getDistance(VEHID) Returns the distance to the starting
4 | % point like an odometer
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getDistance.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | distance = traci.vehicle.getUniversal(constants.VAR_DISTANCE, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getEmergencyDecel.m:
--------------------------------------------------------------------------------
1 | function emergencyDecel = getEmergencyDecel(vehID)
2 | %getEmergencyDecel Get the emergency deceleration of the vehicle.
3 | % emergencyDecel = getEmergencyDecel(VEHID) Returns the maximal
4 | % physically possible deceleration in m/s^2 of this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getEmergencyDecel.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | emergencyDecel = traci.vehicle.getUniversal(constants.VAR_EMERGENCY_DECEL, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getEmissionClass.m:
--------------------------------------------------------------------------------
1 | function emissionClass = getEmissionClass(vehID)
2 | %getEmissionClass Returns the emission class of this vehicle.
3 | % emissionClass = getEmissionClass(VEHID) Returns the emission class of
4 | % this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getEmissionClass.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | emissionClass = traci.vehicle.getUniversal(constants.VAR_EMISSIONCLASS, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getFuelConsumption.m:
--------------------------------------------------------------------------------
1 | function fuelConsumption = getFuelConsumption(vehID)
2 | %getFuelConsumption Get the fuel consumption of the vehicle.
3 | % fuelConsumption = getFuelConsumption(VEHID) Returns the fuel
4 | % consumption in ml for the last time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getFuelConsumption.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | fuelConsumption = traci.vehicle.getUniversal(constants.VAR_FUELCONSUMPTION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getHCEmission.m:
--------------------------------------------------------------------------------
1 | function HCEmission = getHCEmission(vehID)
2 | %getHCEmission Returns the HC emission of the vehicle.
3 | % HCEmission = getHCEmission(VEHID) Returns the HC emission in mg for
4 | % the last time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getHCEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | HCEmission = traci.vehicle.getUniversal(constants.VAR_HCEMISSION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getHeight.m:
--------------------------------------------------------------------------------
1 | function height = getHeight(vehID)
2 | %getHeight Get the height of the vehicle.
3 | % height = getHeight(VEHID) Returns the height in m of this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getHeight.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | height = traci.vehicle.getUniversal(constants.VAR_HEIGHT, vehID);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the vehicles in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the vehicles in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.vehicle.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getImperfection.m:
--------------------------------------------------------------------------------
1 | function imperfection = getImperfection(vehID)
2 | %getImperfection Returns driver's imperfection.
3 | % imperfection = getImperfection(VEHID) Returns the driver's imperfection
4 | % (dawdling) [0,1]
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getImperfection.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | imperfection = traci.vehicle.getUniversal(constants.VAR_IMPERFECTION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLaneChangeMode.m:
--------------------------------------------------------------------------------
1 | function lcMode = getLaneChangeMode(vehID)
2 | %getLaneChangeMode Gets the vehicle's lane change mode as a bitset.
3 | % lcMode = getLaneChangeMode(VEHID) Gets the vehicle's lane change mode
4 | % as a bitset.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLaneChangeMode.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | lcMode = traci.vehicle.getUniversal(constants.VAR_LANECHANGE_MODE, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLaneID.m:
--------------------------------------------------------------------------------
1 | function laneID = getLaneID(vehID)
2 | %getLaneID Returns the ID of the lane where the vehicle was in the last step.
3 | % laneID = getLaneID(VEHID) Returns the id of the lane the named vehicle
4 | % was at within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLaneID.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 |
13 |
14 | import traci.constants
15 | laneID = traci.vehicle.getUniversal(constants.VAR_LANE_ID, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLaneIndex.m:
--------------------------------------------------------------------------------
1 | function laneIndex = getLaneIndex(vehID)
2 | %getLaneIndex Returns the index of the lane where the vehicle was in the last step.
3 | % laneIndex = getLaneIndex(VEHID) Returns the index of the lane the named
4 | % vehicle was at within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLaneIndex.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | laneIndex = traci.vehicle.getUniversal(constants.VAR_LANE_INDEX, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLanePosition.m:
--------------------------------------------------------------------------------
1 | function lanePosition = getLanePosition(vehID)
2 | %getLanePosition Get the position of the vehicle along the lane.
3 | % lanePosition = getLanePosition(VEHID) Returns the position of the
4 | % vehicle along the lane measured in m.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLanePosition.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lanePosition = traci.vehicle.getUniversal(constants.VAR_LANEPOSITION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLastActionTime.m:
--------------------------------------------------------------------------------
1 | function lastActionTime = getLastActionTime(vehID)
2 | %getLastActionTime Returns the time of last action point for this vehicle.
3 | % lastActionTime = getLastActionTime(VEHID) Returns the time of last
4 | % action point for this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLastActionTime.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | lastActionTime = traci.vehicle.getUniversal(constants.VAR_LASTACTIONTIME, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLateralAlignment.m:
--------------------------------------------------------------------------------
1 | function lateralAlignment = getLateralAlignment(vehID)
2 | %getLateralAlignment Get the lateral alignment.
3 | % lateralAlignment = getLateralAlignment(VEHID) Returns The preferred lateral
4 | % alignment of the vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLateralAlignment.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lateralAlignment = traci.vehicle.getUniversal(constants.VAR_LATALIGNMENT, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLateralLanePosition.m:
--------------------------------------------------------------------------------
1 | function lateralLanePosition = getLateralLanePosition(vehID)
2 | %getAngle Get the lateral position of the vehicle.
3 | % lateralLanePosition = getLateralLanePosition(VEHID) Returns The lateral
4 | % position of the vehicle on its current lane measured in m.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLateralLanePosition.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | lateralLanePosition = traci.vehicle.getUniversal(constants.VAR_LANEPOSITION_LAT, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLength.m:
--------------------------------------------------------------------------------
1 | function length = getLength(vehID)
2 | %getLength Returns the length in m of the given vehicle.
3 | % length = getLength(VEHID) Returns the length in m of the given vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getLength.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | length = traci.vehicle.getUniversal(constants.VAR_LENGTH, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getLine.m:
--------------------------------------------------------------------------------
1 | function line = getLine(vehID)
2 | %getLine Get the line information of the vehicle.
3 | % line = getLine(VEHID) Returns the line information of this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getLine.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | line = traci.vehicle.getUniversal(constants.VAR_LINE, vehID);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getMaxSpeed.m:
--------------------------------------------------------------------------------
1 | function maxSpeed = getMaxSpeed(vehID)
2 | %getMaxSpeed Returns the maximum speed in m/s of this vehicle.
3 | % maxSpeed = getMaxSpeed(VEHID) Returns the maximum speed in m/s of this
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMaxSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | maxSpeed = traci.vehicle.getUniversal(constants.VAR_MAXSPEED, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getMaxSpeedLat.m:
--------------------------------------------------------------------------------
1 | function maxSpeedLat = getMaxSpeedLat(vehID)
2 | %getMaxSpeedLat Get the maximum lateral speed.
3 | % maxSpeedLat = getMaxSpeedLat(VEHID) Returns the maximum lateral speed
4 | % in m/s of this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMaxSpeedLat.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | maxSpeedLat = traci.vehicle.getUniversal(constants.VAR_MAXSPEED_LAT, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getMinGap.m:
--------------------------------------------------------------------------------
1 | function minGap = getMinGap(vehID)
2 | %getMinGap Returns the gap to front vehicle.
3 | % minGap = getMinGap(VEHID) Returns the offset (gap to front vehicle if
4 | % halting) of this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMinGap.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | minGap = traci.vehicle.getUniversal(constants.VAR_MINGAP, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getMinGapLat.m:
--------------------------------------------------------------------------------
1 | function minGapLat = getMinGapLat(vehID)
2 | %getAngle Get the lateral gap at 50km/h.
3 | % minGapLat = getMinGapLat(VEHID) Returns The desired lateral gap of this
4 | % vehicle at 50km/h in m.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMinGapLat.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | minGapLat = traci.vehicle.getUniversal(constants.VAR_MINGAP_LAT, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getNOxEmission.m:
--------------------------------------------------------------------------------
1 | function NOxEmission = getNOxEmission(vehID)
2 | %getNOxEmission Get the NOx emission of the vehicle.
3 | % NOxEmission = getNOxEmission(VEHID) Returns the NOx emission in mg for
4 | % the last time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getNOxEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | NOxEmission = traci.vehicle.getUniversal(constants.VAR_NOXEMISSION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getNextTLS.m:
--------------------------------------------------------------------------------
1 | function nextTLS = getNextTLS(vehID)
2 | %getNextTLS Get the upcoming traffic lights of the vehicle.
3 | % nextTLS = getNextTLS(VEHID) Return list of upcoming traffic lights
4 | % [(tlsID, tlsIndex, distance, state), ...]
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getNextTLS.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | nextTLS = traci.vehicle.getUniversal(constants.VAR_NEXT_TLS, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getNoiseEmission.m:
--------------------------------------------------------------------------------
1 | function noiseEmission = getNoiseEmission(vehID)
2 | %getNoiseEmission Get the noise emission of the vehicle.
3 | % noiseEmission = getNoiseEmission(VEHID) Returns the noise emission in
4 | % db for the last time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getNoiseEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | noiseEmission = traci.vehicle.getUniversal(constants.VAR_NOISEEMISSION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getPMxEmission.m:
--------------------------------------------------------------------------------
1 | function PMxEmission = getPMxEmission(vehID)
2 | %getPmxEmission Get the particular matter emission of the vehicle.
3 | % pmxEmission = getPmxEmission(VEHID) Returns the particular matter
4 | % emission in mg for the last time step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPMxEmission.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | PMxEmission = traci.vehicle.getUniversal(constants.VAR_PMXEMISSION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getPosition.m:
--------------------------------------------------------------------------------
1 | function position = getPosition(vehID)
2 | %getPosition Returns the position of the named vehicle within the last step.
3 | % position = getPosition(VEHID) Returns the x,y position of the named
4 | % vehicle within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPosition.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | position = traci.vehicle.getUniversal(constants.VAR_POSITION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getPosition3D.m:
--------------------------------------------------------------------------------
1 | function position3D = getPosition3D(vehID)
2 | %getPosition3D Returns the position of the named vehicle within the last step.
3 | % position = getPosition3D(VEHID) Returns the x,y,z position of the named
4 | % vehicle within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getPosition3D.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | position3D = traci.vehicle.getUniversal(constants.VAR_POSITION3D, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getRoadID.m:
--------------------------------------------------------------------------------
1 | function roadID = getRoadID(vehID)
2 | %getRoadID Returns the edge the vehicle was at in last step.
3 | % roadID = getRoadID(VEHID) Returns the id of the edge the named vehicle
4 | % was at within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getRoadID.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | roadID = traci.vehicle.getUniversal(constants.VAR_ROAD_ID, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getRoute.m:
--------------------------------------------------------------------------------
1 | function route = getRoute(vehID)
2 | %getRoute Get the vehicle route.
3 | % route = getRoute(VEHID) Returns a cell array of strings containing the
4 | % ids of the edges the vehicle's route is made of.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getRoute.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | route = traci.vehicle.getUniversal(constants.VAR_EDGES, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getRouteID.m:
--------------------------------------------------------------------------------
1 | function routeID = getRouteID(vehID)
2 | %getRouteID Returns the id of the route of the named vehicle.
3 | % routeID = getRouteID(VEHID) Returns the id of the route of the named
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getRouteID.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | routeID = traci.vehicle.getUniversal(constants.VAR_ROUTE_ID, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getRouteIndex.m:
--------------------------------------------------------------------------------
1 | function routeIndex = getRouteIndex(vehID)
2 | %getRouteIndex Returns the index of the edge on the route route of the
3 | % named vehicle.
4 | % routeID = getRouteIndex(VEHID) Returns the index of the current edge
5 | % within the vehicles route or -1 if the vehicle has not yet departed.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: getRouteIndex.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | routeIndex = traci.vehicle.getUniversal(constants.VAR_ROUTE_INDEX, vehID);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getShapeClass.m:
--------------------------------------------------------------------------------
1 | function shapeClass = getShapeClass(vehID)
2 | %getShapeClass Returns the shape class of this vehicle.
3 | % shapeClass = getShapeClass(VEHID) Returns the shape class of this
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getShapeClass.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | shapeClass = traci.vehicle.getUniversal(constants.VAR_SHAPECLASS, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getSlope.m:
--------------------------------------------------------------------------------
1 | function slope = getSlope(vehID)
2 | %getSlope Get the slope of the vehicle.
3 | % slope = getSlope(VEHID) Returns the slope at the current position of
4 | % the vehicle in degrees
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getSlope.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | slope = traci.vehicle.getUniversal(constants.VAR_SLOPE, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getSpeed.m:
--------------------------------------------------------------------------------
1 | function speed = getSpeed(vehID)
2 | %getSpeed Get the vehicle speed.
3 | % speed = getSpeed(VEHID) Returns the speed in m/s of the named vehicle
4 | % within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | speed = traci.vehicle.getUniversal(constants.VAR_SPEED, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getSpeedDeviation.m:
--------------------------------------------------------------------------------
1 | function speedDeviation = getSpeedDeviation(vehID)
2 | %getSpeedDeviation Returns the maximum speed deviation of the vehicle type.
3 | % speedDeviation = getSpeedDeviation(VEHID) Returns the maximum speed
4 | % deviation of the vehicle type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getSpeedDeviation.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | speedDeviation = traci.vehicle.getUniversal(constants.VAR_SPEED_DEVIATION, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getSpeedFactor.m:
--------------------------------------------------------------------------------
1 | function speedFactor = getSpeedFactor(vehID)
2 | %getSpeedFactor Returns the chosen speed factor for this vehicle.
3 | % speedFactor = getSpeedFactor(VEHID) Returns the chosen speed factor for
4 | % this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getSpeedFactor.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | speedFactor = traci.vehicle.getUniversal(constants.VAR_SPEED_FACTOR, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getSpeedMode.m:
--------------------------------------------------------------------------------
1 | function speedMode = getSpeedMode(vehID)
2 | %getSpeedMode Get the speed mode of the vehicle.
3 | % speedMode = getSpeedMode(VEHID) Returns the speed mode of the vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getSpeedMode.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | speedMode = traci.vehicle.getUniversal(constants.VAR_SPEEDSETMODE, vehID);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getSpeedWithoutTraCI.m:
--------------------------------------------------------------------------------
1 | function speedWithoutTraCI = getSpeedWithoutTraCI(vehID)
2 | % Copyright 2019 Universidad Nacional de Colombia,
3 | % Politecnico Jaime Isaza Cadavid.
4 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
5 | % $Id: getSpeedWithoutTraCI.m 48 2018-12-26 15:35:20Z afacostag $
6 |
7 | import traci.constants
8 | speedWithoutTraCI = traci.vehicle.getUniversal(constants.VAR_SPEED_WITHOUT_TRACI, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getTau.m:
--------------------------------------------------------------------------------
1 | function tau = getTau(vehID)
2 | %getTau Returns the driver's reaction time in s for this vehicle.
3 | % tau = getTau(VEHID) Returns the driver's reaction time in s for this
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getTau.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | tau = traci.vehicle.getUniversal(constants.VAR_TAU, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getTypeID.m:
--------------------------------------------------------------------------------
1 | function typeID = getTypeID(vehID)
2 | %getTypeID Returns the id of the type of the named vehicle.
3 | % typeID = getTypeID(VEHID) Returns the id of the type of the named
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getTypeID.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | typeID = traci.vehicle.getUniversal(constants.VAR_TYPE, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getVehicleClass.m:
--------------------------------------------------------------------------------
1 | function vehicleClass = getVehicleClass(vehID)
2 | %getVehicleClass Returns the vehicle class of this vehicle.
3 | % vehicleClass = getVehicleClass(VEHID) Returns the vehicle class of this
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getVehicleClass.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | vehicleClass = traci.vehicle.getUniversal(constants.VAR_VEHICLECLASS, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getVia.m:
--------------------------------------------------------------------------------
1 | function via = getVia(vehID)
2 | %getVia Get the via edges of the vehicle.
3 | % via = getVia(VEHID) Returns the ids of via edges for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getVia.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | via = traci.vehicle.getUniversal(constants.VAR_VIA, vehID);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/getWidth.m:
--------------------------------------------------------------------------------
1 | function width = getWidth(vehID)
2 | %getWidth Returns the width in m of this vehicle.
3 | % width = getWidth(VEHID) Returns the width in m of this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getWidth.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | width = traci.vehicle.getUniversal(constants.VAR_WIDTH, vehID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/isAtBusStop.m:
--------------------------------------------------------------------------------
1 | function isIt = isAtBusStop(vehID)
2 | %isAtBusStop Return whether the vehicle is stopped at a bus stop.
3 | % isIt = isAtBusStop(VEHID) Return whether the vehicle is stopped at a
4 | % bus stop
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: isAtBusStop.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | isIt = (traci.vehicle.getStopState(vehID) && 16) == 16;
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/isAtContainerStop.m:
--------------------------------------------------------------------------------
1 | function isIt = isAtContainerStop(vehID)
2 | %isAtContainerStop Return whether the vehicle is stopped at a container
3 | %stop.
4 | % isIt = isAtContainerStop(VEHID) Return whether the vehicle is stopped
5 | % at a container stop.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: isAtContainerStop.m 54 2019-01-03 15:41:54Z afacostag $
11 |
12 | import traci.constants
13 | isIt = (traci.vehicle.getStopState(vehID) && 32) == 32;
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/isRouteValid.m:
--------------------------------------------------------------------------------
1 | function isvalid = isRouteValid(vehID)
2 | %isRouteValid Determine whether the current route of the vehicle is valid.
3 | % isvalid = isRouteValid(VEHID) Determine whether the current route of the
4 | % vehicle is valid (i.e. all the edges along the route are connected).
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: isRouteValid.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | isvalid = traci.vehicle.getUniversal(constants.VAR_ROUTE_VALID, vehID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/isStopped.m:
--------------------------------------------------------------------------------
1 | function result = isStopped(vehID)
2 | %isStopped Return whether the vehicle is stopped.
3 | % isStopped = isStopped(VEHID) Return whether the vehicle is stopped.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: isStopped.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | result = (traci.vehicle.getStopState(vehID) && 1) == 1;
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/isStoppedParking.m:
--------------------------------------------------------------------------------
1 | function isParquing = isStoppedParking(vehID)
2 | %isStoppedParking Return whether the vehicle is parquing.
3 | % isParquing = isStoppedParking(VEHID) Return whether the vehicle is
4 | % parking (implies stopped)
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: isStoppedParking.m 51 2018-12-30 22:32:29Z afacostag $
10 |
11 | import traci.constants
12 | isParquing = (traci.vehicle.getStopState(vehID) && 2) == 2;
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/isStoppedTriggered.m:
--------------------------------------------------------------------------------
1 | function isTriggered = isStoppedTriggered(vehID)
2 | %isStoppedTriggered Return whether the vehicle is stopped (triggered).
3 | % isTriggered = isStoppedTriggered(VEHID) Return whether the vehicle is
4 | % stopped and waiting for a person or container.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: isStoppedTriggered.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | isTriggered = (traci.vehicle.getStopState(vehID) && 12) > 0;
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/readLeader.m:
--------------------------------------------------------------------------------
1 | function [vehID, dist] = readLeader(result)
2 |
3 | % Copyright 2019 Universidad Nacional de Colombia,
4 | % Politecnico Jaime Isaza Cadavid.
5 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
6 | % $Id: readLeader.m 48 2018-12-26 15:35:20Z afacostag $
7 |
8 | result.readInt();
9 | result.read(1);
10 | vehID = result.readString();
11 | result.read(1);
12 | dist = result.readDouble();
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/remove.m:
--------------------------------------------------------------------------------
1 | function remove(vehID, reason)
2 | %remove Remove vehicle.
3 | % remove(VEHID,REASON) Remove vehicle with the given ID for the given
4 | % reason. Reasons are defined in traci.constants and start with REMOVE_
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: remove.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 |
13 | if nargin < 2
14 | reason = sscanf(constants.REMOVE_VAPORIZED,'%x');
15 | end
16 |
17 | traci.sendByteCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.REMOVE, vehID, reason);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setAccel.m:
--------------------------------------------------------------------------------
1 | function setAccel(vehID, accel)
2 | %setAccel Set the acceleration of the vehicle.
3 | % setAccel(VEHID,ACCEL) Sets the maximum acceleration in m/s^2 for this
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setAccel.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_ACCEL, vehID, accel);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setApparentDecel.m:
--------------------------------------------------------------------------------
1 | function setApparentDecel(vehID, decel)
2 | %setApparentDecel Sets the apparent deceleration.
3 | % setApparentDecel(VEHID,DECEL) Sets the apparent deceleration in m/s^2
4 | % for this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setApparentDecel.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE,...
13 | constants.VAR_APPARENT_DECEL, vehID, decel);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setBusStop.m:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/lib/External/traci4matlab/+traci/+vehicle/setBusStop.m
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setChargingStationStop.m:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/lib/External/traci4matlab/+traci/+vehicle/setChargingStationStop.m
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setContainerStop.m:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/lib/External/traci4matlab/+traci/+vehicle/setContainerStop.m
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setDecel.m:
--------------------------------------------------------------------------------
1 | function setDecel(vehID, decel)
2 | %setDecel Sets the maximum deceleration for this vehicle.
3 | % setDecel(VEHID,DECEL) Sets the maximum deceleration in m/s^2 for this
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setDecel.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_DECEL, vehID, decel);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setEmergencyDecel.m:
--------------------------------------------------------------------------------
1 | function setEmergencyDecel(vehID, decel)
2 | %setEmergencyDecel Sets the maximal physical deceleration.
3 | % setEmergencyDecel(VEHID,DECEL) Sets the maximal physically possible
4 | % deceleration in m/s^2 for this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setEmergencyDecel.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE,...
13 | constants.VAR_EMERGENCY_DECEL, vehID, decel);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setEmissionClass.m:
--------------------------------------------------------------------------------
1 | function setEmissionClass(vehID, clazz)
2 | %setEmissionClass Sets the emission class for this vehicle.
3 | % setEmissionClass(VEHID,CLASS) Sets the emission class for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setEmissionClass.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendStringCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_EMISSIONCLASS, vehID, clazz);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setHeight.m:
--------------------------------------------------------------------------------
1 | function setHeight(vehID, height)
2 | %setHeight Sets the height in m for this vehicle.
3 | % setHeight(VEHID,WIDTH) Sets the height in m for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setHeight.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE,...
12 | constants.VAR_HEIGHT, vehID, height);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setImperfection.m:
--------------------------------------------------------------------------------
1 | function setImperfection(vehID, imperfection)
2 | %setImperfection Sets the driver's imperfection (dawdling).
3 | % setImperfection(VEHID,IMPERFECTION) Sets the driver's imperfection
4 | % (dawdling). IMPERFECTION is a double precision integer ranging from
5 | % zero to one.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: setImperfection.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | import traci.constants
13 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_IMPERFECTION, vehID, imperfection);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setLateralAlignment.m:
--------------------------------------------------------------------------------
1 | function setLateralAlignment(vehID, align)
2 | %setLateralAlignment Sets the lateral alignment.
3 | % setLateralAlignment(VEHID,ALIGN) Sets the preferred lateral alignment
4 | % for this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setLateralAlignment.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLE_VARIABLE,...
13 | constants.VAR_LATALIGNMENT, vehID, align);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setLength.m:
--------------------------------------------------------------------------------
1 | function setLength(vehID, length)
2 | %setLength Sets the length in m for the given vehicle.
3 | % setLength(VEHID,LENGTH) Sets the length in m for the given vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setLength.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_LENGTH, vehID, length);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setLine.m:
--------------------------------------------------------------------------------
1 | function setLine(vehID, line)
2 | %setLine Sets the line information for this vehicle.
3 | % setLine(VEHID,LINE) Sets the line information for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setLine.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendStringCmd(constants.CMD_SET_VEHICLE_VARIABLE,...
12 | constants.VAR_LINE, vehID, line);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setMaxSpeed.m:
--------------------------------------------------------------------------------
1 | function setMaxSpeed(vehID, speed)
2 | %setMaxSpeed Sets the maximum speed in m/s for this vehicle.
3 | % setMaxSpeed(VEHID,SPEED) Sets the maximum speed in m/s for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setMaxSpeed.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_MAXSPEED, vehID, speed);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setMaxSpeedLat.m:
--------------------------------------------------------------------------------
1 | function setMaxSpeedLat(vehID, speed)
2 | %setMaxSpeedLat Set maximum lateral speed.
3 | % setMaxSpeedLat(VEHID,SPEED) Sets the maximum lateral speed in m/s for
4 | % this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMaxSpeedLat.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE,...
13 | constants.VAR_MAXSPEED_LAT, vehID, speed);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setMinGap.m:
--------------------------------------------------------------------------------
1 | function setMinGap(vehID, minGap)
2 | %setMinGap Sets the offset (gap to front vehicle) for this vehicle.
3 | % setMinGap(VEHID,MINGAP) Sets the offset (gap to front vehicle if
4 | % halting) for this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMinGap.m 51 2018-12-30 22:32:29Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_MINGAP, vehID, minGap);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setMinGapLat.m:
--------------------------------------------------------------------------------
1 | function setMinGapLat(vehID, minGapLat)
2 | %setMinGapLat Sets the minimum lateral gap.
3 | % setMinGapLat(VEHID,MINGAPLAT) Sets the minimum lateral gap of the
4 | % vehicle at 50km/h in m.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMinGapLat.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE,...
13 | constants.VAR_MINGAP_LAT, vehID, minGapLat);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setParkingAreaStop.m:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/lib/External/traci4matlab/+traci/+vehicle/setParkingAreaStop.m
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setRouteID.m:
--------------------------------------------------------------------------------
1 | function setRouteID(vehID, routeID)
2 | %setRouteID Sets the id of the route for the named vehicle.
3 | % setRouteID(VEHID,ROUTEID) Sets the id of the route for the named
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setRouteID.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_ROUTE_ID, vehID, routeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setShapeClass.m:
--------------------------------------------------------------------------------
1 | function setShapeClass(vehID, clazz)
2 | %setShapeClass Sets the shape class for this vehicle.
3 | % setShapeClass(VEHID,CLASS) Sets the shape class for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setShapeClass.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendStringCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_SHAPECLASS, vehID, clazz);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setSpeed.m:
--------------------------------------------------------------------------------
1 | function setSpeed(vehID, speed)
2 | %setSpeed Sets the speed in m/s for the named vehicle within the last step.
3 | % setSpeed(VEHID,SPEED) Sets the speed in m/s for the named vehicle
4 | % within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_SPEED, vehID, speed);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setSpeedDeviation.m:
--------------------------------------------------------------------------------
1 | function setSpeedDeviation(vehID, deviation)
2 | %setSpeedDeviation Sets the maximum speed deviation for this vehicle.
3 | % setSpeedDeviation(VEHID,DEVIATION) Sets the maximum speed deviation for
4 | % this vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setSpeedDeviation.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_SPEED_DEVIATION, vehID, deviation);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setSpeedFactor.m:
--------------------------------------------------------------------------------
1 | function setSpeedFactor(vehID, factor)
2 | %setSpeedFactor Sets the speed factor within the last step.
3 | % setSpeedFactor(VEHID,FACTOR) Sets the speed factor for the named
4 | % vehicle within the last step.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setSpeedFactor.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_SPEED_FACTOR, vehID, factor);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setTau.m:
--------------------------------------------------------------------------------
1 | function setTau(vehID, tau)
2 | %setTau Sets the driver's reaction time in s for this vehicle.
3 | % setTau(VEHID,TAU) Sets the driver's reaction time in s for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setTau.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_TAU, vehID, tau);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setType.m:
--------------------------------------------------------------------------------
1 | function setType(vehID, vehTypeID)
2 | %setType Sets the id of the named vehicle type.
3 | % setType(VEHID,TYPEID) Sets the id of the vehicle type for the named
4 | % vehicle.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setType.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_TYPE, vehID, vehTypeID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setVehicleClass.m:
--------------------------------------------------------------------------------
1 | function setVehicleClass(vehID, clazz)
2 | %setVehicleClass Sets the vehicle class for this vehicle.
3 | % setVehicleClass(VEHID,CLASS) Sets the vehicle class for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setVehicleClass.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_VEHICLECLASS, vehID, clazz);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicle/setWidth.m:
--------------------------------------------------------------------------------
1 | function setWidth(vehID, width)
2 | %setWidth Sets the width in m for this vehicle.
3 | % setWidth(VEHID,WIDTH) Sets the width in m for this vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setWidth.m 51 2018-12-30 22:32:29Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLE_VARIABLE, constants.VAR_WIDTH, vehID, width);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/copy.m:
--------------------------------------------------------------------------------
1 | function copy(origTypeID, newTypeID)
2 | %copy Duplicates the vType with ID origTypeID.
3 | % copy(ORIGTYPEID,NEWTYPEID) Duplicates the vType with ID origTypeID. The
4 | % newly created vType is assigned the ID newTypeID.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: copy.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.COPY,...
13 | origTypeID, newTypeID)
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getAccel.m:
--------------------------------------------------------------------------------
1 | function accel = getAccel(typeID)
2 | %getAccel Returns the maximum acceleration of vehicles of this type.
3 | % accel = getAccel(TYPEID) Returns the maximum acceleration in m/s^2 of
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getAccel.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | accel = traci.vehicletype.getUniversal(constants.VAR_ACCEL, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getActionStepLength.m:
--------------------------------------------------------------------------------
1 | function actionStepLength = getActionStepLength(typeID)
2 | %getActionStepLength Action step length.
3 | % actionStepLength = getActionStepLength(TYPEID) Returns the action step
4 | % length for vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getActionStepLength.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | actionStepLength = traci.vehicletype.getUniversal(constants.VAR_ACTIONSTEPLENGTH, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getApparentDecel.m:
--------------------------------------------------------------------------------
1 | function apparentDecel = getApparentDecel(typeID)
2 | %getApparentDecel Apparent deceleration.
3 | % apparentDecel = getApparentDecel(TYPEID) Returns the apparent
4 | % deceleration in m/s^2 of vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getApparentDecel.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | apparentDecel = traci.vehicletype.getUniversal(constants.VAR_APPARENT_DECEL, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getColor.m:
--------------------------------------------------------------------------------
1 | function color = getColor(typeID)
2 | %getColor Returns the color of this type of vehicle.
3 | % color = getColor(TYPEID)Returns the color of this type of vehicle.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: getColor.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | color = traci.vehicletype.getUniversal(constants.VAR_COLOR, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getDecel.m:
--------------------------------------------------------------------------------
1 | function decel = getDecel(typeID)
2 | %getDecel Returns the maximum deceleration in of vehicles of this type.
3 | % decel = getDecel(TYPEID) Returns the maximum deceleration in m/s^2 of
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getDecel.m 49 2018-12-27 14:08:44Z afacostag $
10 |
11 | import traci.constants
12 | decel = traci.vehicletype.getUniversal(constants.VAR_DECEL, typeID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getEmergencyDecel.m:
--------------------------------------------------------------------------------
1 | function emergencyDecel = getEmergencyDecel(typeID)
2 | %getEmergencyDecel Maximal physically possible deceleration.
3 | % emergencyDecel = getEmergencyDecel(TYPEID) Returns the maximal physically
4 | % possible deceleration in m/s^2 of vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getEmergencyDecel.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | emergencyDecel = traci.vehicletype.getUniversal(constants.VAR_EMERGENCY_DECEL, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getEmissionClass.m:
--------------------------------------------------------------------------------
1 | function emissionClass = getEmissionClass(typeID)
2 | %getEmissionClass Returns the emission class of vehicles of this type.
3 | % emissionClass = getEmissionClass(TYPEID) Returns the emission class of
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getEmissionClass.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | emissionClass = traci.vehicletype.getUniversal(constants.VAR_EMISSIONCLASS, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getHeight.m:
--------------------------------------------------------------------------------
1 | function height = getHeight(typeID)
2 | %getHeight Vehicle type height.
3 | % height = getHeight(TYPEID) Returns the height in m of vehicles of this
4 | % type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getHeight.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | height = traci.vehicletype.getUniversal(constants.VAR_HEIGHT, typeID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getIDList.m:
--------------------------------------------------------------------------------
1 | function IDList = getIDList()
2 | %getIDList Get the IDs of the vehicle types in the network.
3 | % IDList = getIDList() Returns a cell array of strings containing the IDs
4 | % of the vehicle types in the SUMO network.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getIDList.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | IDList = traci.vehicletype.getUniversal(constants.ID_LIST, '');
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getImperfection.m:
--------------------------------------------------------------------------------
1 | function imperfection = getImperfection(typeID)
2 | %getImperfection Returns the driver's imperfection of vehicles of this type.
3 | % imperfection = getImperfection(TYPEID) Returns the driver's imperfection
4 | % (dawdling) [0,1] of vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getImperfection.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | imperfection = traci.vehicletype.getUniversal(constants.VAR_IMPERFECTION, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getLateralAlignment.m:
--------------------------------------------------------------------------------
1 | function lateralAlignment = getLateralAlignment(typeID)
2 | %getLateralAlignment Preferred lateral alignment.
3 | % lateralAlignment = getLateralAlignment(TYPEID) Returns The preferred
4 | % lateral alignment of the type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLateralAlignment.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | lateralAlignment = traci.vehicletype.getUniversal(constants.VAR_LATALIGNMENT, typeID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getLength.m:
--------------------------------------------------------------------------------
1 | function length = getLength(typeID)
2 | %getLength Returns the length in m of the vehicles of this type.
3 | % length = getLength(TYPEID) Returns the length in m of the vehicles of
4 | % this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getLength.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | length = traci.vehicletype.getUniversal(constants.VAR_LENGTH, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getMaxSpeed.m:
--------------------------------------------------------------------------------
1 | function maxSpeed = getMaxSpeed(typeID)
2 | %getMaxSpeed Returns the maximum speed in m/s of vehicles of this type.
3 | % maxSpeed = getMaxSpeed(TYPEID) Returns the maximum speed in m/s of
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMaxSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | maxSpeed = traci.vehicletype.getUniversal(constants.VAR_MAXSPEED, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getMaxSpeedLat.m:
--------------------------------------------------------------------------------
1 | function maxSpeedLat = getMaxSpeedLat(typeID)
2 | %getMaxSpeedLat Maximum lateral speed.
3 | % maxSpeedLat = getMaxSpeedLat(TYPEID) Returns the maximum lateral speed
4 | % in m/s of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMaxSpeedLat.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | maxSpeedLat = traci.vehicletype.getUniversal(constants.VAR_MAXSPEED_LAT, typeID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getMinGap.m:
--------------------------------------------------------------------------------
1 | function minGap = getMinGap(typeID)
2 | %getMinGap Returns the offset of vehicles of this type.
3 | % minGap = getMinGap(TYPEID) Returns the offset (gap to front vehicle if
4 | % halting) of vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMinGap.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | minGap = traci.vehicletype.getUniversal(constants.VAR_MINGAP, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getMinGapLat.m:
--------------------------------------------------------------------------------
1 | function minGapLat = getMinGapLat(typeID)
2 | %getMinGapLat Desired lateral gap.
3 | % minGapLat = getMinGapLat(TYPEID) Returns The desired lateral gap of
4 | % this type at 50km/h in m.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getMinGapLat.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | minGapLat = traci.vehicletype.getUniversal(constants.VAR_MINGAP_LAT, typeID);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getShapeClass.m:
--------------------------------------------------------------------------------
1 | function shapeClass = getShapeClass(typeID)
2 | %getShapeClass Returns the shape class of vehicles of this type.
3 | % shapeClass = getShapeClass(TYPEID) Returns the shape class of vehicles
4 | % of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getShapeClass.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | shapeClass = traci.vehicletype.getUniversal(constants.VAR_SHAPECLASS, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getSpeedDeviation.m:
--------------------------------------------------------------------------------
1 | function speedDeviation = getSpeedDeviation(typeID)
2 | %getSpeedDeviation Returns the maximum speed deviation of vehicles of this type.
3 | % speedDeviation = getSpeedDeviation(TYPEID) Returns the maximum speed
4 | % deviation of vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getSpeedDeviation.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | speedDeviation = traci.vehicletype.getUniversal(constants.VAR_SPEED_DEVIATION, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getSpeedFactor.m:
--------------------------------------------------------------------------------
1 | function speedFactor = getSpeedFactor(typeID)
2 | %getSpeedFactor Returns the chosen speed factor for vehicles of this type.
3 | % speedFactor = getSpeedFactor(TYPEID) Returns the chosen speed factor for
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getSpeedFactor.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | speedFactor = traci.vehicletype.getUniversal(constants.VAR_SPEED_FACTOR, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getTau.m:
--------------------------------------------------------------------------------
1 | function tau = getTau(typeID)
2 | %getTau Returns the driver's reaction time in s for vehicles of this type.
3 | % tau = getTau(TYPEID) Returns the driver's reaction time in s for
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getTau.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | tau = traci.vehicletype.getUniversal(constants.VAR_TAU, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getVehicleClass.m:
--------------------------------------------------------------------------------
1 | function vehicleClass = getVehicleClass(typeID)
2 | %getVehicleClass Returns the class of vehicles of this type.
3 | % vehicleClass = getVehicleClass(TYPEID) Returns the class of vehicles of
4 | % this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getVehicleClass.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | vehicleClass = traci.vehicletype.getUniversal(constants.VAR_VEHICLECLASS, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/getWidth.m:
--------------------------------------------------------------------------------
1 | function width = getWidth(typeID)
2 | %getVehicleClass
3 | % vehicleClass = getVehicleClass(TYPEID) Returns the width in m of
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: getWidth.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | width = traci.vehicletype.getUniversal(constants.VAR_WIDTH, typeID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setAccel.m:
--------------------------------------------------------------------------------
1 | function setAccel(typeID, accel)
2 | %setAccel Sets the maximum acceleration for vehicles of this type.
3 | % setAccel(TYPEID,ACCEL) Sets the maximum acceleration in m/s^2 for
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setAccel.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_ACCEL, typeID, accel);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setApparentDecel.m:
--------------------------------------------------------------------------------
1 | function setApparentDecel(typeID, apparentDecel)
2 | %setApparentDecel Sets the apparent deceleration in m/s^2.
3 | % setApparentDecel(TYPEID,APPARENTDECEL) Sets the apparent deceleration
4 | % in m/s^2 of vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setApparentDecel.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE,...
13 | constants.VAR_APPARENT_DECEL, typeID, apparentDecel);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setDecel.m:
--------------------------------------------------------------------------------
1 | function setDecel(typeID, decel)
2 | %setDecel Sets the maximum deceleration for vehicles of this type.
3 | % setDecel(TYPEID,DECEL) Sets the maximum deceleration in m/s^2 for
4 | % vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setDecel.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_DECEL, typeID, decel);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setEmissionClass.m:
--------------------------------------------------------------------------------
1 | function setEmissionClass(typeID, clazz)
2 | %setEmissionClass ets the emission class of vehicles for this type.
3 | % setEmissionClass(TYPEID,CLASS) Sets the emission class of vehicles of
4 | % this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setEmissionClass.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_EMISSIONCLASS, typeID, clazz);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setHeight.m:
--------------------------------------------------------------------------------
1 | function setHeight(typeID, height)
2 | %setHeight Sets the height in m for vehicles of this type.
3 | % setHeight(TYPEID,HEIGHT) Sets the height in m of vehicles of this type.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setHeight.m 54 2019-01-03 15:41:54Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_HEIGHT, typeID, height);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setLateralAlignment.m:
--------------------------------------------------------------------------------
1 | function setLateralAlignment(typeID, latAlignment)
2 | %setMaxSpeedLat Sets the preferred lateral alignment of this type.
3 | % setMaxSpeedLat(TYPEID,LATALIGNMENT) Sets the preferred lateral alignment
4 | % of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setLateralAlignment.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE,...
13 | constants.VAR_LATALIGNMENT, typeID, latAlignment);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setLength.m:
--------------------------------------------------------------------------------
1 | function setLength(typeID, length)
2 | %setLength Sets the length in m of the vehicles of this type.
3 | % setLength(TYPEID,LENGTH) Sets the length in m of the vehicles of this
4 | % type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setLength.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_LENGTH, typeID, length);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setMaxSpeed.m:
--------------------------------------------------------------------------------
1 | function setMaxSpeed(typeID, speed)
2 | %setMaxSpeed Sets the maximum speed for vehicles of this type.
3 | % setMaxSpeed(TYPEID,SPEED) Sets the maximum speed in m/s for vehicles of
4 | % this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMaxSpeed.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_MAXSPEED, typeID, speed);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setMaxSpeedLat.m:
--------------------------------------------------------------------------------
1 | function setMaxSpeedLat(typeID, maxSpeedLat)
2 | %setMaxSpeedLat Sets the maximum lateral speed of this type.
3 | % setMaxSpeedLat(TYPEID,MAXSPEEDLAT) Sets the maximum lateral speed of
4 | % this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMaxSpeedLat.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE,...
13 | constants.VAR_MAXSPEED_LAT, typeID, maxSpeedLat);
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setMinGap.m:
--------------------------------------------------------------------------------
1 | function setMinGap(typeID, minGap)
2 | %setMinGap Sets the offset for vehicles of this type.
3 | % setMinGap(TYPEID,MINGAP) Sets the offset (gap to front vehicle if
4 | % halting) for vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMinGap.m 50 2018-12-28 16:25:47Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_MINGAP, typeID, minGap);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setMinGapLat.m:
--------------------------------------------------------------------------------
1 | function setMinGapLat(typeID, minGapLat)
2 | %setMinGapLat Sets the minimum lateral gap at 50km/h of this type.
3 | % setMinGapLat(TYPEID,MINGAPLAT) Sets the minimum lateral gap at 50km/h
4 | % of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setMinGapLat.m 54 2019-01-03 15:41:54Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_MINGAP_LAT, typeID, minGapLat);
13 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setShapeClass.m:
--------------------------------------------------------------------------------
1 | function setShapeClass(typeID, clazz)
2 | %setShapeClass Sets the shape class for vehicles of this type.
3 | % setShapeClass(TYPEID,CLASS) Sets the shape class for vehicles of this
4 | % type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setShapeClass.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendStringCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_SHAPECLASS, typeID, clazz);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setSpeedDeviation.m:
--------------------------------------------------------------------------------
1 | function setSpeedDeviation(typeID, deviation)
2 | %setSpeedDeviation Sets the maximum speed deviation for vehicles of this type.
3 | % setSpeedDeviation(TYPEID,DEVIATION) Sets the maximum speed deviation
4 | % for vehicles of this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setSpeedDeviation.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_SPEED_DEVIATION, typeID, deviation);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setSpeedFactor.m:
--------------------------------------------------------------------------------
1 | function setSpeedFactor(typeID, factor)
2 | %setSpeedFactor Sets the speed factor for vehicles of this type.
3 | % setSpeedFactor(TYPEID,FACTOR) Sets the speed factor for vehicles of
4 | % this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setSpeedFactor.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_SPEED_FACTOR, typeID, factor);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setTau.m:
--------------------------------------------------------------------------------
1 | function setTau(typeID, tau)
2 | %setTau Sets the driver's reaction time for vehicles of this type.
3 | % setTau(TYPEID,TAU) Sets the driver's reaction time in s for vehicles of
4 | % this type.
5 |
6 | % Copyright 2019 Universidad Nacional de Colombia,
7 | % Politecnico Jaime Isaza Cadavid.
8 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
9 | % $Id: setTau.m 48 2018-12-26 15:35:20Z afacostag $
10 |
11 | import traci.constants
12 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_TAU, typeID, tau);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setVehicleClass.m:
--------------------------------------------------------------------------------
1 | function setVehicleClass(typeID, clazz)
2 | %setVehicleClass Sets the class for vehicles of this type.
3 | % setVehicleClass(TYPEID,CLASS) Sets the class for vehicles of this type.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setVehicleClass.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendStringCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_VEHICLECLASS, typeID, clazz);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/+vehicletype/setWidth.m:
--------------------------------------------------------------------------------
1 | function setWidth(typeID, width)
2 | %setWidth Sets the width in m for vehicles of this type.
3 | % setWidth(TYPEID,WIDTH) Sets the width in m of vehicles of this type.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: setWidth.m 50 2018-12-28 16:25:47Z afacostag $
9 |
10 | import traci.constants
11 | traci.sendDoubleCmd(constants.CMD_SET_VEHICLETYPE_VARIABLE, constants.VAR_WIDTH, typeID, width);
12 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/Message.m:
--------------------------------------------------------------------------------
1 | classdef Message
2 | %Message A container for outgoing TraCI messages.
3 |
4 | % Copyright 2019 Universidad Nacional de Colombia,
5 | % Politecnico Jaime Isaza Cadavid.
6 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
7 | % $Id: Message.m 48 2018-12-26 15:35:20Z afacostag $
8 |
9 | properties
10 | string
11 | queue
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/packInt32.m:
--------------------------------------------------------------------------------
1 | function packedData = packInt32(data)
2 | %packInt32 Internal function to cast an int32 into
3 | % an uint8 array
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: packInt32.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | if isa(data,'int32')
11 | packedData = fliplr(typecast(data,'uint8'));
12 | else
13 | packedData = fliplr(typecast(int32(data),'uint8'));
14 | end
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/packInt64.m:
--------------------------------------------------------------------------------
1 | function packedData = packInt64(data)
2 | %packInt32 Internal function to cast an int64 into
3 | % an uint8 array
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: packInt64.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | % if isa(data,'int64')
11 | packedData = fliplr(typecast(data,'uint8'));
12 | % else
13 | % packedData = fliplr(typecast(int64(data),'uint8'));
14 | % end
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/sendByteCmd.m:
--------------------------------------------------------------------------------
1 | function sendByteCmd(cmdID, varID, objID, value)
2 | %sendByteCmd An internal function to build a message which sends a byte.
3 |
4 | % Copyright 2019 Universidad Nacional de Colombia,
5 | % Politecnico Jaime Isaza Cadavid.
6 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
7 | % $Id: sendByteCmd.m 48 2018-12-26 15:35:20Z afacostag $
8 |
9 | import traci.constants
10 | global message
11 | traci.beginMessage(cmdID, varID, objID, 1+1);
12 | message.string = [message.string uint8([sscanf(constants.TYPE_BYTE,'%x') value])];
13 | traci.sendExact();
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/sendDoubleCmd.m:
--------------------------------------------------------------------------------
1 | function sendDoubleCmd(cmdID, varID, objID, value)
2 | %sendDoubleCmd An internal function to build a message which sends a double.
3 |
4 | % Copyright 2019 Universidad Nacional de Colombia,
5 | % Politecnico Jaime Isaza Cadavid.
6 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
7 | % $Id: sendDoubleCmd.m 48 2018-12-26 15:35:20Z afacostag $
8 |
9 | import traci.constants
10 | global message
11 | traci.beginMessage(cmdID, varID, objID, 1+8);
12 | message.string = [message.string uint8(sscanf(constants.TYPE_DOUBLE,'%x')) ...
13 | traci.packInt64(value)];
14 | traci.sendExact();
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/sendIntCmd.m:
--------------------------------------------------------------------------------
1 | function sendIntCmd(cmdID, varID, objID, value)
2 | %sendIntCmd An internal function to build a message which sends an int.
3 |
4 | % Copyright 2019 Universidad Nacional de Colombia,
5 | % Politecnico Jaime Isaza Cadavid.
6 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
7 | % $Id: sendIntCmd.m 48 2018-12-26 15:35:20Z afacostag $
8 |
9 | import traci.constants
10 | global message
11 | traci.beginMessage(cmdID, varID, objID, 1+4);
12 | message.string = [message.string uint8(sscanf(constants.TYPE_INTEGER,'%x')) ...
13 | traci.packInt32(value)];
14 | traci.sendExact();
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/sendReadOneStringCmd.m:
--------------------------------------------------------------------------------
1 | function result = sendReadOneStringCmd(cmdID, varID, objID)
2 | %sendReadOneStringCmd An internal function to build an outgoing message to
3 | %the SUMO server and parse the response.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: sendReadOneStringCmd.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | traci.beginMessage(cmdID, varID, objID);
11 | result = traci.checkResult(cmdID, varID, objID);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/switchConnection.m:
--------------------------------------------------------------------------------
1 | function switchConnection(label)
2 | %switchConnection Switch to another connection with SUMO.
3 | %
4 | % switchConnection(label) Switch to the connection specified in LABEL
5 | % with the SUMO server.
6 |
7 | % Copyright 2019 Universidad Nacional de Colombia,
8 | % Politecnico Jaime Isaza Cadavid.
9 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
10 | % $Id: switchConnection.m 48 2018-12-26 15:35:20Z afacostag $
11 |
12 | global connections
13 | connections('') = connections(label);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/+traci/time2steps.m:
--------------------------------------------------------------------------------
1 | function timeInMiliseconds = time2steps(time)
2 | %timeInMiliseconds An internal function to convert time in seconds to
3 | %miliseconds.
4 |
5 | % Copyright 2019 Universidad Nacional de Colombia,
6 | % Politecnico Jaime Isaza Cadavid.
7 | % Authors: Andres Acosta, Jairo Espinosa, Jorge Espinosa.
8 | % $Id: time2steps.m 48 2018-12-26 15:35:20Z afacostag $
9 |
10 | timeInMiliseconds = int32(time*1000);
--------------------------------------------------------------------------------
/lib/External/traci4matlab/.gitignore:
--------------------------------------------------------------------------------
1 | *.mat
2 | net_patched.net.xml
3 | inter_palmas_notls.net.xml
4 | notls/
5 | tls/
6 | analisis.m
7 | Thumbs.db
8 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/examples/inter_palmas/inter_palmas_bus_stops.add.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/examples/inter_palmas/inter_palmas_buses.trips.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/External/traci4matlab/traci4matlab.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/lib/External/traci4matlab/traci4matlab.jar
--------------------------------------------------------------------------------
/lib/External/traci4matlab/user_manual.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mathworks/deep-traffic-lab/758a0cb50e266a94a448e1ac58670587491817f8/lib/External/traci4matlab/user_manual.pdf
--------------------------------------------------------------------------------
/lib/utils/.MATLABDriveTag:
--------------------------------------------------------------------------------
1 | ea1404e0-44cf-45d2-a1dc-734f21dfa03f
--------------------------------------------------------------------------------