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();
Keeps the mapping between streams and sessions.
void DeregisterSession(std::shared_ptr< Session > session)
Dispatcher(const EndPoint< Protocol, EndPointType > &ep)
carla::streaming::Stream MakeStream()
bool RegisterSession(std::shared_ptr< Session > session)
void DisableForROS(stream_id_type sensor_id)
bool IsEnabledForROS(stream_id_type sensor_id)
void CloseStream(carla::streaming::detail::stream_id_type id)
void EnableForROS(stream_id_type sensor_id)
token_type GetToken(stream_id_type sensor_id)
Serializes a stream endpoint.
std::unordered_map< stream_id_type, std::shared_ptr< MultiStreamState > > StreamMap
This file contains definitions of common data structures used in traffic manager.