Viam C++ SDK current
Loading...
Searching...
No Matches
pose_tracker_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/posetracker/v1/pose_tracker.grpc.pb.h>
8#include <viam/api/component/posetracker/v1/pose_tracker.pb.h>
9
12#include <viam/sdk/resource/resource_server_base.hpp>
13
14namespace viam {
15namespace sdk {
16namespace impl {
17
22 public viam::component::posetracker::v1::PoseTrackerService::Service {
23 public:
25 using service_type = component::posetracker::v1::PoseTrackerService;
26 explicit PoseTrackerServer(std::shared_ptr<ResourceManager> manager);
27
28 ::grpc::Status GetPoses(
29 ::grpc::ServerContext* context,
30 const ::viam::component::posetracker::v1::GetPosesRequest* request,
31 ::viam::component::posetracker::v1::GetPosesResponse* response) noexcept override;
32
33 ::grpc::Status DoCommand(::grpc::ServerContext* context,
34 const ::viam::common::v1::DoCommandRequest* request,
35 ::viam::common::v1::DoCommandResponse* response) noexcept override;
36
37 ::grpc::Status GetGeometries(
38 ::grpc::ServerContext* context,
39 const ::viam::common::v1::GetGeometriesRequest* request,
40 ::viam::common::v1::GetGeometriesResponse* response) noexcept override;
41};
42} // namespace impl
43} // namespace sdk
44} // namespace viam
A PoseTracker represents a physical pose or motion tracking device.
Definition pose_tracker.hpp:24
Definition resource_server_base.hpp:8
gRPC server implementation of a PoseTracker component.
Definition pose_tracker_server.hpp:22
Defines a PoseTracker component.
Defines a general-purpose resource manager.