39 #ifndef ROSPARAM_SHORTCUTS_ROSPARAM_SHORTCUTS_H 40 #define ROSPARAM_SHORTCUTS_ROSPARAM_SHORTCUTS_H 51 #include <Eigen/Geometry> 57 #include <geometry_msgs/Pose.h> 74 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name,
bool &value);
76 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶ms_name,
77 std::map<std::string, bool> ¶meters);
79 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name,
double &value);
81 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name,
82 std::vector<double> &values);
84 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name,
int &value);
86 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name, std::size_t &value);
88 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name, std::string &value);
90 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name,
91 std::vector<std::string> &values);
93 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name,
96 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name,
97 Eigen::Isometry3d &value);
99 bool get(
const std::string &parent_name,
const ros::NodeHandle &nh,
const std::string ¶m_name,
100 geometry_msgs::Pose &value);
115 bool convertDoublesToEigen(
const std::string &parent_name, std::vector<double> values, Eigen::Isometry3d &transform);
121 void shutdownIfError(
const std::string &parent_name, std::size_t error_count);
125 #endif // ROSPARAM_SHORTCUTS_ROSPARAM_SHORTCUTS_H bool convertDoublesToEigen(const std::string &parent_name, std::vector< double > values, Eigen::Isometry3d &transform)
Convert from 6 doubles of [x,y,z] [r,p,y] or 7 doubles of [x, y, z, qw, qx, qy, qz] to a transform...
void shutdownIfError(const std::string &parent_name, std::size_t error_count)
Check that there were no errors, and if there were, shutdown.
std::string getDebugArrayString(std::vector< double > values)
Output a string of values from an array for debugging.