6#include <grpcpp/channel.h>
8#include <viam/api/component/movementsensor/v1/movementsensor.grpc.pb.h>
10#include <viam/sdk/common/linear_algebra.hpp>
13#include <viam/sdk/config/resource.hpp>
27 Vector3 get_linear_velocity(
const ProtoStruct& extra)
override;
28 Vector3 get_angular_velocity(
const ProtoStruct& extra)
override;
29 compassheading get_compass_heading(
const ProtoStruct& extra)
override;
30 orientation get_orientation(
const ProtoStruct& extra)
override;
31 position get_position(
const ProtoStruct& extra)
override;
32 properties get_properties(
const ProtoStruct& extra)
override;
33 std::unordered_map<std::string, float> get_accuracy(
const ProtoStruct& extra)
override;
34 Vector3 get_linear_acceleration(
const ProtoStruct& extra)
override;
35 ProtoStruct
do_command(
const ProtoStruct& command)
override;
36 std::vector<GeometryConfig>
get_geometries(
const ProtoStruct& extra)
override;
38 using MovementSensor::get_accuracy;
39 using MovementSensor::get_angular_velocity;
40 using MovementSensor::get_compass_heading;
42 using MovementSensor::get_linear_acceleration;
43 using MovementSensor::get_linear_velocity;
44 using MovementSensor::get_orientation;
45 using MovementSensor::get_position;
46 using MovementSensor::get_properties;
49 using StubType = viam::component::movementsensor::v1::MovementSensorService::StubInterface;
50 std::unique_ptr<StubType> stub_;
51 std::shared_ptr<grpc::Channel> channel_;
Definition movement_sensor.hpp:24
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling movementsensor.
Definition movement_sensor.hpp:111
virtual std::string name() const
Return the resource's name.
Definition linear_algebra.hpp:15
gRPC client implementation of a MovementSensor component.
Definition movement_sensor_client.hpp:23
ProtoStruct do_command(const ProtoStruct &command) override
Send/receive arbitrary commands to the resource.
std::vector< GeometryConfig > get_geometries(const ProtoStruct &extra) override
Returns GeometryConfigs associated with the calling movementsensor.
gRPC client implementation for a robot.
Defines a MovementSensor component.
Implements a gRPC server for the MovementSensor component.
Definition movement_sensor.hpp:27
Struct version of viam::common::v1::Orientation.
Definition movement_sensor.hpp:34
Definition movement_sensor.hpp:39
Definition movement_sensor.hpp:45