text
stringlengths
1
24.5M
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_EXAMPLES_OPT_EVALUATOR_H_ #define M3T_EXAMPLES_OPT_EVALUATOR_H_ #include <m3t/body.h> #include <m3t/common.h> #include <m3t/depth_modality.h> #include <m3t/depth_model.h> #include <m3t/link.h> #include <m3t...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "choi_evaluator.h" int main() { // Directories std::filesystem::path dataset_directory{"/your/path/"}; std::filesystem::path external_directory{"/your/path/"}; // Dataset configuration std::vector<s...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "opt_evaluator.h" int main() { // Directories std::filesystem::path dataset_directory{"/your/path/"}; std::filesystem::path external_directory{"/your/path/"}; // Dataset configuration std::vector<st...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "rbot_evaluator.h" int main() { // Directories std::filesystem::path dataset_directory{"/your/path/"}; std::filesystem::path external_directory{"/your/path/"}; // Dataset configuration std::vector<s...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "rtb_evaluator.h" int main() { // Directories std::filesystem::path dataset_directory{"/your/path/"}; std::filesystem::path external_directory{"/your/path/"}; // Dataset configuration std::vector<st...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "ycb_evaluator.h" int main() { // Directories std::filesystem::path dataset_directory{"/your/path/"}; std::filesystem::path external_directory{"/your/path/"}; // Dataset configuration std::vector<in...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "rbot_evaluator.h" RBOTEvaluator::RBOTEvaluator(const std::string &name, const std::filesystem::path &dataset_directory, const std::filesystem::path &e...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_EXAMPLES_RBOT_EVALUATOR_H_ #define M3T_EXAMPLES_RBOT_EVALUATOR_H_ #include <m3t/basic_depth_renderer.h> #include <m3t/body.h> #include <m3t/common.h> #include <m3t/link.h> #include <m3t/loader_camera.h> #in...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <filesystem/filesystem.h> #include <m3t/azure_kinect_camera.h> #include <m3t/image_viewer.h> #include <m3t/tracker.h> #include <memory> #include <string> int main(int argc, char *argv[]) { if (argc != 2) { ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "rtb_evaluator.h" RTBEvaluator::RTBEvaluator(const std::string &name, const std::filesystem::path &dataset_directory, const std::filesystem::path &external...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_EXAMPLES_RTB_EVALUATOR_H_ #define M3T_EXAMPLES_RTB_EVALUATOR_H_ #include <m3t/body.h> #include <m3t/common.h> #include <m3t/depth_modality.h> #include <m3t/depth_model.h> #include <m3t/generator.h> #include...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <filesystem/filesystem.h> #include <m3t/generator.h> #include <m3t/tracker.h> int main(int argc, char *argv[]) { if (argc != 2) { std::cerr << "Not enough arguments: Provide configfile_path"; return ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <filesystem/filesystem.h> #include <m3t/azure_kinect_camera.h> #include <m3t/basic_depth_renderer.h> #include <m3t/body.h> #include <m3t/common.h> #include <m3t/depth_modality.h> #include <m3t/depth_model.h> #i...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <filesystem/filesystem.h> #include <m3t/basic_depth_renderer.h> #include <m3t/body.h> #include <m3t/common.h> #include <m3t/loader_camera.h> #include <m3t/manual_detector.h> #include <m3t/normal_viewer.h> #incl...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <filesystem/filesystem.h> #include <m3t/generator.h> #include <m3t/tracker.h> /** * Class that visualizes the drawing of a stabilo pen on a paper */ class DrawingPublisher : public m3t::Publisher { private:...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "ycb_evaluator.h" YCBEvaluator::YCBEvaluator( const std::string &name, const std::filesystem::path &dataset_directory, const std::filesystem::path &external_directory, const std::vector<int> &seque...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_EXAMPLES_YCB_EVALUATOR_H_ #define M3T_EXAMPLES_YCB_EVALUATOR_H_ #include <m3t/basic_depth_renderer.h> #include <m3t/body.h> #include <m3t/common.h> #include <m3t/depth_modality.h> #include <m3t/depth_model....
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_AZURE_KINECT_CAMERA_H_ #define M3T_INCLUDE_M3T_AZURE_KINECT_CAMERA_H_ #include <filesystem/filesystem.h> #include <m3t/camera.h> #include <m3t/common.h> #include <chrono> #include <iostream> #i...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_BASIC_DEPTH_RENDERER_H_ #define M3T_INCLUDE_M3T_BASIC_DEPTH_RENDERER_H_ #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/renderer.h> #include <m3t/renderer_geo...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_BODY_H_ #define M3T_INCLUDE_M3T_BODY_H_ #include <m3t/common.h> #include <filesystem/filesystem.h> #include <Eigen/Dense> #include <Eigen/Geometry> #include <array> #include <atomic> #include <...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_CAMERA_H_ #define M3T_INCLUDE_M3T_CAMERA_H_ #include <filesystem/filesystem.h> #include <m3t/common.h> #include <Eigen/Geometry> #include <fstream> #include <opencv2/opencv.hpp> namespace m3t ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_COLOR_HISTOGRAMS_H_ #define M3T_INCLUDE_M3T_COLOR_HISTOGRAMS_H_ #include <filesystem/filesystem.h> #include <m3t/common.h> #include <algorithm> #include <opencv2/opencv.hpp> #include <string> #...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_COMMON_H_ #define M3T_INCLUDE_M3T_COMMON_H_ #include <filesystem/filesystem.h> #include <Eigen/Dense> #include <Eigen/Geometry> #include <fstream> #include <opencv2/opencv.hpp> #include <string...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_CONSTRAINT_H_ #define M3T_INCLUDE_M3T_CONSTRAINT_H_ #include <m3t/body.h> #include <m3t/common.h> #include <m3t/link.h> #include <m3t/modality.h> #include <Eigen/Dense> #include <Eigen/Geometry...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_DEPTH_MODALITY_H_ #define M3T_INCLUDE_M3T_DEPTH_MODALITY_H_ #include <filesystem/filesystem.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/depth_model.h> ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_DEPTH_MODEL_H_ #define M3T_INCLUDE_M3T_DEPTH_MODEL_H_ #include <filesystem/filesystem.h> #include <m3t/body.h> #include <m3t/common.h> #include <m3t/model.h> #include <m3t/normal_renderer.h> #in...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_DETECTOR_H_ #define M3T_INCLUDE_M3T_DETECTOR_H_ #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/optimizer.h> namespace m3t { /** * \brief Abstract class that is able to set the ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_GENERATOR_H_ #define M3T_INCLUDE_M3T_GENERATOR_H_ #ifdef USE_REALSENSE #include <m3t/realsense_camera.h> #endif #ifdef USE_AZURE_KINECT #include <m3t/azure_kinect_camera.h> #endif #include <m3t/...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_IMAGE_VIEWER_H_ #define M3T_INCLUDE_M3T_IMAGE_VIEWER_H_ #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/viewer.h> #include <memory> #include <opencv2/opencv.hpp> #include <string>...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_LINK_H_ #define M3T_INCLUDE_M3T_LINK_H_ #include <m3t/body.h> #include <m3t/common.h> #include <m3t/modality.h> #include <Eigen/Dense> #include <Eigen/Geometry> #include <iostream> #include <st...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_LOADER_CAMERA_H_ #define M3T_INCLUDE_M3T_LOADER_CAMERA_H_ #include <filesystem/filesystem.h> #include <m3t/camera.h> #include <m3t/common.h> #include <fstream> #include <iostream> #include <ope...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber and Anne Elisabeth Reichert, // German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_MANUAL_DETECTOR_H_ #define M3T_INCLUDE_M3T_MANUAL_DETECTOR_H_ #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/detector.h> #include <m3t/optimizer.h> ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_MODALITY_H_ #define M3T_INCLUDE_M3T_MODALITY_H_ #include <filesystem/filesystem.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/color_histograms.h> #include <m3t/common.h> #includ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_MODEL_H_ #define M3T_INCLUDE_M3T_MODEL_H_ #include <filesystem/filesystem.h> #include <m3t/body.h> #include <m3t/common.h> #include <m3t/normal_renderer.h> #include <m3t/renderer_geometry.h> #in...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_NORMAL_RENDERER_H_ #define M3T_INCLUDE_M3T_NORMAL_RENDERER_H_ #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/renderer.h> #include <m3t/renderer_geometry.h> ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_NORMAL_VIEWER_H_ #define M3T_INCLUDE_M3T_NORMAL_VIEWER_H_ #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/normal_renderer.h> #include <m3t/renderer_geometry.h> #include <m3t/viewer...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_OPTIMIZER_H_ #define M3T_INCLUDE_M3T_OPTIMIZER_H_ #include <m3t/body.h> #include <m3t/common.h> #include <m3t/constraint.h> #include <m3t/link.h> #include <m3t/soft_constraint.h> #include <Eige...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_PUBLISHER_H_ #define M3T_INCLUDE_M3T_PUBLISHER_H_ #include <m3t/common.h> namespace m3t { /** * \brief Abstract class that defines a publisher that can be used to * publish any data using th...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_REALSENSE_CAMERA_H_ #define M3T_INCLUDE_M3T_REALSENSE_CAMERA_H_ #include <filesystem/filesystem.h> #include <m3t/camera.h> #include <m3t/common.h> #include <chrono> #include <iostream> #include...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_REFINER_H_ #define M3T_INCLUDE_M3T_REFINER_H_ #include <m3t/body.h> #include <m3t/constraint.h> #include <m3t/link.h> #include <m3t/modality.h> #include <m3t/optimizer.h> #include <string> #inc...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_REGION_MODALITY_H_ #define M3T_INCLUDE_M3T_REGION_MODALITY_H_ #include <filesystem/filesystem.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/color_histograms.h> #include <m3t/com...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber and Anne Elisabeth Reichert, // German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_REGION_MODEL_H_ #define M3T_INCLUDE_M3T_REGION_MODEL_H_ #include <filesystem/filesystem.h> #include <m3t/body.h> #include <m3t/common.h> #include <m3t/model.h> #in...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_RENDERER_H_ #define M3T_INCLUDE_M3T_RENDERER_H_ #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/renderer_geometry.h> #include <Eigen/Dense> #include <Eigen/Geometry> #include <ios...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_RENDERER_GEOMETRY_H_ #define M3T_INCLUDE_M3T_RENDERER_GEOMETRY_H_ #include <GL/glew.h> #include <GLFW/glfw3.h> #include <m3t/body.h> #include <m3t/common.h> #include <filesystem/filesystem.h> #...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_SILHOUETTE_RENDERER_H #define M3T_INCLUDE_M3T_SILHOUETTE_RENDERER_H #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/renderer.h> #include <m3t/renderer_geometr...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_SOFT_CONSTRAINT_H_ #define M3T_INCLUDE_M3T_SOFT_CONSTRAINT_H_ #include <m3t/body.h> #include <m3t/common.h> #include <m3t/link.h> #include <Eigen/Dense> #include <Eigen/Geometry> #include <iost...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_STATIC_DETECTOR_H_ #define M3T_INCLUDE_M3T_STATIC_DETECTOR_H_ #include <m3t/common.h> #include <m3t/detector.h> #include <m3t/optimizer.h> #include <filesystem/filesystem.h> #include <Eigen/Geo...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_SUBSCRIBER_H_ #define M3T_INCLUDE_M3T_SUBSCRIBER_H_ #include <m3t/common.h> namespace m3t { /** * \brief Abstract class that defines a subscriber that can be used to * subscribe to any data ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber and Mariam Elsayed, // German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_TEXTURE_MODALITY_H_ #define M3T_INCLUDE_M3T_TEXTURE_MODALITY_H_ #include <filesystem/filesystem.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/common.h> #in...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_TRACKER_H_ #define M3T_INCLUDE_M3T_TRACKER_H_ #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/color_histograms.h> #include <m3t/common.h> #include <m3t/constraint.h> #include <m3t/de...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_INCLUDE_M3T_VIEWER_H_ #define M3T_INCLUDE_M3T_VIEWER_H_ #include <filesystem/filesystem.h> #include <m3t/camera.h> #include <m3t/common.h> #include <m3t/renderer_geometry.h> #include <memory> #include <str...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/azure_kinect_camera.h> namespace m3t { AzureKinect &AzureKinect::GetInstance() { static AzureKinect kinect; return kinect; } AzureKinect::~AzureKinect() { if (initial_set_up_) { device_.stop_c...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/basic_depth_renderer.h> #include <GL/glew.h> #include <GLFW/glfw3.h> namespace m3t { std::string BasicDepthRendererCore::vertex_shader_code_ = "#version 330 core\n" "layout(location = 0) in vec3...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/body.h> #define TINYOBJLOADER_IMPLEMENTATION #include <tiny_obj_loader/tiny_obj_loader.h> namespace m3t { std::atomic<uchar> Body::next_id_{1}; Body::Body(const std::string &name, const std::filesystem...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/camera.h> #include <opencv2/core/eigen.hpp> namespace m3t { void Camera::set_name(const std::string &name) { name_ = name; } void Camera::set_metafile_path(const std::filesystem::path &metafile_path) {...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/color_histograms.h> namespace m3t { ColorHistograms::ColorHistograms(const std::string& name, int n_bins, float learning_rate_f, float learning_rate_b) : name_{name},...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/common.h> #include <opencv2/core/eigen.hpp> namespace m3t { bool Equivalent(const std::filesystem::path &path1, const std::filesystem::path &path2) { try { return std::filesystem::...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/constraint.h> namespace m3t { Constraint::Constraint(const std::string &name, const std::shared_ptr<Link> &link1_ptr, const std::shared_ptr<Link> &link2_ptr,...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/depth_modality.h> namespace m3t { DepthModality::DepthModality( const std::string &name, const std::shared_ptr<Body> &body_ptr, const std::shared_ptr<DepthCamera> &depth_camera_ptr, const std...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/depth_model.h> namespace m3t { DepthModel::DepthModel(const std::string &name, const std::shared_ptr<Body> &body_ptr, const std::filesystem::path &model_pat...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/detector.h> namespace m3t { void Detector::set_name(const std::string &name) { name_ = name; } void Detector::set_metafile_path(const std::filesystem::path &metafile_path) { metafile_path_ = metafile_...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/image_viewer.h> namespace m3t { ImageColorViewer::ImageColorViewer( const std::string &name, const std::shared_ptr<ColorCamera> &color_camera_ptr) : ColorViewer{name, color_camera_ptr} {} Im...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/link.h> namespace m3t { Link::Link(const std::string &name, const std::shared_ptr<Body> &body_ptr, const Transform3fA &body2joint_pose, const Transform3fA &joint2parent_pose, ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/loader_camera.h> #include <opencv2/core/eigen.hpp> namespace m3t { LoaderColorCamera::LoaderColorCamera( const std::string &name, const std::filesystem::path &load_directory, const Intrinsics &i...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber and Anne Elisabeth Reichert, // German Aerospace Center (DLR) #include <m3t/manual_detector.h> #include <opencv2/core/eigen.hpp> namespace m3t { PointDetector::PointDetector(const cv::Mat& image, const std::string& win...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/modality.h> namespace m3t { void Modality::set_name(const std::string &name) { name_ = name; } void Modality::set_metafile_path(const std::filesystem::path &metafile_path) { metafile_path_ = metafile_...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/model.h> namespace m3t { void Model::set_name(const std::string &name) { name_ = name; } void Model::set_metafile_path(const std::filesystem::path &metafile_path) { metafile_path_ = metafile_path; s...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/normal_renderer.h> #include <GL/glew.h> #include <GLFW/glfw3.h> namespace m3t { std::string NormalRendererCore::vertex_shader_code_ = "#version 330 core\n" "layout(location = 0) in vec3 aPos;\n"...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/normal_viewer.h> namespace m3t { cv::Mat CalculateAlphaBlend(const cv::Mat &camera_image, const cv::Mat &renderer_image, float opacity) { // Declare variables cv::Mat imag...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/optimizer.h> namespace m3t { Optimizer::Optimizer(const std::string &name, const std::shared_ptr<Link> &root_link_ptr, float tikhonov_parameter_rotation, ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/publisher.h> namespace m3t { void Publisher::set_name(const std::string &name) { name_ = name; } void Publisher::set_metafile_path(const std::filesystem::path &metafile_path) { metafile_path_ = metafi...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/realsense_camera.h> namespace m3t { RealSense &RealSense::GetInstance() { static RealSense realsense; return realsense; } RealSense::~RealSense() { if (initial_set_up_) { pipe_.stop(); } } ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/refiner.h> namespace m3t { Refiner::Refiner(const std::string &name, int n_corr_iterations, int n_update_iterations, int visualization_time) : name_{name}, n_corr_iterations_{n...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/region_modality.h> namespace m3t { RegionModality::RegionModality( const std::string &name, const std::shared_ptr<Body> &body_ptr, const std::shared_ptr<ColorCamera> &color_camera_ptr, const ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber and Anne Elisabeth Reichert, // German Aerospace Center (DLR) #include <m3t/region_model.h> namespace m3t { RegionModel::RegionModel(const std::string &name, const std::shared_ptr<Body> &body_ptr, co...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/renderer.h> #include <GL/glew.h> #include <GLFW/glfw3.h> namespace m3t { bool CreateShaderProgram(RendererGeometry *renderer_geometry, const char *vertex_shader_code, ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/renderer_geometry.h> namespace m3t { int RendererGeometry::n_instances_ = 0; RendererGeometry::RendererGeometry(const std::string &name) : name_{name} {} RendererGeometry::~RendererGeometry() { if (i...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "m3t/silhouette_renderer.h" #include <GL/glew.h> #include <GLFW/glfw3.h> namespace m3t { std::string SilhouetteRendererCore::vertex_shader_code_ = "#version 330 core\n" "layout(location = 0) in vec3 ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/soft_constraint.h> namespace m3t { SoftConstraint::SoftConstraint(const std::string &name, const std::shared_ptr<Link> &link1_ptr, const std:...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/static_detector.h> namespace m3t { StaticDetector::StaticDetector(const std::string &name, const std::shared_ptr<Optimizer> &optimizer_ptr, c...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/subscriber.h> namespace m3t { void Subscriber::set_name(const std::string &name) { name_ = name; } void Subscriber::set_metafile_path(const std::filesystem::path &metafile_path) { metafile_path_ = met...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber and Mariam Elsayed, // German Aerospace Center (DLR) #include <m3t/texture_modality.h> namespace m3t { TextureModality::TextureModality( const std::string &name, const std::shared_ptr<Body> &body_ptr, const std::shared_ptr<ColorCamera> &col...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/tracker.h> namespace m3t { Tracker::Tracker(const std::string &name, int n_corr_iterations, int n_update_iterations, bool synchronize_cameras, bool start_tracking_after_...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <m3t/viewer.h> namespace m3t { void Viewer::set_name(const std::string &name) { name_ = name; } void Viewer::set_metafile_path(const std::filesystem::path &metafile_path) { metafile_path_ = metafile_path; ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include "common_test.h" class BodyTest : public testing::Test { protected: void SetUp() override { body_ptr_ = std::make_shared<m3t::Body>( name_, geometr...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/loader_camera.h> #include "common_test.h" class LoaderColorCameraTest : public testing::Test { protected: void SetUp() override { camera_ptr_ = std::make_shared<m3t::Loade...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/color_histograms.h> #include "common_test.h" const std::filesystem::path color_histograms_test_directory{ data_directory / "color_histograms_test"}; class ColorHistogramsTes...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include "common_test.h" std::shared_ptr<m3t::Body> TriangleBodyPtrNoSetUp() { auto body_ptr{std::make_shared<m3t::Body>("triangle", body_directory / "triangle.yaml")}; m...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #ifndef M3T_TEST_COMMON_TEST_H_ #define M3T_TEST_COMMON_TEST_H_ #include <filesystem/filesystem.h> #include <m3t/basic_depth_renderer.h> #include <m3t/body.h> #include <m3t/color_histograms.h> #include <m3t/common.h> #...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/manual_detector.h> #include <m3t/static_detector.h> #include "common_test.h" const std::filesystem::path detector_test_directory{dat...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/depth_modality.h> #include <m3t/depth_model.h> #include <m3t/region_modality.h> #include <m3t/region_model.h> #include <m3t/texture_mo...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber and Anne Elisabeth Reichert, // German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include <m3t/depth_model.h> #include <m3t/region_model.h> #include "common_test.h" const std::filesystem::path model_test_directory{data_d...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/depth_modality.h> #include <m3t/optimizer.h> #include <m3t/region_modality.h> #include "common_test.h" const std::filesystem::path o...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/depth_modality.h> #include <m3t/link.h> #include <m3t/optimizer.h> #include <m3t/refiner.h> #include <m3t/region_modality.h> #include...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include <m3t/renderer_geometry.h> #include "common_test.h" class RendererGeometryTest : public testing::Test { protected: void SetUp() override { renderer_geometr...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/basic_depth_renderer.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/normal_renderer.h> #include <m3t/renderer_geometry.h> #include <m3t/silhouette_renderer.h> #inc...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/depth_modality.h> #include <m3t/generator.h> #include <m3t/link.h> #include <m3t/normal_viewer.h> #include <m3t/optimizer.h> #include ...
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Manuel Stoiber, German Aerospace Center (DLR) #include <gtest/gtest.h> #include <m3t/body.h> #include <m3t/camera.h> #include <m3t/image_viewer.h> #include <m3t/normal_viewer.h> #include <m3t/renderer_geometry.h> #include "common_test.h" const std::filesystem::pa...
// Copyright (c) 2018 BrainStone #ifndef FILESYSTEM_H #define FILESYSTEM_H #ifndef INCLUDE_STD_FILESYSTEM_EXPERIMENTAL // Check for feature test macro for <filesystem> # if defined(__cpp_lib_filesystem) # define INCLUDE_STD_FILESYSTEM_EXPERIMENTAL 0 // Check for feature test macro for <experimental/filesyste...
/*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-16 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...