#include <auto_config.h>
Classes | |
struct | Cache |
Public Types | |
typedef Server< AutoConfig > | ServerType |
Public Member Functions | |
void | __clamp__ (const ServerType *server) |
bool | __fromMessage__ (dynamic_reconfigure::Config &msg, const AutoConfig &sample) |
void | __fromServer__ (const ros::NodeHandle &nh) |
uint32_t | __level__ (const AutoConfig &config) const |
void | __toMessage__ (dynamic_reconfigure::Config &msg) const |
void | __toServer__ (const ros::NodeHandle &nh) const |
AutoConfig () | |
AutoConfig (const RTT::PropertyBag &bag) | |
bool | fromProperties (const RTT::PropertyBag &) |
bool | updateProperties (RTT::PropertyBag &) const |
~AutoConfig () | |
Static Public Member Functions | |
static bool | __fromMessage__ (AutoConfig &config, dynamic_reconfigure::Config &msg, const AutoConfig &sample) |
static const AutoConfig & | __getDefault__ (const ServerType *server) |
static dynamic_reconfigure::ConfigDescriptionPtr | __getDescriptionMessage__ (const ServerType *server) |
static const AutoConfig & | __getMax__ (const ServerType *server) |
static const AutoConfig & | __getMin__ (const ServerType *server) |
static void | __refreshDescription__ (const ServerType *server) |
static void | __toMessage__ (const AutoConfig &config, dynamic_reconfigure::Config &msg) |
Public Attributes | |
int | id |
std::string | name |
int | parent |
std::string | prefix_ |
bool | state |
std::string | type |
Private Types | |
typedef boost::shared_ptr< Cache > | CachePtr |
Static Private Member Functions | |
static void | buildCache (const ServerType *server, RTT::TaskContext *owner) |
Static Private Attributes | |
static std::map< const ServerType *, CachePtr > | cache_ |
static boost::shared_mutex | cache_mutex_ |
The AutoConfig class serves as a generic config type for rtt_dynamic_reconfigure::Server that dynamically creates the Config and ConfigDescription from the owner TaskContext's properties.
Definition at line 46 of file auto_config.h.
typedef boost::shared_ptr<Cache> rtt_dynamic_reconfigure::AutoConfig::CachePtr [private] |
Definition at line 83 of file auto_config.h.
Definition at line 49 of file auto_config.h.
Definition at line 103 of file auto_config.cpp.
rtt_dynamic_reconfigure::AutoConfig::AutoConfig | ( | const RTT::PropertyBag & | bag | ) |
Definition at line 107 of file auto_config.cpp.
Definition at line 112 of file auto_config.cpp.
void rtt_dynamic_reconfigure::AutoConfig::__clamp__ | ( | const ServerType * | server | ) |
Definition at line 328 of file auto_config.cpp.
bool rtt_dynamic_reconfigure::AutoConfig::__fromMessage__ | ( | dynamic_reconfigure::Config & | msg, |
const AutoConfig & | sample | ||
) |
static bool rtt_dynamic_reconfigure::AutoConfig::__fromMessage__ | ( | AutoConfig & | config, |
dynamic_reconfigure::Config & | msg, | ||
const AutoConfig & | sample | ||
) | [static] |
void rtt_dynamic_reconfigure::AutoConfig::__fromServer__ | ( | const ros::NodeHandle & | nh | ) |
Definition at line 323 of file auto_config.cpp.
const AutoConfig & rtt_dynamic_reconfigure::AutoConfig::__getDefault__ | ( | const ServerType * | server | ) | [static] |
Definition at line 510 of file auto_config.cpp.
dynamic_reconfigure::ConfigDescriptionPtr rtt_dynamic_reconfigure::AutoConfig::__getDescriptionMessage__ | ( | const ServerType * | server | ) | [static] |
Definition at line 503 of file auto_config.cpp.
const AutoConfig & rtt_dynamic_reconfigure::AutoConfig::__getMax__ | ( | const ServerType * | server | ) | [static] |
Definition at line 517 of file auto_config.cpp.
const AutoConfig & rtt_dynamic_reconfigure::AutoConfig::__getMin__ | ( | const ServerType * | server | ) | [static] |
Definition at line 524 of file auto_config.cpp.
uint32_t rtt_dynamic_reconfigure::AutoConfig::__level__ | ( | const AutoConfig & | config | ) | const |
Definition at line 336 of file auto_config.cpp.
void rtt_dynamic_reconfigure::AutoConfig::__refreshDescription__ | ( | const ServerType * | server | ) | [static] |
Definition at line 531 of file auto_config.cpp.
void rtt_dynamic_reconfigure::AutoConfig::__toMessage__ | ( | dynamic_reconfigure::Config & | msg | ) | const |
static void rtt_dynamic_reconfigure::AutoConfig::__toMessage__ | ( | const AutoConfig & | config, |
dynamic_reconfigure::Config & | msg | ||
) | [static] |
void rtt_dynamic_reconfigure::AutoConfig::__toServer__ | ( | const ros::NodeHandle & | nh | ) | const |
Definition at line 318 of file auto_config.cpp.
void rtt_dynamic_reconfigure::AutoConfig::buildCache | ( | const ServerType * | server, |
RTT::TaskContext * | owner | ||
) | [static, private] |
Definition at line 484 of file auto_config.cpp.
bool rtt_dynamic_reconfigure::AutoConfig::fromProperties | ( | const RTT::PropertyBag & | source | ) |
Definition at line 348 of file auto_config.cpp.
bool rtt_dynamic_reconfigure::AutoConfig::updateProperties | ( | RTT::PropertyBag & | target | ) | const |
Definition at line 341 of file auto_config.cpp.
std::map< const AutoConfig::ServerType *, AutoConfig::CachePtr > rtt_dynamic_reconfigure::AutoConfig::cache_ [static, private] |
Definition at line 85 of file auto_config.h.
boost::shared_mutex rtt_dynamic_reconfigure::AutoConfig::cache_mutex_ [static, private] |
Definition at line 86 of file auto_config.h.
Definition at line 55 of file auto_config.h.
std::string rtt_dynamic_reconfigure::AutoConfig::name |
Definition at line 52 of file auto_config.h.
Definition at line 54 of file auto_config.h.
std::string rtt_dynamic_reconfigure::AutoConfig::prefix_ |
Definition at line 51 of file auto_config.h.
Definition at line 56 of file auto_config.h.
std::string rtt_dynamic_reconfigure::AutoConfig::type |
Reimplemented from RTT::PropertyBag.
Definition at line 53 of file auto_config.h.