$search

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

throttled_transport::Throttler::Throttler (  ) 

Definition at line 9 of file throttler.cpp.

throttled_transport::Throttler::~Throttler (  )  [inline]

Definition at line 12 of file throttler.h.


Member Function Documentation

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.


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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


throttled_transport
Author(s): Cedric Pradalier
autogenerated on Sat Mar 2 12:32:29 2013