Fawkes API
Fawkes Development Version
|
22 #include "gex_sender_thread.h"
24 #include "TestMessage.pb.h"
26 #include <plugins/gossip/gossip/gossip_group.h>
37 :
Thread(
"GossipExampleSenderThread",
Thread::OPMODE_WAITFORWAKEUP),
65 if (now - last_sent_ >= 2.0) {
70 gossip_example::TestMessage m;
71 m.set_counter(++counter_);
virtual ~GossipExampleSenderThread()
Destructor.
virtual void loop()
Code to execute in the thread.
long get_sec() const
Get seconds.
long get_nsec() const
Get nanoseconds.
Thread aspect to communicate with a group of robots.
virtual void init()
Initialize the thread.
GossipExampleSenderThread()
Constructor.
virtual void finalize()
Finalize the thread.
Thread aspect to use blocked timing.
const char * name() const
Get name of thread.
Clock * clock
By means of this member access to the clock is given.
Logger * logger
This is the Logger member used to access the logger.
Fawkes library namespace.
RefPtr< GossipGroup > gossip_group
Gossip group to communicate with other robots.
A class for handling time.
Thread class encapsulation of pthreads.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.