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_ |
Definition at line 13 of file phidgets_range_sensors.cpp.
Sensor::Sensor | ( | const std::string & | fr_id, |
const int | id, | ||
const int | filter_size = 10 |
||
) | [inline] |
Definition at line 22 of file phidgets_range_sensors.cpp.
int Sensor::getId | ( | ) | const [inline] |
Definition at line 54 of file phidgets_range_sensors.cpp.
Sensor::operator sensor_msgs::Range | ( | ) | const [inline] |
Definition at line 33 of file phidgets_range_sensors.cpp.
void Sensor::publish | ( | ) | [inline] |
Definition at line 28 of file phidgets_range_sensors.cpp.
void Sensor::update | ( | const int | v | ) | [inline] |
Definition at line 56 of file phidgets_range_sensors.cpp.
int Sensor::filter_size_ [private] |
Definition at line 17 of file phidgets_range_sensors.cpp.
std::string Sensor::frame_id_ [private] |
Definition at line 19 of file phidgets_range_sensors.cpp.
int Sensor::id_ [private] |
Definition at line 17 of file phidgets_range_sensors.cpp.
ros::NodeHandle Sensor::n_ [private] |
Definition at line 15 of file phidgets_range_sensors.cpp.
ros::Publisher Sensor::pub_range_ [private] |
Definition at line 16 of file phidgets_range_sensors.cpp.
std::list<int> Sensor::vals_ [private] |
Definition at line 18 of file phidgets_range_sensors.cpp.