macros.h
Go to the documentation of this file.
00001 /*------------------------------------------------------------------------
00002  *---------------------           ros_rt_wmp              --------------------
00003  *------------------------------------------------------------------------
00004  *                                                         V0.1B  15/09/11
00005  *
00006  *
00007  *  File: ./src/macros.h
00008  *  Authors: Danilo Tardioli
00009  *  ----------------------------------------------------------------------
00010  *  Copyright (C) 2000-2011, Universidad de Zaragoza, SPAIN
00011  *
00012  *  Contact Addresses: Danilo Tardioli                   dantard@unizar.es
00013  *
00014  *  RT-WMP is free software; you can  redistribute it and/or  modify it
00015  *  under the terms of the GNU General Public License  as published by the
00016  *  Free Software Foundation;  either  version 2, or (at  your option) any
00017  *  later version.
00018  *
00019  *  RT-WMP  is distributed  in the  hope  that  it will be   useful, but
00020  *  WITHOUT  ANY  WARRANTY;     without  even the   implied   warranty  of
00021  *  MERCHANTABILITY  or  FITNESS FOR A  PARTICULAR PURPOSE.    See the GNU
00022  *  General Public License for more details.
00023  *
00024  *  You should have received  a  copy of  the  GNU General Public  License
00025  *  distributed with RT-WMP;  see file COPYING.   If not,  write to the
00026  *  Free Software  Foundation,  59 Temple Place  -  Suite 330,  Boston, MA
00027  *  02111-1307, USA.
00028  *
00029  *  As a  special exception, if you  link this  unit  with other  files to
00030  *  produce an   executable,   this unit  does  not  by  itself cause  the
00031  *  resulting executable to be covered by the  GNU General Public License.
00032  *  This exception does  not however invalidate  any other reasons why the
00033  *  executable file might be covered by the GNU Public License.
00034  *
00035  *----------------------------------------------------------------------*/
00036 #ifndef MACROS_H_
00037 #define MACROS_H_
00038 
00039 #include "TopicManager.h"
00040 #include "ServiceManager.h"
00041 #include "TFManager.h"
00042 #include "WMPTopicManager.h"
00043 #include "WMPServiceManager.h"
00044 #include "WMPNodeManager.h"
00045 
00046 #define TOPIC(name,type,src,dest, prio)          m = new TopicManager<type> (n, port, std::string(name), src, dest, prio, false); \
00047                                                                                  w->addManager(name, m); port++;
00048 
00049 #define TOPIC_START_STOPPED(name,type,src,dest, prio)     m = new TopicManager<type> (n, port, std::string(name), src, dest, prio, false); \
00050                                                                                  w->addManager(name, m); port++; m->stop();
00051 
00052 #define DYNAMIC_TOPIC(name,type,src, prio)       m = new TopicManager<type> (n, port, std::string(name), src, prio, false); \
00053                                                  w->addManager(name, m); port++;
00054 
00055 #define WMP_TOPIC(name,type,src)                 m = new WMPTopicManager<type> (n, port, std::string(name), src, false); \
00056                                                                          w->addManager(name, m); port++;
00057 
00058 #define SERVICE(name,type,host, prio)            m = new ServiceManager<type> (n, port, std::string(name),host, prio); \
00059                                                                                  w->addManager(name, m); port+=2;
00060 
00061 #define DYNAMIC_SERVICE(name,type, prio)         m = new ServiceManager<type> (n, port, std::string(name), prio); \
00062                                                  w->addManager(name, m); port+=2;
00063 
00064 #define WMP_SERVICE(name,type)                   m = new WMPServiceManager<type> (n, port, std::string(name)); \
00065                                                                                  w->addManager(name, m); port+=2;
00066 
00067 #define TOPIC_TF(src,dest)                               m = new TFManager(n, port, src, dest, false) ; \
00068                                                                          w->addManager("/tf", m); port++;
00069 
00070 #define DYNAMIC_TOPIC_TF(src)                            m = new TFManager(n, port, src, false) ; \
00071                                                                          w->addManager("/tf", m); port++;
00072 
00073 #define SHAPESHIFTER(name,src,dest)              m = new ShapeShifterManager (n, port, std::string(name), src, dest,false); \
00074                                                                                  w->addManager(name, m); port++;
00075 
00076 #define BEGIN_TOPIC_DEFINITION                   void define_objects(ros::NodeHandle * n, WMPNodeManager * w){ Manager * m; int port = 4;
00077 
00078 #define END_TOPIC_DEFINITION }
00079 
00080 #endif /* MACROS_H_ */


ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Fri Jan 3 2014 12:07:55