|
sas
Modularised monitoring, logging, and control of robots.
|
Client for force/torque sensor readings. More...
#include <sas_force_sensor_client.hpp>
Public Member Functions | |
| ForceSensorClient (const ForceSensorClient &)=delete | |
| ForceSensorClient (const std::shared_ptr< Node > &node, const std::string &topic_prefix="GET_FROM_NODE") | |
| Construct a new ForceSensorClient. | |
| bool | is_enabled () const |
| Check whether the client has received at least one force/torque reading. | |
| DQ | get_force () const |
| Get the last received force reading. | |
| DQ | get_torque () const |
| Get the last received torque reading. | |
| std::string | get_topic_prefix () const |
| Get the configured topic prefix. | |
Client for force/torque sensor readings.
ForceSensorClient subscribes to the geometry_msgs/msg/WrenchStamped topic published by a sas::ForceSensorServer and exposes the latest force and torque readings as dqrobotics DQ (pure quaternion) objects.
| sas::ForceSensorClient::ForceSensorClient | ( | const std::shared_ptr< Node > & | node, |
| const std::string & | topic_prefix = "GET_FROM_NODE" ) |
Construct a new ForceSensorClient.
| node | Shared pointer to the rclcpp::Node used for communication. |
| topic_prefix | Prefix used to compose the ROS topic name (defaults to "GET_FROM_NODE", in which case the node name is used). |
| DQ sas::ForceSensorClient::get_force | ( | ) | const |
Get the last received force reading.
| std::runtime_error | if the client is not enabled yet. |
| std::string sas::ForceSensorClient::get_topic_prefix | ( | ) | const |
Get the configured topic prefix.
| DQ sas::ForceSensorClient::get_torque | ( | ) | const |
Get the last received torque reading.
| std::runtime_error | if the client is not enabled yet. |
| bool sas::ForceSensorClient::is_enabled | ( | ) | const |
Check whether the client has received at least one force/torque reading.