LibMultiSense
LibMultiSense Documentation
Loading...
Searching...
No Matches
multi_channel_test.cc
Go to the documentation of this file.
1
37#include <gtest/gtest.h>
38
40
41using namespace multisense;
42
44{
45 using namespace std::chrono_literals;
46 std::vector<ImageFrame> frames{};
47
49
50 frames.emplace_back(ImageFrame{1, {}, {}, TimeT{10ms}, TimeT{10ms}, {}, {}, {}, {}});
51 frames.emplace_back(ImageFrame{3, {}, {}, TimeT{30ms}, TimeT{30ms}, {}, {}, {}, {}});
52
55
56 frames.emplace_back(ImageFrame{37, {}, {}, TimeT{38ms}, TimeT{38ms}, {}, {}, {}, {}});
57 frames.emplace_back(ImageFrame{7, {}, {}, TimeT{31ms}, TimeT{31ms}, {}, {}, {}, {}});
58
61}
Copyright 2013-2025 Carnegie Robotics, LLC 4501 Hatfield Street, Pittsburgh, PA 15201 http://www....
TEST(frames_synchronized, basic_test)
MULTISENSE_API std::optional< PointCloud< Color > > create_color_pointcloud(const Image &disparity, const std::optional< Image > &color, double max_range, const StereoCalibration &calibration)
Create a point cloud from a image frame and a color source.
MULTISENSE_API bool frames_synchronized(const std::vector< ImageFrame > &frames, const std::chrono::nanoseconds &tolerance)
Free function which determines if a collection of frames are synchronized within a given tolerance.
std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > TimeT
A frame containing multiple images (indexed by DataSource).