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
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

virtual double get_touch_data ()

Private Member Functions

void callback (const gazebo_plugins::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

shadowrobot::SrGazeboVirtualTactileSensor::SrGazeboVirtualTactileSensor ( std::string  name,
std::string  gazebo_topic 
)

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

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

Parameters:
msgthe message containing the contact data

Definition at line 50 of file sr_gazebo_virtual_tactile_sensor.cpp.

Generates a value for the sensor

Returns:
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:


sr_tactile_sensors
Author(s): Ugo Cupcic
autogenerated on Fri Jan 3 2014 12:09:36