Classes | Functions | Variables
demux.cpp File Reference
#include <cstdio>
#include <vector>
#include <list>
#include "ros/console.h"
#include "std_msgs/String.h"
#include "topic_tools/DemuxSelect.h"
#include "topic_tools/DemuxAdd.h"
#include "topic_tools/DemuxList.h"
#include "topic_tools/DemuxDelete.h"
#include "topic_tools/shape_shifter.h"
#include "topic_tools/parse.h"
Include dependency graph for demux.cpp:

Go to the source code of this file.

Classes

struct  pub_info_t
 

Functions

bool add_topic_cb (topic_tools::DemuxAdd::Request &req, topic_tools::DemuxAdd::Response &res)
 
bool del_topic_cb (topic_tools::DemuxDelete::Request &req, topic_tools::DemuxDelete::Response &res)
 
void in_cb (const boost::shared_ptr< ShapeShifter const > &msg)
 
bool list_topic_cb (topic_tools::DemuxList::Request &req, topic_tools::DemuxList::Response &res)
 
int main (int argc, char **argv)
 
bool sel_srv_cb (topic_tools::DemuxSelect::Request &req, topic_tools::DemuxSelect::Response &res)
 

Variables

static string g_input_topic
 
static ros::NodeHandleg_node = NULL
 
static const string g_none_topic = "__none"
 
static ros::Publisher g_pub_selected
 
static list< struct pub_info_tg_pubs
 
static list< struct pub_info_t >::iterator g_selected = g_pubs.end()
 
static ros::Subscriber g_sub
 

Function Documentation

◆ add_topic_cb()

bool add_topic_cb ( topic_tools::DemuxAdd::Request &  req,
topic_tools::DemuxAdd::Response &  res 
)

Definition at line 177 of file demux.cpp.

◆ del_topic_cb()

bool del_topic_cb ( topic_tools::DemuxDelete::Request &  req,
topic_tools::DemuxDelete::Response &  res 
)

Definition at line 215 of file demux.cpp.

◆ in_cb()

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

Definition at line 119 of file demux.cpp.

◆ list_topic_cb()

bool list_topic_cb ( topic_tools::DemuxList::Request &  req,
topic_tools::DemuxList::Response &  res 
)

Definition at line 163 of file demux.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 247 of file demux.cpp.

◆ sel_srv_cb()

bool sel_srv_cb ( topic_tools::DemuxSelect::Request &  req,
topic_tools::DemuxSelect::Response &  res 
)

Definition at line 69 of file demux.cpp.

Variable Documentation

◆ g_input_topic

string g_input_topic
static

Definition at line 54 of file demux.cpp.

◆ g_node

ros::NodeHandle* g_node = NULL
static

Definition at line 52 of file demux.cpp.

◆ g_none_topic

const string g_none_topic = "__none"
static

Definition at line 50 of file demux.cpp.

◆ g_pub_selected

ros::Publisher g_pub_selected
static

Definition at line 56 of file demux.cpp.

◆ g_pubs

list<struct pub_info_t> g_pubs
static

Definition at line 66 of file demux.cpp.

◆ g_selected

list<struct pub_info_t>::iterator g_selected = g_pubs.end()
static

Definition at line 67 of file demux.cpp.

◆ g_sub

ros::Subscriber g_sub
static

Definition at line 55 of file demux.cpp.



topic_tools
Author(s): Morgan Quigley, Brian Gerkey, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:34:17