#include <sr_virtual_tactile_sensor.hpp>
|
void | callback (const sr_robot_msgs::joints_dataConstPtr &msg) |
|
shadowrobot::SrVirtualTactileSensor::SrVirtualTactileSensor |
( |
std::string |
name, |
|
|
std::string |
touch_name |
|
) |
| |
The Virtual Tactile sensors. For those sensor, we subscribe to the data coming from the hand and update the tactile sensor value based on this information. This should be extended to subscribe to a Gazebo touch sensor.
- Parameters
-
name | the display name of the sensor |
touch_name | the actual name of the touch sensor |
- Returns
Definition at line 38 of file sr_virtual_tactile_sensor.cpp.
shadowrobot::SrVirtualTactileSensor::~SrVirtualTactileSensor |
( |
| ) |
|
void shadowrobot::SrVirtualTactileSensor::callback |
( |
const sr_robot_msgs::joints_dataConstPtr & |
msg | ) |
|
|
private |
Callback function called when a msg is received on the shadowhand__data topic. Update the touch_value based on the joint positions of the joints contained in names_joints_linked.
- Parameters
-
msg | the message containing the joint positions |
Definition at line 71 of file sr_virtual_tactile_sensor.cpp.
double shadowrobot::SrVirtualTactileSensor::get_touch_data |
( |
| ) |
|
|
virtual |
std::vector<std::string> shadowrobot::SrVirtualTactileSensor::names_joints_linked |
|
private |
Subscribes to the shadowhand_data topic and updates the touch_value based on the joint positions
Definition at line 84 of file sr_virtual_tactile_sensor.hpp.
boost::mutex shadowrobot::SrVirtualTactileSensor::touch_mutex |
|
private |
double shadowrobot::SrVirtualTactileSensor::touch_value |
|
private |
The documentation for this class was generated from the following files: