15 #ifndef OPENHRP_BRIDGE_CONF_H_INCLUDED 16 #define OPENHRP_BRIDGE_CONF_H_INCLUDED 18 #if ( defined ( WIN32 ) || defined ( _WIN32 ) || defined(__WIN32__) || defined(__NT__) ) 19 #define SUFFIX_SHARED_EXT ".dll" 20 #elif defined(__APPLE__) 21 #define SUFFIX_SHARED_EXT ".dylib" 23 #define SUFFIX_SHARED_EXT ".so" 30 #include <boost/program_options.hpp> 93 static BridgeConf* initialize(
int argc,
char* argv[]);
100 const char* getOpenHRPNameServerIdentifier();
101 const char* getControllerName();
102 const char* getVirtualRobotRtcTypeName();
120 boost::program_options::variables_map
vmap;
121 boost::program_options::options_description
options;
131 void initOptionsDescription();
132 void initLabelToDataTypeMap();
134 void parseCommandLineOptions(
int argc,
char* argv[]);
136 void setPortInfos(
const char* optionLabel,
PortInfoMap& portInfos);
137 void addPortConnection(
const std::string&
value);
139 void setPreLoadModuleInfo();
140 void addModuleInfo(
const std::string&
value);
141 void addTimeRateInfo(
const std::string&
value);
143 std::vector<std::string> extractParameters(
const std::string& str,
const char delimiter=
':');
144 std::string expandEnvironmentVariables(std::string str);
std::string nameServerIdentifier
boost::program_options::variables_map vmap
std::string controllerName
std::string controllerInstanceName
PortConnectionList portConnections
bool isProcessingConfigFile
LabelToDataTypeIdMap labelToDataTypeIdMap
std::string componentName
std::map< std::string, DataTypeId > LabelToDataTypeIdMap
std::string robotPortName
RTC::RtcBase * rtcServant
std::map< std::string, PortInfo > PortInfoMap
boost::program_options::options_description commandLineOptions
std::vector< PortConnection > PortConnectionList
std::vector< std::string > dataOwnerName
std::string virtualRobotRtcTypeName
std::map< std::string, double > TimeRateMap
std::string controllerPortName
std::list< ModuleInfo > ModuleInfoList
boost::program_options::options_description options
ModuleInfoList moduleInfoList