ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
SensorIntrinsics.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Povl Filip Sonne-Frederiksen
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7#include <array>
8#include <string>
9
10namespace reusex::core {
11
15 double fx = 0, fy = 0, cx = 0, cy = 0;
16 int width = 0, height = 0;
18 std::array<double, 16> local_transform = {1, 0, 0, 0, 0, 1, 0, 0,
19 0, 0, 1, 0, 0, 0, 0, 1};
20
22 std::string to_json() const;
23
25 static SensorIntrinsics from_json(const std::string &json);
26};
27
28} // namespace reusex::core
Lightweight camera intrinsics replacing rtabmap::CameraModel in downstream code.
std::array< double, 16 > local_transform
4x4 row-major local transform (camera frame to robot/sensor base frame).
std::string to_json() const
Serialize to JSON string for storage in ProjectDB.
static SensorIntrinsics from_json(const std::string &json)
Deserialize from JSON string. Returns default-constructed on failure.