Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes
play_motion::ControllerUpdater Class Reference

#include <controller_updater.h>

List of all members.

Public Types

typedef std::map< std::string,
JointNames
ControllerJoints
enum  ControllerState { RUNNING, STOPPED }
typedef std::map< std::string,
ControllerState
ControllerStates

Public Member Functions

 ControllerUpdater (ros::NodeHandle nh)
void registerUpdateCb (const Callback &cb)
virtual ~ControllerUpdater ()

Private Types

typedef boost::function< void(const
ControllerStates &states,
const ControllerJoints &joints)> 
Callback

Private Member Functions

void mainLoop ()

Private Attributes

ros::ServiceClient cm_client_
ControllerStates last_cstates_
boost::thread main_thread_
ros::NodeHandle nh_
Callback update_cb_
ros::Timer update_timer_

Detailed Description

Keeps track of controller statuses by polling the controller manager. The service call happens in a separate thread to not disrupt the main code.

Definition at line 55 of file controller_updater.h.


Member Typedef Documentation

typedef boost::function<void(const ControllerStates& states, const ControllerJoints& joints)> play_motion::ControllerUpdater::Callback [private]

Definition at line 69 of file controller_updater.h.

Definition at line 65 of file controller_updater.h.

Definition at line 64 of file controller_updater.h.


Member Enumeration Documentation

Enumerator:
RUNNING 
STOPPED 

Definition at line 58 of file controller_updater.h.


Constructor & Destructor Documentation

Definition at line 53 of file controller_updater.cpp.

Definition at line 59 of file controller_updater.cpp.


Member Function Documentation

Definition at line 74 of file controller_updater.cpp.

Definition at line 75 of file controller_updater.h.


Member Data Documentation

Definition at line 84 of file controller_updater.h.

Definition at line 85 of file controller_updater.h.

Definition at line 82 of file controller_updater.h.

Definition at line 80 of file controller_updater.h.

Definition at line 83 of file controller_updater.h.

Definition at line 81 of file controller_updater.h.


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


play_motion
Author(s): Paul Mathieu
autogenerated on Wed Aug 26 2015 15:29:25