#include <atomic>
#include <chrono>
#include <csignal>
#include <iostream>
#include <string>
#include <thread>
#include <ignition/msgs.hh>
#include <ignition/transport.hh>
#include "../test_utils.h"
Go to the source code of this file.
Functions | |
static std::atomic< bool > | g_terminatePub (false) |
Flag used to break the publisher loop and terminate the program. More... | |
int | main (int, char **) |
void | signal_handler (int _signal) |
Function callback executed when a SIGINT or SIGTERM signals are captured. This is used to break the infinite loop that publishes messages and exit the program smoothly. More... | |
|
static |
Flag used to break the publisher loop and terminate the program.
int main | ( | int | , |
char ** | |||
) |
Definition at line 42 of file ign_publisher.cpp.
void signal_handler | ( | int | _signal | ) |
Function callback executed when a SIGINT or SIGTERM signals are captured. This is used to break the infinite loop that publishes messages and exit the program smoothly.
Definition at line 35 of file ign_publisher.cpp.