Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
throttled_transport::Throttler Class Reference

#include <throttler.h>

List of all members.

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_

Detailed Description

Definition at line 9 of file throttler.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
THROTTLE_BY_FREQUENCY 
THROTTLE_BY_BANDWIDTH 

Definition at line 28 of file throttler.h.


Constructor & Destructor Documentation

Definition at line 9 of file throttler.cpp.

Definition at line 12 of file throttler.h.


Member Function Documentation

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.

Definition at line 19 of file throttler.cpp.

Definition at line 48 of file throttler.cpp.


Member Data Documentation

Definition at line 20 of file throttler.h.

Definition at line 33 of file throttler.h.

Definition at line 39 of file throttler.h.

Definition at line 40 of file throttler.h.

Definition at line 36 of file throttler.h.

Definition at line 35 of file throttler.h.

Definition at line 23 of file throttler.h.

Definition at line 38 of file throttler.h.


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


throttled_transport
Author(s): Cedric Pradalier
autogenerated on Sat Dec 28 2013 16:57:08