Public Member Functions | Private Member Functions | Private Attributes | List of all members
swri::DynamicParameters Class Reference

#include <dynamic_parameters.h>

Public Member Functions

void addEnums (const std::string &param, const std::vector< std::pair< std::string, int > > &enums)
 
 DynamicParameters ()
 
void finalize (bool alphabetical_order=true)
 
void get (const std::string &name, float &variable, const float default_value, const std::string description="None.", const float min=-100, const float max=100)
 
void get (const std::string &name, FloatParam &variable, const float default_value, const std::string description="None.", const float min=-100, const float max=100)
 
void get (const std::string &name, double &variable, const double default_value, const std::string description="None.", const double min=-100, const double max=100)
 
void get (const std::string &name, DoubleParam &variable, const double default_value, const std::string description="None.", const double min=-100, const double max=100)
 
void get (const std::string &name, int &variable, const int default_value, const std::string description="None.", const int min=-100, const int max=100)
 
void get (const std::string &name, IntParam &variable, const int default_value, const std::string description="None.", const int min=-100, const int max=100)
 
void get (const std::string &name, bool &variable, const bool default_value, const std::string description="None.")
 
void get (const std::string &name, BoolParam &variable, const bool default_value, const std::string description="None.")
 
void get (const std::string &name, std::string &variable, const std::string default_value, const std::string description="None.")
 
void get (const std::string &name, StringParam &variable, const std::string default_value, const std::string description="None.")
 
bool getBool (const std::string &name)
 
double getDouble (const std::string &name)
 
float getFloat (const std::string &name)
 
int getInt (const std::string &name)
 
std::string getString (const std::string &name)
 
void initialize (ros::NodeHandle &pnh)
 
boost::mutex::scoped_lock lock_guard ()
 
boost::mutex & mutex ()
 
void setCallback (boost::function< void(DynamicParameters &)> fun)
 
void update ()
 

Private Member Functions

bool setConfigCallback (dynamic_reconfigure::Reconfigure::Request &req, dynamic_reconfigure::Reconfigure::Response &rsp)
 
void updateCurrent (dynamic_reconfigure::Config &config)
 

Private Attributes

ros::Publisher descr_pub_
 
boost::shared_ptr< boost::mutex > mutex_
 
boost::shared_ptr< ros::NodeHandlenh_
 
boost::function< void(DynamicParameters &)> on_change_
 
std::vector< std::string > ordered_params_
 
ros::ServiceServer set_service_
 
ros::Publisher update_pub_
 
std::map< std::string, DynamicValuevalues_
 

Detailed Description

Definition at line 123 of file dynamic_parameters.h.

Constructor & Destructor Documentation

swri::DynamicParameters::DynamicParameters ( )
inline

Definition at line 295 of file dynamic_parameters.h.

Member Function Documentation

void swri::DynamicParameters::addEnums ( const std::string &  param,
const std::vector< std::pair< std::string, int > > &  enums 
)
inline

Definition at line 462 of file dynamic_parameters.h.

void swri::DynamicParameters::finalize ( bool  alphabetical_order = true)
inline

Definition at line 311 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
float &  variable,
const float  default_value,
const std::string  description = "None.",
const float  min = -100,
const float  max = 100 
)
inline

Definition at line 589 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
FloatParam variable,
const float  default_value,
const std::string  description = "None.",
const float  min = -100,
const float  max = 100 
)
inline

Definition at line 614 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
double &  variable,
const double  default_value,
const std::string  description = "None.",
const double  min = -100,
const double  max = 100 
)
inline

Definition at line 642 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
DoubleParam variable,
const double  default_value,
const std::string  description = "None.",
const double  min = -100,
const double  max = 100 
)
inline

Definition at line 667 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
int &  variable,
const int  default_value,
const std::string  description = "None.",
const int  min = -100,
const int  max = 100 
)
inline

Definition at line 694 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
IntParam variable,
const int  default_value,
const std::string  description = "None.",
const int  min = -100,
const int  max = 100 
)
inline

Definition at line 719 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
bool &  variable,
const bool  default_value,
const std::string  description = "None." 
)
inline

Definition at line 747 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
BoolParam variable,
const bool  default_value,
const std::string  description = "None." 
)
inline

Definition at line 768 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
std::string &  variable,
const std::string  default_value,
const std::string  description = "None." 
)
inline

Definition at line 792 of file dynamic_parameters.h.

void swri::DynamicParameters::get ( const std::string &  name,
StringParam variable,
const std::string  default_value,
const std::string  description = "None." 
)
inline

Definition at line 813 of file dynamic_parameters.h.

bool swri::DynamicParameters::getBool ( const std::string &  name)
inline

Definition at line 539 of file dynamic_parameters.h.

double swri::DynamicParameters::getDouble ( const std::string &  name)
inline

Definition at line 486 of file dynamic_parameters.h.

float swri::DynamicParameters::getFloat ( const std::string &  name)
inline

Definition at line 504 of file dynamic_parameters.h.

int swri::DynamicParameters::getInt ( const std::string &  name)
inline

Definition at line 521 of file dynamic_parameters.h.

std::string swri::DynamicParameters::getString ( const std::string &  name)
inline

Definition at line 557 of file dynamic_parameters.h.

void swri::DynamicParameters::initialize ( ros::NodeHandle pnh)
inline

Definition at line 301 of file dynamic_parameters.h.

boost::mutex::scoped_lock swri::DynamicParameters::lock_guard ( )
inline

Definition at line 582 of file dynamic_parameters.h.

boost::mutex& swri::DynamicParameters::mutex ( )
inline

Definition at line 576 of file dynamic_parameters.h.

void swri::DynamicParameters::setCallback ( boost::function< void(DynamicParameters &)>  fun)
inline

Definition at line 474 of file dynamic_parameters.h.

bool swri::DynamicParameters::setConfigCallback ( dynamic_reconfigure::Reconfigure::Request &  req,
dynamic_reconfigure::Reconfigure::Response &  rsp 
)
inlineprivate

Definition at line 140 of file dynamic_parameters.h.

void swri::DynamicParameters::update ( )
inline

Definition at line 479 of file dynamic_parameters.h.

void swri::DynamicParameters::updateCurrent ( dynamic_reconfigure::Config &  config)
inlineprivate

Definition at line 243 of file dynamic_parameters.h.

Member Data Documentation

ros::Publisher swri::DynamicParameters::descr_pub_
private

Definition at line 125 of file dynamic_parameters.h.

boost::shared_ptr<boost::mutex> swri::DynamicParameters::mutex_
private

Definition at line 138 of file dynamic_parameters.h.

boost::shared_ptr<ros::NodeHandle> swri::DynamicParameters::nh_
private

Definition at line 128 of file dynamic_parameters.h.

boost::function<void(DynamicParameters&)> swri::DynamicParameters::on_change_
private

Definition at line 135 of file dynamic_parameters.h.

std::vector<std::string> swri::DynamicParameters::ordered_params_
private

Definition at line 133 of file dynamic_parameters.h.

ros::ServiceServer swri::DynamicParameters::set_service_
private

Definition at line 127 of file dynamic_parameters.h.

ros::Publisher swri::DynamicParameters::update_pub_
private

Definition at line 126 of file dynamic_parameters.h.

std::map<std::string, DynamicValue> swri::DynamicParameters::values_
private

Definition at line 130 of file dynamic_parameters.h.


The documentation for this class was generated from the following file:


swri_roscpp
Author(s):
autogenerated on Tue Apr 6 2021 02:50:35