JoystickOptions.cpp
Go to the documentation of this file.
00001 /*
00002  * JoystickOptions.cpp
00003  *
00004  *  Created on: Oct 24, 2011
00005  *      Author: mriedel
00006  */
00007 
00008 #include <telekyb_hid/JoystickOptions.hpp>
00009 
00010 namespace TELEKYB_NAMESPACE
00011 {
00012 
00013 //template<> JoystickOptions* Singleton<JoystickOptions>::instance = NULL;
00014 
00015 JoystickOptions::JoystickOptions()
00016         : OptionContainer("Joystick")
00017 {
00018         tJoystickConfigFile = addOption<std::string>("tJoystickConfigFile",
00019                         "YAML Config File for Joysticks", std::string(TELEKYB_HID_PROJECT_SOURCE_DIR) + "/config/joysticks.yaml", false, true);
00020         tJoystickUseProductIDForRosPath = addOption<bool>("tJoystickUseProductIDForRosPath",
00021                         "Use ProductID reported by USB as Publishing Name", false, false, true);
00022         tDeadZone = addBoundsOption<double>("tDeadZone",
00023                         "Amount by which the joystick has to move before it is considered to be off-center",
00024                         0.05, 0.0, 1.0, false, false);
00025         tPubName = addOption<std::string>("tPubName",
00026                         "TopicName that get's added to NodeHandle",
00027                         "joy", false, true);
00028         tButtonRemapping = addOption<std::vector<int> >("tButtonRemapping",
00029                         "Button Remapping e.g. [1,0,3,3] switches 1 and 0 and maps 3 to 3 AND 4",
00030                         std::vector<int>(), false, true);
00031         tAxesRemapping = addOption<std::vector<int> >("tAxesRemapping",
00032                         "Axes Remapping e.g. [1,0,3,3] switches 1 and 0 and maps 3 to 3 AND 4",
00033                         std::vector<int>(), false, true);
00034         tAxisMultiplier = addOption<std::vector<double> >("tAxisMultiplier",
00035                         "Axes Value Multiplication e.g. [-1.0,0.0,0.5] inverts 0, set 1 to 0 scales 2",
00036                         std::vector<double>(), false, true);
00037 }
00038 
00039 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


telekyb_hid
Author(s): mriedel
autogenerated on Mon Nov 11 2013 11:14:51