gtsam_points
Loading...
Searching...
No Matches
dummy_frame.hpp
1// SPDX-License-Identifier: MIT
2// Copyright (c) 2021 Kenji Koide (k.koide@aist.go.jp)
3
4#pragma once
5
6namespace gtsam_points {
7
9struct DummyFrame {};
10
11namespace frame {
12
13template <>
15 static int size(const DummyFrame& frame) { return 0; }
16
17 static bool has_times(const DummyFrame& frame) { return false; }
18 static bool has_points(const DummyFrame& frame) { return false; }
19 static bool has_normals(const DummyFrame& frame) { return false; }
20 static bool has_covs(const DummyFrame& frame) { return false; }
21 static bool has_intensities(const DummyFrame& frame) { return false; }
22
23 static double time(const DummyFrame& frame, int i) { return 0.0; }
24 static const Eigen::Vector4d point(const DummyFrame& frame, int i) { return Eigen::Vector4d(0, 0, 0, 1); }
25 static const Eigen::Vector4d normal(const DummyFrame& frame, int i) { return Eigen::Vector4d(0, 0, 0, 0); }
26 static const Eigen::Matrix4d cov(const DummyFrame& frame, int i) { return Eigen::Matrix4d::Zero(); }
27 static double intensity(const DummyFrame& frame, int i) { return 0.0; }
28
29 static const Eigen::Vector4d* points_ptr(const DummyFrame& frame) { return nullptr; }
30};
31} // namespace frame
32} // namespace gtsam_points
Dummy frame class for build test.
Definition dummy_frame.hpp:9
Definition frame_traits.hpp:17