Template Class NumericParameter

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class NumericParameter : public hatchbed_common::Parameter<T>

Public Functions

inline NumericParameter(T *store, const std::string &ns, const std::string &name, T default_val, const std::string &description, std::shared_ptr<rclcpp::Node> node)
NumericParameter() = default
NumericParameter(const NumericParameter &parameter) = default
virtual ~NumericParameter() = default
inline virtual NumericParameter<T> &callback(std::function<void(T)> callback) override
inline virtual NumericParameter<T> &dynamic() override
inline virtual NumericParameter<T> &min(T min)
inline virtual NumericParameter<T> &max(T max)
inline virtual NumericParameter<T> &step(T step)
inline T min() const
inline bool hasRange() const
inline T max() const
inline T clamp(const T &value) const

Protected Functions

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

Protected Attributes

T min_ = -10000
T max_ = 10000
T step_ = 0
bool has_range_ = false

Friends

friend class ParamHandler