Specializations of getParam() for tf2 types. More...
#include <vector>
#include <tf2/LinearMath/Matrix3x3.h>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2/LinearMath/Transform.h>
#include <tf2/LinearMath/Vector3.h>
Go to the source code of this file.
Namespaces | |
cras | |
Functions | |
cras::DEFINE_CONVERTING_GET_PARAM (::tf2::Vector3, ::std::vector< double >, "", [](const ::std::vector< double > &v) { if(v.size() !=3) throw ::std::runtime_error(::cras::format("Cannot load %s parameter from an array of length %lu", "tf2::Vector3", v.size()));return ::tf2::Vector3(v[0], v[1], v[2]);}) DEFINE_CONVERTING_GET_PARAM( | |
Specializations of getParam() for tf2 types.
Quaternion can be loaded either from 4 values (direct coeffs) or 3 values (roll, pitch, yaw in rad).
Transform can be loaded either from 6 values (3 translation + 3 rotation), 7 values (3 translation + 4 rotation) or 16 values (column-wise transformation matrix).
Definition in file param_utils/get_param_specializations/tf2.hpp.