iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test-split-messages.C File Reference
#include <nrt/Core/Blackboard/Module.H>
#include <nrt/Core/Model/Manager.H>
#include <nrt/Core/Typing/Macros.H>
#include <nrt/Core/Geometry/Dims.H>
#include <nrt/External/cereal/types/string.hpp>
#include <nrt/External/cereal/types/map.hpp>
#include <nrt/External/cereal/types/memory.hpp>
#include <iostream>
#include <fstream>
#include <tuple>

Author
Laurent Itti

License

// ////////////////////////////////////////////////////////////////////////
//              The iLab Neuromorphic Robotics Toolkit (NRT)             //
// Copyright 2010-2012 by the University of Southern California (USC)    //
//                          and the iLab at USC.                         //
//                                                                       //
//                iLab - University of Southern California               //
//                Hedco Neurociences Building, Room HNB-10               //
//                    Los Angeles, Ca 90089-2520 - USA                   //
//                                                                       //
//      See http://ilab.usc.edu for information about this project.      //
// ////////////////////////////////////////////////////////////////////////
// This file is part of The iLab Neuromorphic Robotics Toolkit.          //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is free software: you can      //
// redistribute it and/or modify it under the terms of the GNU General   //
// Public License as published by the Free Software Foundation, either   //
// version 3 of the License, or (at your option) any later version.      //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is distributed in the hope     //
// that it will be useful, but WITHOUT ANY WARRANTY; without even the    //
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR       //
// PURPOSE.  See the GNU General Public License for more details.        //
//                                                                       //
// You should have received a copy of the GNU General Public License     //
// along with The iLab Neuromorphic Robotics Toolkit.  If not, see       //
// <http://www.gnu.org/licenses/>.                                       //
// ////////////////////////////////////////////////////////////////////////

Definition in file test-split-messages.C.

Go to the source code of this file.

Classes

class  MyModule
 What you derive from determines what you will be allowed to do when interacting with the Blackboard. More...
 

Typedefs

typedef std::map< int,
std::string > 
mydata::mymap
 
typedef std::map< int,
std::string > 
mymod2::mymap
 

Functions

 mydata::NRT_DECLARE_MESSAGEFIELD (x, int,"x coordinate (pixels)")
 
 mydata::NRT_DECLARE_MESSAGEFIELD (y, float,"y coordinate (feet)")
 
 mydata::NRT_DECLARE_MESSAGEFIELD (s, std::string,"string info")
 
 mydata::NRT_DECLARE_MESSAGEFIELD (m, mymap,"map stuff")
 
 mydata2::NRT_DECLARE_MESSAGEFIELD (z, int,"z coordinate (pixels)")
 
 mydata2::NRT_DECLARE_MESSAGEFIELD (md, MyMessage,"my data")
 
 mymod::NRT_DECLARE_MESSAGEPOSTER_PORT (Output, MyMessage, void,"MyMessage Output")
 
 mymod::NRT_DECLARE_MESSAGEPOSTER_PORT (Output2, MyMessage2, void,"MyMessage2 Output")
 
 mymod::NRT_DECLARE_MESSAGESUBSCRIBER_PORT (Input, MyMessage, void,"MyMessage Input")
 
 mymod::NRT_DECLARE_MESSAGESUBSCRIBER_PORT (Input2, MyMessage2, void,"MyMessage2 Input")
 
 mymod2::NRT_DECLARE_MESSAGEPOSTER_PORT (OutputX, nrt::Message< int >, void,"int Output")
 
 mymod2::NRT_DECLARE_MESSAGEPOSTER_PORT (OutputY, nrt::Message< float >, void,"float Output")
 
 mymod2::NRT_DECLARE_MESSAGEPOSTER_PORT (OutputS, nrt::Message< std::string >, void,"string Output")
 
 mymod2::NRT_DECLARE_MESSAGEPOSTER_PORT (OutputZ, nrt::Message< int >, void,"int Output 2")
 
 mymod2::NRT_DECLARE_MESSAGEPOSTER_PORT (OutputM, nrt::Message< mymap >, void,"map Output 2")
 
int main (int argc, char const *argv[])
 Test main function demonstrating use of Blackboard.