#include <Accelerometer.h>
Public Member Functions | |
void | detectContact (double magnitude=1.6) |
Static Public Member Functions | |
static Accelerometer * | getInstance (int side=0) |
Private Member Functions | |
void | accelCallback (const pr2_msgs::AccelerometerState::ConstPtr &msg) |
Accelerometer (int side=0) | |
~Accelerometer () | |
Private Attributes | |
DetectContactAC * | acc_client_ |
int | side_ |
Static Private Attributes | |
static Accelerometer * | instance_ [] = {0,0} |
Definition at line 14 of file Accelerometer.h.
Accelerometer::Accelerometer | ( | int | side = 0 | ) | [private] |
Definition at line 4 of file Accelerometer.cpp.
Accelerometer::~Accelerometer | ( | ) | [private] |
Definition at line 13 of file Accelerometer.cpp.
void Accelerometer::accelCallback | ( | const pr2_msgs::AccelerometerState::ConstPtr & | msg | ) | [private] |
Definition at line 22 of file Accelerometer.cpp.
void Accelerometer::detectContact | ( | double | magnitude = 1.6 | ) |
Definition at line 34 of file Accelerometer.cpp.
Accelerometer * Accelerometer::getInstance | ( | int | side = 0 | ) | [static] |
Definition at line 27 of file Accelerometer.cpp.
DetectContactAC* Accelerometer::acc_client_ [private] |
Definition at line 17 of file Accelerometer.h.
Accelerometer * Accelerometer::instance_ = {0,0} [static, private] |
Definition at line 18 of file Accelerometer.h.
int Accelerometer::side_ [private] |
Definition at line 16 of file Accelerometer.h.