Eclipse SUMO - Simulation of Urban MObility
|
information regarding surround Pedestrians (and potentially other things) More...
#include <MSPModel_Striping.h>
Public Member Functions | |
bool | closer (const Obstacle &o, int dir) |
Obstacle (const PState &ped) | |
create an obstacle from ped for ego moving in dir | |
Obstacle (double _x, double _speed, ObstacleType _type, const std::string &_description, const double width=0., const SUMOVehicle *veh=nullptr) | |
create an obstacle from explicit values | |
Obstacle (int dir, double dist=DIST_FAR_AWAY) | |
create No-Obstacle | |
Data Fields | |
std::string | description |
the id / description of the obstacle | |
double | speed |
speed relative to lane direction (positive means in the same direction) | |
ObstacleType | type |
whether this obstacle denotes a border, a vehicle or a pedestrian | |
const SUMOVehicle * | vehicle = nullptr |
a pointer to the vehicle if this obstacle is one | |
double | xBack |
maximal position on the current lane in backward direction | |
double | xFwd |
maximal position on the current lane in forward direction | |
information regarding surround Pedestrians (and potentially other things)
Definition at line 210 of file MSPModel_Striping.h.
MSPModel_Striping::Obstacle::Obstacle | ( | int | dir, |
double | dist = DIST_FAR_AWAY |
||
) |
create No-Obstacle
Definition at line 1452 of file MSPModel_Striping.cpp.
MSPModel_Striping::Obstacle::Obstacle | ( | const PState & | ped | ) |
create an obstacle from ped for ego moving in dir
Definition at line 1461 of file MSPModel_Striping.cpp.
References MSPModel_InteractingState::isWaitingToEnter(), MSPModel_Striping::OBSTACLE_VEHICLE, type, and vehicle.
|
inline |
create an obstacle from explicit values
Definition at line 216 of file MSPModel_Striping.h.
bool MSPModel_Striping::Obstacle::closer | ( | const Obstacle & | o, |
int | dir | ||
) |
Definition at line 1475 of file MSPModel_Striping.cpp.
References MSPModel::FORWARD, xBack, and xFwd.
Referenced by MSPModel_Striping::moveInDirectionOnLane().
std::string MSPModel_Striping::Obstacle::description |
the id / description of the obstacle
Definition at line 228 of file MSPModel_Striping.h.
Referenced by MSPModel_Striping::PState::distanceTo(), and MSPModel_Striping::PState::walk().
double MSPModel_Striping::Obstacle::speed |
speed relative to lane direction (positive means in the same direction)
Definition at line 224 of file MSPModel_Striping.h.
Referenced by MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::moveInDirectionOnLane(), and MSPModel_Striping::PState::walk().
ObstacleType MSPModel_Striping::Obstacle::type |
whether this obstacle denotes a border, a vehicle or a pedestrian
Definition at line 226 of file MSPModel_Striping.h.
Referenced by MSPModel_Striping::addCrossingVehs(), MSPModel_Striping::PState::distanceTo(), and Obstacle().
const SUMOVehicle* MSPModel_Striping::Obstacle::vehicle = nullptr |
a pointer to the vehicle if this obstacle is one
Definition at line 230 of file MSPModel_Striping.h.
Referenced by Obstacle().
double MSPModel_Striping::Obstacle::xBack |
maximal position on the current lane in backward direction
Definition at line 222 of file MSPModel_Striping.h.
Referenced by MSPModel_Striping::addCrossingVehs(), closer(), MSPModel_Striping::PState::distanceTo(), and MSPModel_Striping::PState::walk().
double MSPModel_Striping::Obstacle::xFwd |
maximal position on the current lane in forward direction
Definition at line 220 of file MSPModel_Striping.h.
Referenced by MSPModel_Striping::addCrossingVehs(), closer(), MSPModel_Striping::PState::distanceTo(), MSPModel_Striping::getVehicleObstacles(), and MSPModel_Striping::PState::walk().