parameters.hpp
Go to the documentation of this file.
1 
9 /*****************************************************************************
10  ** Ifdefs
11  *****************************************************************************/
12 
13 #ifndef XBOT_PARAMETERS_HPP_
14 #define XBOT_PARAMETERS_HPP_
15 
16 /*****************************************************************************
17  ** Includes
18  *****************************************************************************/
19 
20 #include <string>
21 
22 /*****************************************************************************
23  ** Namespaces
24  *****************************************************************************/
25 
26 namespace xbot
27 {
28 
29 /*****************************************************************************
30  ** Interface
31  *****************************************************************************/
36 {
37 public:
39  base_port("/dev/xbot"),
40  sensor_port("/dev/sensors"),
41  sigslots_namespace("/xbot"),
42  simulation(false),
45  linear_deceleration_limit(-0.3*1.2),
48  {
49  }
51  std::string base_port;
52  std::string sensor_port;
53  std::string sigslots_namespace;
54  bool simulation;
61 
69  bool validate()
70  {
71  // not doing anything right now - delete it, if we can find a use case ...
72  return true;
73  }
74 
75  std::string error_msg;
76 };
77 
78 } // namespace xbot
79 
80 #endif /* XBOT_PARAMETERS_HPP_ */
std::string base_port
The serial device port name [/dev/xbot].
Definition: parameters.hpp:51
std::string error_msg
Provides error messages when parameter validation fails (internal purposes only)
Definition: parameters.hpp:75
double linear_acceleration_limit
Definition: parameters.hpp:57
Parameters()
Default constructor.
Definition: parameters.hpp:38
std::string sensor_port
Definition: parameters.hpp:52
double angular_acceleration_limit
Definition: parameters.hpp:59
Parameter list and validator for the xbot.
Definition: parameters.hpp:35
bool simulation
Whether to put the motors in loopback mode or not [false].
Definition: parameters.hpp:54
bool validate()
A validator to ensure the user has supplied correct/sensible parameter values.
Definition: parameters.hpp:69
std::string sigslots_namespace
The first part of a sigslot connection namespace ["/xbot"].
Definition: parameters.hpp:53
double angular_deceleration_limit
Definition: parameters.hpp:60
Definition: command.hpp:30
bool enable_acceleration_limiter
Enable or disable the acceleration limiter [true].
Definition: parameters.hpp:55
double linear_deceleration_limit
Definition: parameters.hpp:58


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:37