Class for loading and managing a single controller. More...
#include <controller_loader.h>
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_ |
Class for loading and managing a single controller.
Definition at line 46 of file controller_loader.h.
Initialize this loader.
Definition at line 36 of file controller_loader.cpp.
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.
bool robot_controllers::ControllerLoader::stop | ( | bool | force | ) |
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.
bool robot_controllers::ControllerLoader::active_ [private] |
Definition at line 76 of file controller_loader.h.
Definition at line 75 of file controller_loader.h.
pluginlib::ClassLoader<robot_controllers::Controller> robot_controllers::ControllerLoader::plugin_loader_ [private] |
Definition at line 74 of file controller_loader.h.