INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
rmpdriverconfig.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef ORCA2_SEGWAY_RMP_DRIVER_CONFIG_H 00012 #define ORCA2_SEGWAY_RMP_DRIVER_CONFIG_H 00013 00014 #include <string> 00015 #include <stdint.h> 00016 #include <hydroutil/context.h> 00017 #include "rmpdefs.h" 00018 00019 namespace segwayrmpacfr 00020 { 00021 00022 // 00023 // Convenience structure to hold all the config parameters. 00024 // All units are S.I. 00025 // 00026 class RmpDriverConfig 00027 { 00028 public: 00029 00030 RmpDriverConfig(); 00031 00032 GainSchedule gainSchedule; 00033 double maxVelocityScale; 00034 double maxTurnrateScale; 00035 double maxAccelerationScale; 00036 double maxCurrentLimitScale; 00037 00038 RmpModel model; 00039 bool requireSpecificBuildId; 00040 // The required RMP firmware version (only valid if requireSpecificBuildId is set) 00041 int16_t requiredBuildId; 00042 00043 bool allowMoveInTractorMode; 00044 bool allowMoveInBalanceMode; 00045 00046 // for debugging 00047 bool logCanDataToFile; 00048 std::string canDataLogFileName; 00049 00050 // returns 0 if everything looks good. 00051 int checkSanity( std::string &errors ); 00052 }; 00053 00054 std::ostream &operator<<( std::ostream & s, const RmpDriverConfig & c ); 00055 00056 void readFromProperties( const hydroutil::Context & context, RmpDriverConfig & c ); 00057 00058 } // namespace 00059 00060 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)