Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
Pressure Class Reference

#include <Pressure.h>

List of all members.

Public Member Functions

void getCenter (double *r, double *l)
void getCurrent (double r[], double l[], bool zero=true)
void getFront (double &r, double &l, bool zero=true)
void getFrontTouched (double &r, double &l)
void getInside (double &r, double &l, bool zero=true)
void getInsideTouched (double &r, double &l)
void reset ()

Static Public Member Functions

static PressuregetInstance (int side=0)

Public Attributes

int side_

Private Member Functions

void calcCenter (double pressure[], double &xcenter, double &ycenter)
 Pressure (int side)
void pressureCallback (const pr2_msgs::PressureState::ConstPtr &msg)
 ~Pressure ()

Private Attributes

bool initialized
double l_center [2]
double l_curr [22]
double l_sum [22]
double l_zero [22]
ros::NodeHandle n_
boost::mutex pressure_mutex
double r_center [2]
double r_curr [22]
double r_sum [22]
double r_zero [22]
double slope [2][22]
ros::Subscriber sub_
int touched [2][22]
int val_prev [2][22]
int val_prev_prev [2][22]
long zero_cnt_

Static Private Attributes

static Pressureinstance_ [] = {0,0}

Detailed Description

Definition at line 41 of file Pressure.h.


Constructor & Destructor Documentation

Pressure::Pressure ( int  side) [private]

Definition at line 133 of file Pressure.cpp.

Pressure::~Pressure ( ) [private]

Definition at line 154 of file Pressure.cpp.


Member Function Documentation

void Pressure::calcCenter ( double  pressure[],
double &  xcenter,
double &  ycenter 
) [private]

Definition at line 34 of file Pressure.cpp.

void Pressure::getCenter ( double *  r,
double *  l 
)

Definition at line 191 of file Pressure.cpp.

void Pressure::getCurrent ( double  r[],
double  l[],
bool  zero = true 
)

Definition at line 201 of file Pressure.cpp.

void Pressure::getFront ( double &  r,
double &  l,
bool  zero = true 
)

Definition at line 250 of file Pressure.cpp.

void Pressure::getFrontTouched ( double &  r,
double &  l 
)

Definition at line 294 of file Pressure.cpp.

void Pressure::getInside ( double &  r,
double &  l,
bool  zero = true 
)

Definition at line 222 of file Pressure.cpp.

void Pressure::getInsideTouched ( double &  r,
double &  l 
)

Definition at line 277 of file Pressure.cpp.

Pressure * Pressure::getInstance ( int  side = 0) [static]

Definition at line 161 of file Pressure.cpp.

Definition at line 61 of file Pressure.cpp.

void Pressure::reset ( )

Definition at line 170 of file Pressure.cpp.


Member Data Documentation

Definition at line 74 of file Pressure.h.

Pressure * Pressure::instance_ = {0,0} [static, private]

Definition at line 72 of file Pressure.h.

double Pressure::l_center[2] [private]

Definition at line 50 of file Pressure.h.

double Pressure::l_curr[22] [private]

Definition at line 57 of file Pressure.h.

double Pressure::l_sum[22] [private]

Definition at line 52 of file Pressure.h.

double Pressure::l_zero[22] [private]

Definition at line 54 of file Pressure.h.

Definition at line 44 of file Pressure.h.

Definition at line 64 of file Pressure.h.

double Pressure::r_center[2] [private]

Definition at line 49 of file Pressure.h.

double Pressure::r_curr[22] [private]

Definition at line 56 of file Pressure.h.

double Pressure::r_sum[22] [private]

Definition at line 51 of file Pressure.h.

double Pressure::r_zero[22] [private]

Definition at line 53 of file Pressure.h.

Definition at line 96 of file Pressure.h.

double Pressure::slope[2][22] [private]

Definition at line 60 of file Pressure.h.

Definition at line 43 of file Pressure.h.

int Pressure::touched[2][22] [private]

Definition at line 59 of file Pressure.h.

int Pressure::val_prev[2][22] [private]

Definition at line 59 of file Pressure.h.

int Pressure::val_prev_prev[2][22] [private]

Definition at line 59 of file Pressure.h.

long Pressure::zero_cnt_ [private]

Definition at line 46 of file Pressure.h.


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


ias_drawer_executive
Author(s): Thomas Ruehr
autogenerated on Mon Oct 6 2014 08:59:25