Template Class Parameter

Nested Relationships

Nested Types

Inheritance Relationships

Derived Types

Class Documentation

template<class T>
class Parameter

Subclassed by hatchbed_common::NumericParameter< int >, hatchbed_common::NumericParameter< T >

Public Functions

inline Parameter(T *store, const std::string &ns, const std::string &name, T default_val, const std::string &description, std::shared_ptr<rclcpp::Node> node)
Parameter() = default
Parameter(const Parameter &parameter) = default
virtual ~Parameter() = default
inline virtual Declared declare()
inline virtual Parameter<T> &callback(std::function<void(T)> callback)
inline virtual Parameter<T> &dynamic()
inline T defaultValue() const
inline std::string qualifiedName() const
inline std::string description() const
inline bool isDynamic() const

Protected Functions

inline T value() const
inline virtual bool update(const T &value, bool from_callback = false)
inline virtual std::string toString(const T &value) const
inline virtual void registerParam()
inline T getParameter()

Protected Attributes

std::string namespace_
std::string name_
T default_val_
std::string description_
std::shared_ptr<rclcpp::Node> node_
BorrowedStore<T>::Ptr borrowed_store_
OwnedStore<T>::Ptr owned_store_
bool initialized_ = false
bool is_dynamic_ = false
std::function<void(T)> user_callback_

Friends

friend class ParamHandler
class Declared

Public Functions

inline Declared(const Parameter &param)
inline T value()
inline bool update(const T &value)