1 #ifndef SLAM_CTOR_ROS_LAUNCH_PROPERTIES_PROVIDER 2 #define SLAM_CTOR_ROS_LAUNCH_PROPERTIES_PROVIDER 8 #include "../utils/properties_providers.h" 13 int get_int(
const std::string &
id,
int dflt)
const override {
14 return launch_param<int>(id, dflt);
17 double get_dbl(
const std::string &
id,
double dflt)
const override {
18 return launch_param<double>(id, dflt);
22 return launch_param<str>(id, dflt);
25 unsigned get_uint(
const std::string &
id,
unsigned dflt)
const override {
26 int v = launch_param<int>(id, dflt);
31 bool get_bool(
const std::string &
id,
bool dflt)
const override {
32 return launch_param<bool>(id, dflt);
38 T
launch_param(
const std::string &
id,
const T &default_value)
const {
40 ros::param::param<T>(
"~" + id, value, default_value);
double get_dbl(const std::string &id, double dflt) const override
str get_str(const std::string &id, const str &dflt) const override
unsigned get_uint(const std::string &id, unsigned dflt) const override
int get_int(const std::string &id, int dflt) const override
T launch_param(const std::string &id, const T &default_value) const
bool get_bool(const std::string &id, bool dflt) const override