foreign_relay.cpp File Reference

#include <cstdio>
#include "topic_tools/shape_shifter.h"
#include <iostream>
#include <cmath>
#include <stdexcept>
#include "duration.h"
#include <sys/time.h>
#include "ros/time.h"
#include <sstream>
#include <log4cxx/logger.h>
#include "ros/console.h"
#include <boost/static_assert.hpp>
#include <cassert>
#include <stdint.h>
#include <assert.h>
#include <stddef.h>
#include <string>
#include "ros/assert.h"
#include <vector>
#include <map>
#include <set>
#include <list>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/function.hpp>
#include "exceptions.h"
#include <boost/shared_array.hpp>
#include "ros/types.h"
#include "ros/forwards.h"
#include "ros/common.h"
#include "ros/macros.h"
#include <string.h>
#include <boost/array.hpp>
#include "serialized_message.h"
#include "message_forward.h"
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/remove_const.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include "message_traits.h"
#include "ros/exception.h"
#include <boost/call_traits.hpp>
#include <boost/mpl/and.hpp>
#include <boost/mpl/or.hpp>
#include <boost/mpl/not.hpp>
#include <cstring>
#include <boost/bind.hpp>
#include <typeinfo>
#include <ros/message.h>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/add_const.hpp>
#include <boost/make_shared.hpp>
#include <ros/static_assert.h>
#include "ros/message_traits.h"
#include "ros/builtin_message_traits.h"
#include "ros/serialization.h"
#include "ros/message_event.h"
#include "forwards.h"
#include "timer_options.h"
#include "wall_timer_options.h"
#include "ros/service_traits.h"
#include <boost/lexical_cast.hpp>
#include "subscription_callback_helper.h"
#include "ros/spinner.h"
#include <time.h>
#include "ros/publisher.h"
#include <boost/utility.hpp>
#include "ros/service_server.h"
#include "ros/subscriber.h"
#include "ros/node_handle.h"
#include "ros/init.h"
#include "XmlRpcValue.h"
#include "node_handle.h"
#include "ros/names.h"
#include "XmlRpcDispatch.h"
#include "XmlRpcSource.h"
#include <boost/thread/mutex.hpp>
#include <boost/thread/thread.hpp>
#include <boost/enable_shared_from_this.hpp>
#include "XmlRpc.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define USAGE   "USAGE: foreign_relay {adv|sub} FOREIGN_MASTER_URI FOREIGN_TOPIC LOCAL_TOPIC"

Enumerations

enum  relay_mode_t { MODE_ADV, MODE_SUB }

Functions

void foreign_advertise (const std::string &type)
void foreign_subscribe ()
void foreign_unadvertise ()
void foreign_unsubscribe ()
void in_cb (const boost::shared_ptr< ShapeShifter const > &msg)
int main (int argc, char **argv)

Variables

static bool g_advertised = false
static bool g_error = false
static string g_foreign_topic
static string g_host
static string g_local_topic
static relay_mode_t g_mode
static ros::NodeHandle * g_node = NULL
static uint32_t g_port = 0
static ros::Publisher g_pub
ros::XMLRPCManagerPtr g_xmlrpc_manager = ros::XMLRPCManager::instance()

Define Documentation

#define USAGE   "USAGE: foreign_relay {adv|sub} FOREIGN_MASTER_URI FOREIGN_TOPIC LOCAL_TOPIC"

Definition at line 60 of file foreign_relay.cpp.


Enumeration Type Documentation

Enumerator:
MODE_ADV 
MODE_SUB 

Definition at line 53 of file foreign_relay.cpp.


Function Documentation

void foreign_advertise ( const std::string &  type  ) 

Definition at line 70 of file foreign_relay.cpp.

void foreign_subscribe (  ) 

Definition at line 102 of file foreign_relay.cpp.

void foreign_unadvertise (  ) 

Definition at line 87 of file foreign_relay.cpp.

void foreign_unsubscribe (  ) 

Definition at line 164 of file foreign_relay.cpp.

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

Definition at line 179 of file foreign_relay.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 208 of file foreign_relay.cpp.


Variable Documentation

bool g_advertised = false [static]

Definition at line 46 of file foreign_relay.cpp.

bool g_error = false [static]

Definition at line 52 of file foreign_relay.cpp.

string g_foreign_topic [static]

Definition at line 47 of file foreign_relay.cpp.

string g_host [static]

Definition at line 50 of file foreign_relay.cpp.

string g_local_topic [static]

Definition at line 48 of file foreign_relay.cpp.

relay_mode_t g_mode [static]

Definition at line 58 of file foreign_relay.cpp.

ros::NodeHandle* g_node = NULL [static]

Definition at line 45 of file foreign_relay.cpp.

uint32_t g_port = 0 [static]

Definition at line 51 of file foreign_relay.cpp.

ros::Publisher g_pub [static]

Definition at line 49 of file foreign_relay.cpp.

ros::XMLRPCManagerPtr g_xmlrpc_manager = ros::XMLRPCManager::instance()

Definition at line 62 of file foreign_relay.cpp.

 All Namespaces Files Functions Variables Enumerations Enumerator Defines


foreign_relay
Author(s): Blaise Gassend
autogenerated on Fri Jan 11 09:42:58 2013