RobotsIO
Loading...
Searching...
No Matches
src
RobotsIO
src
Utils
Transform.cpp
1
/*
2
* Copyright (C) 2020 Istituto Italiano di Tecnologia (IIT)
3
*
4
* This software may be modified and distributed under the terms of the
5
* BSD 3-Clause license. See the accompanying LICENSE file for details.
6
*/
7
8
#include <RobotsIO/Utils/Transform.h>
9
10
using namespace
RobotsIO::Utils;
11
12
13
Transform::~Transform()
14
{}
15
16
17
Eigen::MatrixXd
Transform::bounding_box
()
18
{
19
/* By default, this return an empty matrix. */
20
Eigen::MatrixXd empty;
21
return
empty;
22
}
23
24
25
int
Transform::get_frames_between_iterations
()
const
26
{
27
/* 1 indicates that the transform stream is, by default, available at all frames. */
28
return
1;
29
}
30
31
32
void
Transform::set_rgb_image
(
const
cv::Mat& image)
33
{
34
/* By default, the input image is not used. */
35
}
36
37
38
void
Transform::set_depth_segmentation_image
(
const
Eigen::MatrixXf& depth,
const
cv::Mat& segmentation)
39
{
40
/* By default, the input images are not used. */
41
}
42
43
44
bool
Transform::transform_received
()
45
{
46
/* By default, it returns true. */
47
48
return
true
;
49
}
RobotsIO::Utils::Transform::bounding_box
virtual Eigen::MatrixXd bounding_box()
Definition:
Transform.cpp:17
RobotsIO::Utils::Transform::set_rgb_image
virtual void set_rgb_image(const cv::Mat &image)
Definition:
Transform.cpp:32
RobotsIO::Utils::Transform::set_depth_segmentation_image
virtual void set_depth_segmentation_image(const Eigen::MatrixXf &depth, const cv::Mat &segmentation)
Definition:
Transform.cpp:38
RobotsIO::Utils::Transform::transform_received
virtual bool transform_received()
Definition:
Transform.cpp:44
RobotsIO::Utils::Transform::get_frames_between_iterations
virtual int get_frames_between_iterations() const
Definition:
Transform.cpp:25
Generated by
1.9.6