Functions
ign_publisher.cpp File Reference
#include <atomic>
#include <chrono>
#include <csignal>
#include <iostream>
#include <string>
#include <thread>
#include <ignition/msgs.hh>
#include <ignition/transport.hh>
#include "../test_utils.h"
Include dependency graph for ign_publisher.cpp:

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...
 

Function Documentation

◆ g_terminatePub()

static std::atomic<bool> g_terminatePub ( false  )
static

Flag used to break the publisher loop and terminate the program.

◆ main()

int main ( int  ,
char **   
)

Definition at line 42 of file ign_publisher.cpp.

◆ signal_handler()

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.



ros_ign_bridge
Author(s):
autogenerated on Sat Mar 11 2023 04:02:16