SUMO - Simulation of Urban MObility
MSPModel_Striping::Obstacle Struct Reference

information regarding surround Pedestrians (and potentially other things) More...

#include <MSPModel_Striping.h>

Collaboration diagram for MSPModel_Striping::Obstacle:
Collaboration graph

Public Member Functions

 Obstacle (int dir, double dist=DIST_FAR_AWAY)
 create No-Obstacle More...
 
 Obstacle (const PState &ped)
 create an obstacle from ped for ego moving in dir More...
 
 Obstacle (double _x, double _speed, const std::string &_description, const double width=0., bool _border=false)
 create an obstacle from explict values More...
 

Data Fields

bool border
 whether this obstacle denotes a border or a pedestrian More...
 
std::string description
 the id / description of the obstacle More...
 
double speed
 speed relative to lane direction (positive means in the same direction) More...
 
double xBack
 maximal position on the current lane in backward direction More...
 
double xFwd
 maximal position on the current lane in forward direction More...
 

Detailed Description

information regarding surround Pedestrians (and potentially other things)

Definition at line 180 of file MSPModel_Striping.h.

Constructor & Destructor Documentation

◆ Obstacle() [1/3]

MSPModel_Striping::Obstacle::Obstacle ( int  dir,
double  dist = DIST_FAR_AWAY 
)

create No-Obstacle

Definition at line 836 of file MSPModel_Striping.cpp.

◆ Obstacle() [2/3]

MSPModel_Striping::Obstacle::Obstacle ( const PState ped)

◆ Obstacle() [3/3]

MSPModel_Striping::Obstacle::Obstacle ( double  _x,
double  _speed,
const std::string &  _description,
const double  width = 0.,
bool  _border = false 
)
inline

create an obstacle from explict values

Definition at line 186 of file MSPModel_Striping.h.

Field Documentation

◆ border

bool MSPModel_Striping::Obstacle::border

whether this obstacle denotes a border or a pedestrian

Definition at line 198 of file MSPModel_Striping.h.

Referenced by Obstacle().

◆ description

std::string MSPModel_Striping::Obstacle::description

the id / description of the obstacle

Definition at line 196 of file MSPModel_Striping.h.

◆ speed

double MSPModel_Striping::Obstacle::speed

speed relative to lane direction (positive means in the same direction)

Definition at line 194 of file MSPModel_Striping.h.

Referenced by MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::moveInDirectionOnLane(), and Obstacle().

◆ xBack

double MSPModel_Striping::Obstacle::xBack

maximal position on the current lane in backward direction

Definition at line 192 of file MSPModel_Striping.h.

Referenced by MSPModel_Striping::PState::distanceTo(), Obstacle(), and MSPModel_Striping::transformToCurrentLanePositions().

◆ xFwd

double MSPModel_Striping::Obstacle::xFwd

maximal position on the current lane in forward direction

Definition at line 187 of file MSPModel_Striping.h.

Referenced by MSPModel_Striping::PState::distanceTo(), Obstacle(), and MSPModel_Striping::transformToCurrentLanePositions().


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