17 #include <unordered_map> 23 class MultiStreamState;
24 using StreamMap = std::unordered_map<stream_id_type, std::shared_ptr<MultiStreamState>>;
30 template <
typename Protocol,
typename EndPo
intType>
49 search->second->EnableForROS();
56 search->second->DisableForROS();
63 return search->second->IsEnabledForROS();
This file contains definitions of common data structures used in traffic manager. ...
token_type GetToken(stream_id_type sensor_id)
std::unordered_map< stream_id_type, std::shared_ptr< MultiStreamState > > StreamMap
void CloseStream(carla::streaming::detail::stream_id_type id)
Serializes a stream endpoint.
void DeregisterSession(std::shared_ptr< Session > session)
bool RegisterSession(std::shared_ptr< Session > session)
void EnableForROS(stream_id_type sensor_id)
Dispatcher(const EndPoint< Protocol, EndPointType > &ep)
void DisableForROS(stream_id_type sensor_id)
Keeps the mapping between streams and sessions.
bool IsEnabledForROS(stream_id_type sensor_id)
carla::streaming::Stream MakeStream()