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 AttributeMap& extra) override;
27
28 AttributeMap do_command(const AttributeMap& command) override;
29
30 std::vector<GeometryConfig> get_geometries(const AttributeMap& 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:27
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling pose tracker.
Definition pose_tracker.hpp:57
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:38
virtual std::string name() const
Return the resource's name.
gRPC client implementation of a PoseTracker component.
Definition pose_tracker_client.hpp:19
PoseTracker::pose_map get_poses(const std::vector< std::string > &body_names, const AttributeMap &extra) override
Get the poses of each body tracked by the pose tracker.
AttributeMap do_command(const AttributeMap &command) override
Send/receive arbitrary commands to the resource.
std::vector< GeometryConfig > get_geometries(const AttributeMap &extra) override
Returns GeometryConfigs associated with the calling pose tracker.
Defines a PoseTracker component.