Viam C++ SDK current
Loading...
Searching...
No Matches
pose_tracker_client.hpp
Go to the documentation of this file.
1
4#pragma once
5
6#include <grpcpp/channel.h>
7
8#include <viam/api/component/posetracker/v1/pose_tracker.grpc.pb.h>
9
11
12namespace viam {
13namespace sdk {
14namespace impl {
15
20 public:
22
23 PoseTrackerClient(std::string name, std::shared_ptr<grpc::Channel> channel);
24
25 PoseTracker::pose_map get_poses(const std::vector<std::string>& body_names,
26 const ProtoStruct& extra) override;
27
28 ProtoStruct do_command(const ProtoStruct& command) override;
29
30 std::vector<GeometryConfig> get_geometries(const ProtoStruct& extra) override;
31
34
35 private:
36 using StubType = viam::component::posetracker::v1::PoseTrackerService::StubInterface;
37 std::unique_ptr<StubType> stub_;
38 std::shared_ptr<grpc::Channel> channel_;
39};
40
41} // namespace impl
42} // namespace sdk
43} // namespace viam
A PoseTracker represents a physical pose or motion tracking device.
Definition pose_tracker.hpp:24
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling pose tracker.
Definition pose_tracker.hpp:54
pose_map get_poses(const std::vector< std::string > &body_names)
Get the poses of each body tracked by the pose tracker.
Definition pose_tracker.hpp:35
virtual std::string name() const
Return the resource's name.
gRPC client implementation of a PoseTracker component.
Definition pose_tracker_client.hpp:19
std::vector< GeometryConfig > get_geometries(const ProtoStruct &extra) override
Returns GeometryConfigs associated with the calling pose tracker.
ProtoStruct do_command(const ProtoStruct &command) override
Send/receive arbitrary commands to the resource.
PoseTracker::pose_map get_poses(const std::vector< std::string > &body_names, const ProtoStruct &extra) override
Get the poses of each body tracked by the pose tracker.
Defines a PoseTracker component.