#include <throttler.h>
Public Member Functions | |
bool | can_publish (size_t datasize) |
Throttler () | |
~Throttler () | |
Protected Types | |
enum | { THROTTLE_BY_FREQUENCY, THROTTLE_BY_BANDWIDTH } |
Protected Member Functions | |
bool | initialize () |
bool | set_throttling_parameters (SetThrottlingParameters::Request &req, SetThrottlingParameters::Response &res) |
Protected Attributes | |
bool | initialized |
ros::Time | last_publish_ |
double | max_bw_ |
bool | max_bytes_reached_ |
double | max_freq_ |
unsigned int | message_count_ |
enum throttled_transport::Throttler:: { ... } | throttle_mode_ |
ros::ServiceServer | throttling_server |
unsigned int | used_bytes_ |
Definition at line 9 of file throttler.h.
anonymous enum [protected] |
Definition at line 28 of file throttler.h.
Definition at line 9 of file throttler.cpp.
throttled_transport::Throttler::~Throttler | ( | ) | [inline] |
Definition at line 12 of file throttler.h.
bool throttled_transport::Throttler::can_publish | ( | size_t | datasize | ) |
Returns true if we can now publish a message of size datasize The decision on when to publish will be based on configuration parameters, exposed through rosparam
Definition at line 74 of file throttler.cpp.
bool throttled_transport::Throttler::initialize | ( | ) | [protected] |
Definition at line 19 of file throttler.cpp.
bool throttled_transport::Throttler::set_throttling_parameters | ( | SetThrottlingParameters::Request & | req, |
SetThrottlingParameters::Response & | res | ||
) | [protected] |
Definition at line 48 of file throttler.cpp.
bool throttled_transport::Throttler::initialized [protected] |
Definition at line 20 of file throttler.h.
Definition at line 33 of file throttler.h.
double throttled_transport::Throttler::max_bw_ [protected] |
Definition at line 39 of file throttler.h.
bool throttled_transport::Throttler::max_bytes_reached_ [protected] |
Definition at line 40 of file throttler.h.
double throttled_transport::Throttler::max_freq_ [protected] |
Definition at line 36 of file throttler.h.
unsigned int throttled_transport::Throttler::message_count_ [protected] |
Definition at line 35 of file throttler.h.
enum { ... } throttled_transport::Throttler::throttle_mode_ [protected] |
Definition at line 23 of file throttler.h.
unsigned int throttled_transport::Throttler::used_bytes_ [protected] |
Definition at line 38 of file throttler.h.