Namespaces | Functions
param_utils/get_param_specializations/tf2.hpp File Reference

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>
Include dependency graph for param_utils/get_param_specializations/tf2.hpp:

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(
 

Detailed Description

Specializations of getParam() for tf2 types.

Author
Martin Pecka SPDX-License-Identifier: BSD-3-Clause SPDX-FileCopyrightText: Czech Technical University in Prague

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.



cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Dec 14 2024 03:51:04