98 auto it = find(v.begin(), v.end(), K);
102 return (it - v.begin());
Definition: platoon_view_provider.h:41
void run()
update data, views and recompute maneuver
Definition: platoon_view_provider.h:81
void readCooperativeUser()
Definition: platoon_view_provider.h:107
adore::env::ThreeLaneViewDecoupled three_lanes_
Definition: platoon_view_provider.h:52
virtual ~PlatoonViewProvider()
Definition: platoon_view_provider.h:71
adore::mad::AReader< adore::env::CooperativeUserPrediction > * cooperativeUserPrediction_reader
Definition: platoon_view_provider.h:44
std::vector< int > index
Definition: platoon_view_provider.h:55
int getIndex(std::vector< int > v, int K)
Definition: platoon_view_provider.h:96
adore::env::ControlledConnectionSet connectionSet_
Definition: platoon_view_provider.h:54
int automationLevel
Definition: platoon_view_provider.h:94
PlatoonViewProvider()
Definition: platoon_view_provider.h:61
adore::mad::AReader< adore::fun::VehicleMotionState9d > * xreader_
Definition: platoon_view_provider.h:50
adore::mad::AWriter< adore::env::CooperativeUsersList > * cooperativeUserList_writer
Definition: platoon_view_provider.h:45
adore::env::ConnectionsOnLane * connectionsOnLane_
Definition: platoon_view_provider.h:53
bool vehiclePlatooningCapability
Definition: platoon_view_provider.h:93
adore::fun::VehicleMotionState9d x_
Definition: platoon_view_provider.h:51
adore::env::CooperativeUsersList localCooperativeUserList
Definition: platoon_view_provider.h:47
adore::env::CooperativeUserPrediction cooperativeUser
Definition: platoon_view_provider.h:46
virtual CooperativeUsersListWriter * getCooperativeUsersListWriter()=0
virtual TVehicleMotionStateReader * getVehicleMotionStateReader()=0
virtual CooperativeUserReader * getCooperativeUserReader()=0
Definition: connectionsonlane.h:33
Definition: controlledconnection.h:147
static adore::env::AFactory * get()
Definition: afactory.h:236
Definition: threelaneviewdecoupled.h:32
virtual adore::view::ALane * getCurrentLane()
Definition: threelaneviewdecoupled.h:405
static adore::fun::AFactory * get()
Definition: afactory.h:170
virtual void getData(T &value)=0
virtual bool hasData() const =0
virtual void write(const T &value)=0
std::vector< CooperativeUserPrediction > CooperativeUsersList
Definition: cooperativeusersprediction.h:70
Definition: areaofeffectconverter.h:20
Definition: cooperativeusersprediction.h:24
int lane_position
Definition: cooperativeusersprediction.h:31
int id
Definition: cooperativeusersprediction.h:27
void clear()
Definition: cooperativeusersprediction.h:52
This struct holds the motion state of the vehicle in 9d.
Definition: vehiclemotionstate9d.h:39