Program Listing for File ros_parameter.hpp
↰ Return to documentation for file (include/ros_parameter.hpp)
#ifndef RIG_RECONFIGURE_ROS_PARAMETER_HPP
#define RIG_RECONFIGURE_ROS_PARAMETER_HPP
#include <string>
#include <variant>
// TODO: add arrays
using ROSParameterVariant = std::variant<bool, int, double, std::string>;
struct ROSParameter {
ROSParameter(std::string name_, ROSParameterVariant value_) :
name(std::move(name_)), value(std::move(value_)) {};
std::string name;
ROSParameterVariant value;
};
#endif // RIG_RECONFIGURE_ROS_PARAMETER_HPP