6#ifndef YARP_DEV_FRAMETRANSFORM_UTILS_H
7#define YARP_DEV_FRAMETRANSFORM_UTILS_H
35 using ContainerType = std::vector<yarp::math::FrameTransform>;
47 Iterator(ContainerType& data, ContainerType::iterator ptr) :
51 while (m_ptr != m_data.end() && !m_ptr->isValid()) {
64 }
while (m_ptr != m_data.end() && !m_ptr->isValid());
72 friend bool operator!= (
const Iterator& a,
const Iterator& b) {
return a.m_ptr != b.m_ptr; };
75 ContainerType::iterator m_ptr;
76 ContainerType& m_data;
82 return Iterator(m_transforms, m_transforms.begin());
87 return Iterator(m_transforms, m_transforms.end());
99 double m_timeout = 0.2;
100 bool m_verbose_debug =
false;
108 bool setTransforms(
const std::vector<yarp::math::FrameTransform>& transforms)
override;
112 bool getTransforms(std::vector<yarp::math::FrameTransform>& transforms)
const override;
115 bool deleteTransform(std::string t1, std::string t2)
override;
116 bool clearAll()
override;
118 bool size(
size_t& size)
const;
122 bool checkAndRemoveExpired();
123 bool checkAndRemoveExpired()
const;
bool operator==(const struct v4l2_control &left, const struct v4l2_control &right)
contains the definition of a Vector type
For streams capable of holding different kinds of content, check what they actually have.