Public Member Functions | Private Attributes | List of all members
shadowrobot::SrRealTactileSensor Class Reference

#include <sr_real_tactile_sensor.hpp>

Inheritance diagram for shadowrobot::SrRealTactileSensor:
Inheritance graph
[legend]

Public Member Functions

virtual double get_touch_data ()
 
 SrRealTactileSensor (std::string name, std::string touch_name)
 
virtual ~SrRealTactileSensor ()
 
- Public Member Functions inherited from shadowrobot::SrGenericTactileSensor
void publish_current_values ()
 
 SrGenericTactileSensor (std::string name, std::string touch_name)
 
virtual ~SrGenericTactileSensor ()
 

Private Attributes

int res_touch
 
struct sensor sensor_touch
 

Detailed Description

Definition at line 45 of file sr_real_tactile_sensor.hpp.

Constructor & Destructor Documentation

shadowrobot::SrRealTactileSensor::SrRealTactileSensor ( std::string  name,
std::string  touch_name 
)

Definition at line 38 of file sr_real_tactile_sensor.cpp.

shadowrobot::SrRealTactileSensor::~SrRealTactileSensor ( )
virtual

Definition at line 57 of file sr_real_tactile_sensor.cpp.

Member Function Documentation

double shadowrobot::SrRealTactileSensor::get_touch_data ( )
virtual

Reads the value from the sensor

Returns
the pressure value ; -1000 if sensor not found

Implements shadowrobot::SrGenericTactileSensor.

Definition at line 61 of file sr_real_tactile_sensor.cpp.

Member Data Documentation

int shadowrobot::SrRealTactileSensor::res_touch
private

Definition at line 62 of file sr_real_tactile_sensor.hpp.

struct sensor shadowrobot::SrRealTactileSensor::sensor_touch
private

Definition at line 61 of file sr_real_tactile_sensor.hpp.


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


sr_tactile_sensors
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 03:55:46