Public Member Functions | Private Member Functions | Private Attributes | List of all members
swarmros::example::Node Class Referencefinal

#include <Node.h>

Public Member Functions

void HandleExampleEvent (const ExampleEvent &event)
 Handle an incoming ExampleEvent. More...
 
void HandleIntervalParameterChange (const UInt &value)
 Handle parameter changes. More...
 
void HandleSimpleEvent (const SimpleEvent &event)
 Handle an incoming SimpleEvent. More...
 
 Node (const std::string &name)
 Construct a new Node objet. More...
 
 ~Node ()
 Destroy the Node object. More...
 

Private Member Functions

void Worker ()
 Entry point for worker thread. More...
 

Private Attributes

ros::Publisher _complexMessageTelemetryPublisher
 Telemetry publisher for the complex message. More...
 
ros::Subscriber _exampleEventSink
 Event sink for example events. More...
 
ros::Publisher _exampleEventSource
 Event source for example events. More...
 
ros::NodeHandle _handle
 ROS node handle. More...
 
std::atomic< uint64_t > _heartbeatCounter
 Global heartbeat counter. More...
 
ros::Publisher _heartbeatCounterTelemetryPublisher
 Telemetry publisher for the heartbeat counter. More...
 
ros::Subscriber _heartbeatEventSink
 Event sink for heartbeat events. More...
 
ros::Publisher _heartbeatEventSource
 Event source for simple events. More...
 
ros::Subscriber _pingEventSink
 Event sink for ping events. More...
 
ros::Publisher _pongEventSource
 Event source for pong events. More...
 
std::random_device _random
 Random number generator. More...
 
std::atomic< uint64_t > _reportInterval
 Report interval. More...
 
ros::Subscriber _reportIntervalParameterSubscriber
 Parameter subscription for report interval. More...
 
std::atomic< bool > _shutdownRequested
 Shutdown signal for worker thread. More...
 
std::thread _worker
 Worker thread. More...
 

Detailed Description

Definition at line 14 of file swarmros/include/swarmros/example/Node.h.

Constructor & Destructor Documentation

Node::Node ( const std::string &  name)

Construct a new Node objet.

Parameters
nameNode name

Definition at line 9 of file example/Node.cpp.

Node::~Node ( )

Destroy the Node object.

Definition at line 124 of file example/Node.cpp.

Member Function Documentation

void Node::HandleExampleEvent ( const ExampleEvent &  event)

Handle an incoming ExampleEvent.

Parameters
eventEvent

Definition at line 106 of file example/Node.cpp.

void Node::HandleIntervalParameterChange ( const UInt &  value)

Handle parameter changes.

Parameters
valueValue

Definition at line 118 of file example/Node.cpp.

void Node::HandleSimpleEvent ( const SimpleEvent &  event)

Handle an incoming SimpleEvent.

Parameters
eventEvent

Definition at line 77 of file example/Node.cpp.

void Node::Worker ( )
private

Entry point for worker thread.

Definition at line 35 of file example/Node.cpp.

Member Data Documentation

ros::Publisher swarmros::example::Node::_complexMessageTelemetryPublisher
private

Telemetry publisher for the complex message.

Definition at line 82 of file swarmros/include/swarmros/example/Node.h.

ros::Subscriber swarmros::example::Node::_exampleEventSink
private

Event sink for example events.

Definition at line 46 of file swarmros/include/swarmros/example/Node.h.

ros::Publisher swarmros::example::Node::_exampleEventSource
private

Event source for example events.

Definition at line 64 of file swarmros/include/swarmros/example/Node.h.

ros::NodeHandle swarmros::example::Node::_handle
private

ROS node handle.

Definition at line 28 of file swarmros/include/swarmros/example/Node.h.

std::atomic<uint64_t> swarmros::example::Node::_heartbeatCounter
private

Global heartbeat counter.

Definition at line 100 of file swarmros/include/swarmros/example/Node.h.

ros::Publisher swarmros::example::Node::_heartbeatCounterTelemetryPublisher
private

Telemetry publisher for the heartbeat counter.

Definition at line 76 of file swarmros/include/swarmros/example/Node.h.

ros::Subscriber swarmros::example::Node::_heartbeatEventSink
private

Event sink for heartbeat events.

Definition at line 40 of file swarmros/include/swarmros/example/Node.h.

ros::Publisher swarmros::example::Node::_heartbeatEventSource
private

Event source for simple events.

Definition at line 58 of file swarmros/include/swarmros/example/Node.h.

ros::Subscriber swarmros::example::Node::_pingEventSink
private

Event sink for ping events.

Definition at line 34 of file swarmros/include/swarmros/example/Node.h.

ros::Publisher swarmros::example::Node::_pongEventSource
private

Event source for pong events.

Definition at line 70 of file swarmros/include/swarmros/example/Node.h.

std::random_device swarmros::example::Node::_random
private

Random number generator.

Definition at line 22 of file swarmros/include/swarmros/example/Node.h.

std::atomic<uint64_t> swarmros::example::Node::_reportInterval
private

Report interval.

Definition at line 106 of file swarmros/include/swarmros/example/Node.h.

ros::Subscriber swarmros::example::Node::_reportIntervalParameterSubscriber
private

Parameter subscription for report interval.

Definition at line 52 of file swarmros/include/swarmros/example/Node.h.

std::atomic<bool> swarmros::example::Node::_shutdownRequested
private

Shutdown signal for worker thread.

Definition at line 94 of file swarmros/include/swarmros/example/Node.h.

std::thread swarmros::example::Node::_worker
private

Worker thread.

Definition at line 88 of file swarmros/include/swarmros/example/Node.h.


The documentation for this class was generated from the following files:


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48