Open3D (C++ API)  0.15.1
RemoteFunctions.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// The MIT License (MIT)
5//
6// Copyright (c) 2018-2021 www.open3d.org
7//
8// Permission is hereby granted, free of charge, to any person obtaining a copy
9// of this software and associated documentation files (the "Software"), to deal
10// in the Software without restriction, including without limitation the rights
11// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12// copies of the Software, and to permit persons to whom the Software is
13// furnished to do so, subject to the following conditions:
14//
15// The above copyright notice and this permission notice shall be included in
16// all copies or substantial portions of the Software.
17//
18// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24// IN THE SOFTWARE.
25// ----------------------------------------------------------------------------
26
27#pragma once
28
29#include <array>
30#include <map>
31
33#include "open3d/core/Tensor.h"
38
39namespace zmq {
40class message_t;
41}
42
43namespace open3d {
44namespace io {
45namespace rpc {
46
47namespace messages {
48struct Status;
49}
50
64bool SetPointCloud(const geometry::PointCloud& pcd,
65 const std::string& path = "",
66 int time = 0,
67 const std::string& layer = "",
68 std::shared_ptr<ConnectionBase> connection =
69 std::shared_ptr<ConnectionBase>());
70
84bool SetTriangleMesh(const geometry::TriangleMesh& mesh,
85 const std::string& path = "",
86 int time = 0,
87 const std::string& layer = "",
88 std::shared_ptr<ConnectionBase> connection =
89 std::shared_ptr<ConnectionBase>());
90
144bool SetMeshData(
145 const std::string& path = "",
146 int time = 0,
147 const std::string& layer = "",
148 const core::Tensor& vertices = core::Tensor({0}, core::Float32),
149 const std::map<std::string, core::Tensor>& vertex_attributes =
150 std::map<std::string, core::Tensor>(),
151 const core::Tensor& faces = core::Tensor({0}, core::Int32),
152 const std::map<std::string, core::Tensor>& face_attributes =
153 std::map<std::string, core::Tensor>(),
154 const core::Tensor& lines = core::Tensor({0}, core::Int32),
155 const std::map<std::string, core::Tensor>& line_attributes =
156 std::map<std::string, core::Tensor>(),
157 const std::string& material = "",
158 const std::map<std::string, float>& material_scalar_attributes =
159 std::map<std::string, float>(),
160 const std::map<std::string, std::array<float, 4>>&
161 material_vector_attributes =
162 std::map<std::string, std::array<float, 4>>(),
163 const std::map<std::string, t::geometry::Image>& texture_maps =
164 std::map<std::string, t::geometry::Image>(),
165 const std::string& o3d_type = "",
166 std::shared_ptr<ConnectionBase> connection =
167 std::shared_ptr<ConnectionBase>());
168
182bool SetLegacyCamera(const camera::PinholeCameraParameters& camera,
183 const std::string& path = "",
184 int time = 0,
185 const std::string& layer = "",
186 std::shared_ptr<ConnectionBase> connection =
187 std::shared_ptr<ConnectionBase>());
188
195bool SetTime(int time,
196 std::shared_ptr<ConnectionBase> connection =
197 std::shared_ptr<ConnectionBase>());
198
206bool SetActiveCamera(const std::string& path,
207 std::shared_ptr<ConnectionBase> connection =
208 std::shared_ptr<ConnectionBase>());
209
210} // namespace rpc
211} // namespace io
212} // namespace open3d
const Dtype Int32
Definition: Dtype.cpp:65
const Dtype Float32
Definition: Dtype.cpp:61
bool SetPointCloud(const geometry::PointCloud &pcd, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:44
bool SetTime(int time, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:371
bool SetLegacyCamera(const camera::PinholeCameraParameters &camera, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:314
bool SetMeshData(const std::string &path, int time, const std::string &layer, const core::Tensor &vertices, const std::map< std::string, core::Tensor > &vertex_attributes, const core::Tensor &faces, const std::map< std::string, core::Tensor > &face_attributes, const core::Tensor &lines, const std::map< std::string, core::Tensor > &line_attributes, const std::string &material, const std::map< std::string, float > &material_scalar_attributes, const std::map< std::string, std::array< float, 4 > > &material_vector_attributes, const std::map< std::string, t::geometry::Image > &texture_maps, const std::string &o3d_type, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:163
bool SetTriangleMesh(const geometry::TriangleMesh &mesh, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:85
bool SetActiveCamera(const std::string &path, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:388
Definition: PinholeCameraIntrinsic.cpp:35
Definition: ConnectionBase.h:31