|
sas
Modularised monitoring, logging, and control of robots.
|
Client for robot kinematics. More...
#include <sas_robot_kinematics_client.hpp>
Public Member Functions | |
| RobotKinematicsClient (const RobotKinematicsClient &)=delete | |
| RobotKinematicsClient (const std::shared_ptr< Node > &node, const std::string &topic_prefix) | |
| Construct a RobotKinematicsClient. | |
| bool | is_enabled () const |
| Check whether the client is enabled (subscribers/publishers active). | |
| DQ | get_pose () const |
| Get the last received robot pose. | |
| DQ | get_reference_frame () const |
| Get the last received reference frame pose. | |
| void | send_desired_pose (const DQ &desired_pose) const |
| Publish a desired pose for the robot. | |
| void | send_desired_interpolator_speed (const double &interpolator_speed) const |
| Publish a desired interpolator speed value. | |
Client for robot kinematics.
Subscribes to the robot's current pose and reference frame, and provides methods to publish desired poses and desired interpolator speeds. The client tracks the most recently received pose and reference frame and exposes simple accessors to retrieve them.
| sas::RobotKinematicsClient::RobotKinematicsClient | ( | const std::shared_ptr< Node > & | node, |
| const std::string & | topic_prefix ) |
Construct a RobotKinematicsClient.
| node | Shared pointer to the ROS2 node used for creating publishers/subscribers. |
| topic_prefix | Topic name prefix used for subscriptions and publications. |
| DQ sas::RobotKinematicsClient::get_pose | ( | ) | const |
Get the last received robot pose.
| DQ sas::RobotKinematicsClient::get_reference_frame | ( | ) | const |
Get the last received reference frame pose.
| bool sas::RobotKinematicsClient::is_enabled | ( | ) | const |
Check whether the client is enabled (subscribers/publishers active).
| void sas::RobotKinematicsClient::send_desired_interpolator_speed | ( | const double & | interpolator_speed | ) | const |
Publish a desired interpolator speed value.
| interpolator_speed | Desired interpolator speed (units depend on the consumer of this topic). |
| void sas::RobotKinematicsClient::send_desired_pose | ( | const DQ & | desired_pose | ) | const |
Publish a desired pose for the robot.
| desired_pose | Desired pose to publish (as DQ). |