Public Member Functions | Private Attributes | List of all members
Sensor Class Reference

Public Member Functions

int getId () const
 
 operator sensor_msgs::Range () const
 
void publish ()
 
 Sensor (const std::string &fr_id, const int id, const int filter_size=10)
 
void update (const int v)
 

Private Attributes

int filter_size_
 
std::string frame_id_
 
int id_
 
ros::NodeHandle n_
 
ros::Publisher pub_range_
 
std::list< int > vals_
 

Detailed Description

Definition at line 29 of file phidgets_range_sensors.cpp.

Constructor & Destructor Documentation

Sensor::Sensor ( const std::string &  fr_id,
const int  id,
const int  filter_size = 10 
)
inline

Definition at line 38 of file phidgets_range_sensors.cpp.

Member Function Documentation

int Sensor::getId ( ) const
inline

Definition at line 71 of file phidgets_range_sensors.cpp.

Sensor::operator sensor_msgs::Range ( ) const
inline

Definition at line 49 of file phidgets_range_sensors.cpp.

void Sensor::publish ( )
inline

Definition at line 44 of file phidgets_range_sensors.cpp.

void Sensor::update ( const int  v)
inline

Definition at line 76 of file phidgets_range_sensors.cpp.

Member Data Documentation

int Sensor::filter_size_
private

Definition at line 33 of file phidgets_range_sensors.cpp.

std::string Sensor::frame_id_
private

Definition at line 35 of file phidgets_range_sensors.cpp.

int Sensor::id_
private

Definition at line 33 of file phidgets_range_sensors.cpp.

ros::NodeHandle Sensor::n_
private

Definition at line 31 of file phidgets_range_sensors.cpp.

ros::Publisher Sensor::pub_range_
private

Definition at line 32 of file phidgets_range_sensors.cpp.

std::list<int> Sensor::vals_
private

Definition at line 34 of file phidgets_range_sensors.cpp.


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


cob_phidgets
Author(s): Florian Weisshardt
autogenerated on Wed Apr 7 2021 02:11:43