|
iCub-main
|
Singleton factory class to create and manage default values with runtime configuration This class ensures a single instance is shared across all objects in the application All modifications to defaults are immediately visible to all objects accessing the singleton. More...
#include <embObjMotionControlDefaults.h>
Public Member Functions | |
| void | initializeDefaults () |
| Initialize all default values. | |
| void | setDefaultTimeouts (int defaultTimeout) |
| Set all timeout values to the same value at runtime. | |
| bool | setTimeoutValue (const std::string &timeoutType, int value) |
| Set individual timeout values at runtime. | |
| const embObjMotionControlDefaults_t & | getDefaults () const |
| Get the current defaults structure. | |
| embObjMotionControlDefaults_t & | getDefaultsMutable () |
| Get mutable reference to defaults (advanced usage) Allows direct modification of nested fields. | |
| void | resetDefaults () |
| Reset all defaults to initial values Useful if you need to restore defaults after modifications. | |
Static Public Member Functions | |
| static DefaultsFactory & | getInstance () |
| Get the singleton instance (thread-safe in C++11+) Uses Meyer's singleton pattern for automatic thread-safety. | |
Singleton factory class to create and manage default values with runtime configuration This class ensures a single instance is shared across all objects in the application All modifications to defaults are immediately visible to all objects accessing the singleton.
Definition at line 174 of file embObjMotionControlDefaults.h.
|
inline |
Get the current defaults structure.
Definition at line 305 of file embObjMotionControlDefaults.h.
|
inline |
Get mutable reference to defaults (advanced usage) Allows direct modification of nested fields.
Definition at line 315 of file embObjMotionControlDefaults.h.
|
inlinestatic |
Get the singleton instance (thread-safe in C++11+) Uses Meyer's singleton pattern for automatic thread-safety.
Definition at line 198 of file embObjMotionControlDefaults.h.
|
inline |
Initialize all default values.
Definition at line 207 of file embObjMotionControlDefaults.h.
|
inline |
Reset all defaults to initial values Useful if you need to restore defaults after modifications.
Definition at line 324 of file embObjMotionControlDefaults.h.
|
inline |
Set all timeout values to the same value at runtime.
| defaultTimeout | the timeout value in milliseconds |
Definition at line 269 of file embObjMotionControlDefaults.h.
|
inline |
Set individual timeout values at runtime.
| timeoutType | which timeout to set ("velocity_ref", "current_ref", "pwm_ref", "torque_ref", "torque_fbk") |
| value | the timeout value in milliseconds |
Definition at line 284 of file embObjMotionControlDefaults.h.