3 #include <swarmros/SimpleEvent.h> 4 #include <swarmros/ExampleEvent.h> 5 #include <swarmros/UInt.h> 121 Node(
const std::string& name);
ros::Subscriber _reportIntervalParameterSubscriber
Parameter subscription for report interval.
Node(const std::string &name)
Construct a new Node objet.
std::atomic< bool > _shutdownRequested
Shutdown signal for worker thread.
void HandleIntervalParameterChange(const UInt &value)
Handle parameter changes.
std::atomic< uint64_t > _reportInterval
Report interval.
void HandleSimpleEvent(const SimpleEvent &event)
Handle an incoming SimpleEvent.
std::random_device _random
Random number generator.
~Node()
Destroy the Node object.
ros::Publisher _exampleEventSource
Event source for example events.
std::thread _worker
Worker thread.
ros::Publisher _heartbeatCounterTelemetryPublisher
Telemetry publisher for the heartbeat counter.
ros::Publisher _complexMessageTelemetryPublisher
Telemetry publisher for the complex message.
void HandleExampleEvent(const ExampleEvent &event)
Handle an incoming ExampleEvent.
ros::Publisher _pongEventSource
Event source for pong events.
void Worker()
Entry point for worker thread.
ros::Subscriber _pingEventSink
Event sink for ping events.
std::atomic< uint64_t > _heartbeatCounter
Global heartbeat counter.
ros::Publisher _heartbeatEventSource
Event source for simple events.
ros::Subscriber _exampleEventSink
Event sink for example events.
ros::Subscriber _heartbeatEventSink
Event sink for heartbeat events.
ros::NodeHandle _handle
ROS node handle.