12 #include <unordered_map> 13 #include <unordered_set> 36 void remove(std::shared_ptr<Client> client);
38 void add_reader(
const std::string& channel,
const std::string& type,
39 std::shared_ptr<Client> client);
40 void add_writer(
const std::string& channel,
const std::string& type,
41 std::shared_ptr<Client> client);
43 void publish(
const std::string& channel,
const std::string& data);
46 std::unique_ptr<apollo::cyber::Node> node;
55 std::unordered_set<std::shared_ptr<Client>> clients;
62 std::unordered_set<std::shared_ptr<Client>> clients;
65 typedef std::unordered_map<std::string, Writer> Writers;
66 typedef std::unordered_map<std::string, Reader> Readers;
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Reader subscribes a channel, it has two main functions:
Definition: reader.h:68
apollo::cyber::Writer< T > Writer
Definition: sensor_canbus.h:67