Viam C++ SDK current
Loading...
Searching...
No Matches
camera_server.hpp
Go to the documentation of this file.
1
4#pragma once
5
6#include <viam/api/common/v1/common.pb.h>
7#include <viam/api/component/camera/v1/camera.grpc.pb.h>
8
11#include <viam/sdk/resource/resource_server_base.hpp>
12
13namespace viam {
14namespace sdk {
15namespace impl {
16
21 public viam::component::camera::v1::CameraService::Service {
22 public:
23 using interface_type = Camera;
24 using service_type = component::camera::v1::CameraService;
25 explicit CameraServer(std::shared_ptr<ResourceManager> manager);
26
27 ::grpc::Status DoCommand(::grpc::ServerContext* context,
28 const ::viam::common::v1::DoCommandRequest* request,
29 ::viam::common::v1::DoCommandResponse* response) noexcept override;
30 ::grpc::Status GetImage(
31 ::grpc::ServerContext* context,
32 const ::viam::component::camera::v1::GetImageRequest* request,
33 ::viam::component::camera::v1::GetImageResponse* response) noexcept override;
34 ::grpc::Status GetImages(
35 ::grpc::ServerContext* context,
36 const ::viam::component::camera::v1::GetImagesRequest* request,
37 ::viam::component::camera::v1::GetImagesResponse* response) noexcept override;
38 ::grpc::Status RenderFrame(::grpc::ServerContext* context,
39 const ::viam::component::camera::v1::RenderFrameRequest* request,
40 ::google::api::HttpBody* response) noexcept override;
41 ::grpc::Status GetPointCloud(
42 ::grpc::ServerContext* context,
43 const ::viam::component::camera::v1::GetPointCloudRequest* request,
44 ::viam::component::camera::v1::GetPointCloudResponse* response) noexcept override;
45 ::grpc::Status GetGeometries(
46 ::grpc::ServerContext* context,
47 const ::viam::common::v1::GetGeometriesRequest* request,
48 ::viam::common::v1::GetGeometriesResponse* response) noexcept override;
49 ::grpc::Status GetProperties(
50 ::grpc::ServerContext* context,
51 const ::viam::component::camera::v1::GetPropertiesRequest* request,
52 ::viam::component::camera::v1::GetPropertiesResponse* response) noexcept override;
53};
54
55} // namespace impl
56} // namespace sdk
57} // namespace viam
Defines a Camera component.
A Camera represents any physical hardware that can capture frames.
Definition camera.hpp:28
Definition resource_server_base.hpp:8
gRPC server implementation of a Camera component.
Definition camera_server.hpp:21
Defines a general-purpose resource manager.