Macros | Functions | Variables
drop.cpp File Reference
#include <cstdlib>
#include <cstdio>
#include "topic_tools/shape_shifter.h"
#include "topic_tools/parse.h"
Include dependency graph for drop.cpp:

Go to the source code of this file.

Macros

#define USAGE
 

Functions

void in_cb (const boost::shared_ptr< ShapeShifter const > &msg)
 
int main (int argc, char **argv)
 

Variables

static bool g_advertised = false
 
static ros::NodeHandleg_node = NULL
 
static string g_output_topic
 
static ros::Publisher g_pub
 
static int g_x = 0
 
static int g_y = 1
 

Macro Definition Documentation

◆ USAGE

#define USAGE
Value:
"\nusage: drop IN_TOPIC X Y [OUT_TOPIC]\n\n" \
" This program will drop X out of every Y messages from IN_TOPIC,\n" \
" forwarding the rest to OUT_TOPIC if given, else to a topic \n" \
" named IN_TOPIC_drop\n\n"

Definition at line 61 of file drop.cpp.

Function Documentation

◆ in_cb()

void in_cb ( const boost::shared_ptr< ShapeShifter const > &  msg)

Definition at line 45 of file drop.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 65 of file drop.cpp.

Variable Documentation

◆ g_advertised

bool g_advertised = false
static

Definition at line 41 of file drop.cpp.

◆ g_node

ros::NodeHandle* g_node = NULL
static

Definition at line 39 of file drop.cpp.

◆ g_output_topic

string g_output_topic
static

Definition at line 42 of file drop.cpp.

◆ g_pub

ros::Publisher g_pub
static

Definition at line 43 of file drop.cpp.

◆ g_x

int g_x = 0
static

Definition at line 40 of file drop.cpp.

◆ g_y

int g_y = 1
static

Definition at line 40 of file drop.cpp.



topic_tools
Author(s): Morgan Quigley, Brian Gerkey, Dirk Thomas , Jacob Perron
autogenerated on Sat Sep 14 2024 03:00:05