$search

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.

Defines

#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

Define Documentation

#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

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

Definition at line 45 of file drop.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 65 of file drop.cpp.


Variable Documentation

bool g_advertised = false [static]

Definition at line 41 of file drop.cpp.

ros::NodeHandle* g_node = NULL [static]

Definition at line 39 of file drop.cpp.

string g_output_topic [static]

Definition at line 42 of file drop.cpp.

Definition at line 43 of file drop.cpp.

int g_x = 0 [static]

Definition at line 40 of file drop.cpp.

int g_y = 1 [static]

Definition at line 40 of file drop.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


topic_tools
Author(s): Morgan Quigley, Brian Gerkey
autogenerated on Sat Mar 2 13:23:50 2013