Apollo 10.0
自动驾驶开放平台
|
Topology Manager of Node related 更多...
#include <node_manager.h>
Public 类型 | |
using | RoleAttrVec = std::vector< RoleAttributes > |
using | NodeWarehouse = SingleValueWarehouse |
![]() | |
using | ChangeSignal = base::Signal< const ChangeMsg & > |
using | ChangeFunc = std::function< void(const ChangeMsg &)> |
using | ChangeConnection = base::Connection< const ChangeMsg & > |
using | ParticipantPtr = std::shared_ptr< transport::Participant > |
using | PublisherPtr = std::shared_ptr< transport::Publisher > |
using | SubscriberPtr = std::shared_ptr< transport::Subscriber > |
Public 成员函数 | |
NodeManager () | |
Construct a new Node Manager object | |
virtual | ~NodeManager () |
Destroy the Node Manager object | |
bool | HasNode (const std::string &node_name) |
Checkout whether we have node_name in topology | |
void | GetNodes (RoleAttrVec *nodes) |
Get the Nodes object | |
![]() | |
Manager () | |
Construct a new Manager object | |
virtual | ~Manager () |
Destroy the Manager object | |
bool | StartDiscovery (const ParticipantPtr &participant) |
Startup topology discovery | |
void | StopDiscovery () |
Stop topology discovery | |
virtual void | Shutdown () |
Shutdown module | |
bool | Join (const RoleAttributes &attr, RoleType role, bool need_publish=true) |
Join the topology | |
bool | Leave (const RoleAttributes &attr, RoleType role) |
Leave the topology | |
ChangeConnection | AddChangeListener (const ChangeFunc &func) |
Add topology change listener, when topology changed, func will be called. | |
void | RemoveChangeListener (const ChangeConnection &conn) |
Remove our listener for topology change. | |
友元 | |
class | TopologyManager |
额外继承的成员函数 | |
![]() | |
bool | CreatePublisher (const ParticipantPtr &participant) |
bool | CreateSubscriber (const ParticipantPtr &participant) |
virtual bool | NeedPublish (const ChangeMsg &msg) const |
void | Convert (const RoleAttributes &attr, RoleType role, OperateType opt, ChangeMsg *msg) |
void | Notify (const ChangeMsg &msg) |
bool | Publish (const ChangeMsg &msg) |
void | OnRemoteChange (const std::shared_ptr< std::string > &msg_str) |
bool | IsFromSameProcess (const ChangeMsg &msg) |
![]() | |
std::atomic< bool > | is_shutdown_ |
std::atomic< bool > | is_discovery_started_ |
int | allowed_role_ |
ChangeType | change_type_ |
std::string | host_name_ |
int | process_id_ |
std::string | channel_name_ |
PublisherPtr | publisher_ |
SubscriberPtr | subscriber_ |
ParticipantPtr | participant_ |
std::mutex | lock_ |
ChangeSignal | signal_ |
Topology Manager of Node related
在文件 node_manager.h 第 38 行定义.
在文件 node_manager.h 第 43 行定义.
using apollo::cyber::service_discovery::NodeManager::RoleAttrVec = std::vector<RoleAttributes> |
在文件 node_manager.h 第 42 行定义.
apollo::cyber::service_discovery::NodeManager::NodeManager | ( | ) |
Construct a new Node Manager object
在文件 node_manager.cc 第 26 行定义.
|
virtual |
void apollo::cyber::service_discovery::NodeManager::GetNodes | ( | RoleAttrVec * | nodes | ) |
Get the Nodes object
nodes | result RoleAttr vector |
在文件 node_manager.cc 第 39 行定义.
bool apollo::cyber::service_discovery::NodeManager::HasNode | ( | const std::string & | node_name | ) |
Checkout whether we have node_name
in topology
node_name | Node's name we want to inquire |
在文件 node_manager.cc 第 34 行定义.
|
friend |
在文件 node_manager.h 第 39 行定义.