Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
shadowrobot::SrGazeboVirtualTactileSensor Class Reference

#include <sr_gazebo_virtual_tactile_sensor.hpp>

Inheritance diagram for shadowrobot::SrGazeboVirtualTactileSensor:
Inheritance graph

List of all members.

Public Member Functions

 SrGazeboVirtualTactileSensor (std::string name, std::string gazebo_topic)
virtual ~SrGazeboVirtualTactileSensor ()

Protected Member Functions

virtual double get_touch_data ()

Private Member Functions

void callback (const gazebo_msgs::ContactsState &msg)

Private Attributes

ros::NodeHandle nh
ros::Subscriber sub
bool touch_freshdata
boost::mutex touch_mutex
double touch_value

Detailed Description

Definition at line 42 of file sr_gazebo_virtual_tactile_sensor.hpp.

Constructor & Destructor Documentation

Definition at line 38 of file sr_gazebo_virtual_tactile_sensor.cpp.

Definition at line 47 of file sr_gazebo_virtual_tactile_sensor.cpp.

Member Function Documentation

void shadowrobot::SrGazeboVirtualTactileSensor::callback ( const gazebo_msgs::ContactsState &  msg) [private]

Callback function called when a msg is received on the gazebo bumper topic.

msgthe message containing the contact data

Definition at line 50 of file sr_gazebo_virtual_tactile_sensor.cpp.

Generates a value for the sensor

the pressure value

Implements shadowrobot::SrGenericTactileSensor.

Definition at line 83 of file sr_gazebo_virtual_tactile_sensor.cpp.

Member Data Documentation

Definition at line 57 of file sr_gazebo_virtual_tactile_sensor.hpp.

Definition at line 62 of file sr_gazebo_virtual_tactile_sensor.hpp.

Definition at line 60 of file sr_gazebo_virtual_tactile_sensor.hpp.

Definition at line 58 of file sr_gazebo_virtual_tactile_sensor.hpp.

Definition at line 59 of file sr_gazebo_virtual_tactile_sensor.hpp.

The documentation for this class was generated from the following files:

Author(s): Ugo Cupcic
autogenerated on Fri Aug 21 2015 12:27:01