Public Member Functions | Private Member Functions | Private Attributes
VoltDistr Class Reference

Node for recording and visualizing voltage distributions. More...

#include <volt_distr.h>

List of all members.

Public Member Functions

 VoltDistr ()
 ~VoltDistr ()

Private Member Functions

void callback (const neuro_recv::dish_state::ConstPtr &d)
 Callback for dish state messages.
void getParams ()
 Gets server parameters.
void init ()
 Initializes the node.

Private Attributes

VoltDistrCreator data_
ros::Subscriber dish_sub_
bool do_img_
bool do_log_
bool do_truncate_
std::string img_path_
std::string log_path_
ros::NodeHandle n_
VoltDistrVizviz_

Detailed Description

Node for recording and visualizing voltage distributions.

This node receives dish states from a receiver node and then maintains a voltage histogram for each channel. It then will save this data as a CSV file and/or an image.

Author:
Jonathan Hasenzahl

Definition at line 27 of file volt_distr.h.


Constructor & Destructor Documentation

VoltDistr::VoltDistr ( ) [inline]

Definition at line 30 of file volt_distr.h.

VoltDistr::~VoltDistr ( ) [inline]

Definition at line 31 of file volt_distr.h.


Member Function Documentation

void VoltDistr::callback ( const neuro_recv::dish_state::ConstPtr &  d) [private]

Callback for dish state messages.

This method is called automatically when the node receives a dish state message. If the dish state is marked as the "last dish", the data collected thus far is written to a CSV file and/or PNG image. Otherwise, the dish state is added to the creator object.

Parameters:
dthe received message

Definition at line 69 of file volt_distr.cpp.

void VoltDistr::getParams ( ) [private]

Gets server parameters.

Definition at line 35 of file volt_distr.cpp.

void VoltDistr::init ( ) [private]

Initializes the node.

Gets server parameters, initializes the subscriber, and runs the spin loop.

Definition at line 14 of file volt_distr.cpp.


Member Data Documentation

Definition at line 41 of file volt_distr.h.

ros::Subscriber VoltDistr::dish_sub_ [private]

Definition at line 39 of file volt_distr.h.

bool VoltDistr::do_img_ [private]

Definition at line 48 of file volt_distr.h.

bool VoltDistr::do_log_ [private]

Definition at line 47 of file volt_distr.h.

bool VoltDistr::do_truncate_ [private]

Definition at line 49 of file volt_distr.h.

std::string VoltDistr::img_path_ [private]

Definition at line 45 of file volt_distr.h.

std::string VoltDistr::log_path_ [private]

Definition at line 44 of file volt_distr.h.

ros::NodeHandle VoltDistr::n_ [private]

Definition at line 38 of file volt_distr.h.

Definition at line 42 of file volt_distr.h.


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


volt_distr
Author(s): Jonathan Hasenzahl
autogenerated on Sun Jan 5 2014 11:12:31