A PoseTracker
represents a physical pose or motion tracking device.
More...
#include "components/pose_tracker.hpp"
|
API | api () const override |
| Returns the API associated with a particular resource.
|
|
pose_map | get_poses (const std::vector< std::string > &body_names) |
| Get the poses of each body tracked by the pose tracker.
|
|
virtual pose_map | get_poses (const std::vector< std::string > &body_names, const ProtoStruct &extra)=0 |
| Get the poses of each body tracked by the pose tracker.
|
|
virtual ProtoStruct | do_command (const ProtoStruct &command)=0 |
| Send/receive arbitrary commands to the resource.
|
|
std::vector< GeometryConfig > | get_geometries () |
| Returns GeometryConfig s associated with the calling pose tracker.
|
|
virtual std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra)=0 |
| Returns GeometryConfig s associated with the calling pose tracker.
|
|
Name | get_resource_name () const override |
| Returns the Name for a particular resource.
|
|
| Resource (std::string name) |
|
virtual std::string | name () const |
| Return the resource's name.
|
|
|
| Component () |
|
| Component (std::string name) |
|
| Component (std::string name) |
|
Name | get_resource_name (const std::string &type) const |
|
A PoseTracker
represents a physical pose or motion tracking device.
This acts as an abstract base class for any drivers representing specific pose tracker implementations
◆ api()
API viam::sdk::PoseTracker::api |
( |
| ) |
const |
|
overridevirtual |
◆ do_command()
virtual ProtoStruct viam::sdk::PoseTracker::do_command |
( |
const ProtoStruct & | command | ) |
|
|
pure virtual |
Send/receive arbitrary commands to the resource.
- Parameters
-
Command | the command to execute. |
- Returns
- The result of the executed command.
Implemented in viam::sdk::impl::PoseTrackerClient.
◆ get_geometries()
virtual std::vector< GeometryConfig > viam::sdk::PoseTracker::get_geometries |
( |
const ProtoStruct & | extra | ) |
|
|
pure virtual |
◆ get_poses() [1/2]
pose_map viam::sdk::PoseTracker::get_poses |
( |
const std::vector< std::string > & | body_names | ) |
|
|
inline |
Get the poses of each body tracked by the pose tracker.
- Parameters
-
tracker_name | The name of the pose tracker. |
body_names | Names of bodies whose poses are being requested. If the vector is empty then all available poses are returned. |
- Returns
- A mapping of each body to its pose.
◆ get_poses() [2/2]
virtual pose_map viam::sdk::PoseTracker::get_poses |
( |
const std::vector< std::string > & | body_names, |
|
|
const ProtoStruct & | extra ) |
|
pure virtual |
Get the poses of each body tracked by the pose tracker.
- Parameters
-
tracker_name | The name of the pose tracker. |
body_names | Names of bodies whose poses are being requested. If the vector is empty then all available poses are returned. |
extra | Any additional arguments to the method. |
- Returns
- A mapping of each body to its pose.
Implemented in viam::sdk::impl::PoseTrackerClient, and viam::sdk::impl::PoseTrackerClient.
The documentation for this class was generated from the following file: