44 std::unordered_map<adore::env::TSpeedLimitID,adore::env::SpeedLimit>
limits_;
71 limits_update.push_back(limit);
74 for (
auto limit : limits_update)
76 limits_.insert_or_assign(limit.id,limit);
90 std::stringstream buffer1;
91 std::stringstream buffer2;
93 for(
auto [key, limit] :
limits_)
97 buffer1 <<
"speedlimit_start/id" << key;
98 buffer2 <<
"X-" << limit.value <<
" - id:" << key;
103 buffer1 <<
"speedlimit_line/id" << limit.id;
120 void removeDistanceBased(std::unordered_map<std::string, std::pair<double,double>> &visible_objects,
int distance)
an optimzed plotting application to plot annotations like speed limits
Definition: plot_roadannotations.h:36
void run()
Definition: plot_roadannotations.h:59
std::unordered_map< adore::env::TSpeedLimitID, adore::env::SpeedLimit > limits_
Definition: plot_roadannotations.h:44
virtual void plotSpeedLimits()
Definition: plot_roadannotations.h:83
void removeDistanceBased(std::unordered_map< std::string, std::pair< double, double >> &visible_objects, int distance)
Definition: plot_roadannotations.h:120
PlotRoadAnnotations(DLR_TS::PlotLab::AFigureStub *figure, std::string prefix)
Definition: plot_roadannotations.h:47
std::string prefix_
Definition: plot_roadannotations.h:43
adore::env::AFactory::TSpeedLimitFeed * speedlimit_feed_
Definition: plot_roadannotations.h:39
~PlotRoadAnnotations()
Definition: plot_roadannotations.h:55
adore::env::VehicleMotionState9d vehicle_state_
Definition: plot_roadannotations.h:42
DLR_TS::PlotLab::AFigureStub * figure_
Definition: plot_roadannotations.h:41
adore::mad::AReader< adore::env::VehicleMotionState9d > * motion_state_reader_
Definition: plot_roadannotations.h:38
virtual TSpeedLimitFeed * getSpeedLimitFeed()=0
virtual TVehicleMotionStateReader * getVehicleMotionStateReader()=0
static adore::env::AFactory * get()
Definition: afactory.h:236
Definition: com_patterns.h:29
virtual void getNext(T &value)=0
virtual bool hasNext() const =0
virtual void getData(T &value)=0
virtual bool hasUpdate() const =0
void plotLine(std::string hashtag, double x0, double y0, double x1, double y1, double z, std::string options, DLR_TS::PlotLab::AFigureStub *figure)
Definition: plot_shape.h:209
std::vector< SpeedLimit > TSpeedLimitBundle
Definition: speedlimit.h:49
Definition: areaofeffectconverter.h:20
Definition: speedlimit.h:31
This struct holds the motion state of the vehicle in 9d.
Definition: vehiclemotionstate9d.h:39
double getTime() const
Get the time.
Definition: vehiclemotionstate9d.h:48