iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test-Component.C File Reference

Author
Randolph Voorhies (voorhies at usc dot edu)

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-Component.C.

Go to the source code of this file.

Functions

 robotarm::NRT_DECLARE_PARAMETER (serialport, std::string,"Serial port device","/dev/ttyS0", ParamCateg)
 
 robotarm::NRT_DECLARE_PARAMETER_WITH_CALLBACK (serialbaud, int,"Baud Rate", 115200,{9600, 19200, 38400, 57600, 115200}, ParamCateg)
 
 robotarm::NRT_DECLARE_PARAMETER (rangevalue, int,"value in [0..100]", 42, nrt::Range< int >(0, 100), ParamCateg)
 
 robotarm::NRT_DECLARE_PARAMETER (funnynumber, int,"funny number that should be in [0..59] or special value 72", 42, boost::regex("^(([0-5]?[0-9])|72)$"), ParamCateg)
 
 robotarm::NRT_DECLARE_PARAMETER (funnyoffline, int,"funny number that should be in [0..59] or special value 72, no online changes. ""Set the value to 72 to watch it throw while running!", 42, boost::regex("^(([0-5]?[0-9])|72)$"), ParamCateg, nrt::ParameterFlags::NoOnlineChanges)
 
 robot::NRT_DECLARE_PARAMETER (speed, float,"Speed of the robot", 0.0F, ParamCateg)
 
 robot::NRT_DECLARE_PARAMETER (strength, float,"Strength of the robot", 100.0F, ParamCateg)
 
int main (int argc, char const *argv[])
 

Variables

nrt::ParameterCategory robotarm::ParamCateg ("Serial Port Related Options")
 
nrt::ParameterCategory robot::ParamCateg ("Robot Related Options")