Public Member Functions | Private Attributes
robot_controllers::ControllerLoader Class Reference

Class for loading and managing a single controller. More...

#include <controller_loader.h>

List of all members.

Public Member Functions

 ControllerLoader ()
 Initialize this loader.
ControllerPtr getController ()
 Returns the controller held by this loader.
bool init (const std::string &name, ControllerManager *manager)
 Load the controller.
bool isActive ()
 Returns true if the controller is active.
bool reset ()
 This calls through to controller.
bool start ()
 This calls through to controller, saves state locally.
bool stop (bool force)
 This calls through to controller, saves state locally.
void update (const ros::Time &time, const ros::Duration &dt)
 If controller is active, calls through to controller.

Private Attributes

bool active_
ControllerPtr controller_
pluginlib::ClassLoader
< robot_controllers::Controller
plugin_loader_

Detailed Description

Class for loading and managing a single controller.

Definition at line 46 of file controller_loader.h.


Constructor & Destructor Documentation

Initialize this loader.

Definition at line 36 of file controller_loader.cpp.


Member Function Documentation

Returns the controller held by this loader.

Definition at line 104 of file controller_loader.cpp.

bool robot_controllers::ControllerLoader::init ( const std::string &  name,
ControllerManager manager 
)

Load the controller.

Definition at line 42 of file controller_loader.cpp.

Returns true if the controller is active.

Definition at line 91 of file controller_loader.cpp.

This calls through to controller.

Definition at line 82 of file controller_loader.cpp.

This calls through to controller, saves state locally.

Definition at line 66 of file controller_loader.cpp.

This calls through to controller, saves state locally.

Definition at line 72 of file controller_loader.cpp.

void robot_controllers::ControllerLoader::update ( const ros::Time time,
const ros::Duration dt 
)

If controller is active, calls through to controller.

Definition at line 96 of file controller_loader.cpp.


Member Data Documentation

Definition at line 76 of file controller_loader.h.

Definition at line 75 of file controller_loader.h.

Definition at line 74 of file controller_loader.h.


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


robot_controllers_interface
Author(s): Michael Ferguson
autogenerated on Wed Jun 14 2017 04:09:05