|
sas
Modularised monitoring, logging, and control of robots.
|
Server for robot kinematics topics. More...
#include <sas_robot_kinematics_server.hpp>
Public Member Functions | |
| RobotKinematicsServer (const RobotKinematicsServer &)=delete | |
| RobotKinematicsServer (const std::shared_ptr< Node > &node, const std::string &topic_prefix) | |
| Construct a RobotKinematicsServer. | |
| DQ | get_desired_pose () const |
| Get the most recently received desired pose. | |
| double | get_desired_interpolator_speed () const |
| Get the most recently received desired interpolator speed. | |
| bool | is_enabled () const |
| Check whether the server is enabled (publishers/subscribers active). | |
| void | send_pose (const DQ &pose) const |
| Publish the current robot pose. | |
| void | send_reference_frame (const DQ &reference_frame) const |
| Publish the robot's reference frame pose. | |
Protected Member Functions | |
| void | _callback_desired_pose (const geometry_msgs::msg::PoseStamped &msg) |
| void | _callback_desired_interpolator_speed (const sas_msgs::msg::Float64 &msg) |
Server for robot kinematics topics.
Publishes the robot's current pose and reference frame, and subscribes to desired poses and desired interpolator speeds. The server stores the most recently received desired values and exposes accessors for them.
| sas::RobotKinematicsServer::RobotKinematicsServer | ( | const std::shared_ptr< Node > & | node, |
| const std::string & | topic_prefix ) |
Construct a RobotKinematicsServer.
| node | Shared pointer to the ROS2 node used for creating publishers/subscribers. |
| topic_prefix | Topic name prefix used for subscriptions and publications. |
| double sas::RobotKinematicsServer::get_desired_interpolator_speed | ( | ) | const |
Get the most recently received desired interpolator speed.
| DQ sas::RobotKinematicsServer::get_desired_pose | ( | ) | const |
Get the most recently received desired pose.
| bool sas::RobotKinematicsServer::is_enabled | ( | ) | const |
Check whether the server is enabled (publishers/subscribers active).
| void sas::RobotKinematicsServer::send_pose | ( | const DQ & | pose | ) | const |
Publish the current robot pose.
| pose | Pose to publish (as DQ). |
| void sas::RobotKinematicsServer::send_reference_frame | ( | const DQ & | reference_frame | ) | const |
Publish the robot's reference frame pose.
| reference_frame | Reference frame to publish (as DQ). |