#include <controller.h>

Public Types | |
| enum | { BEFORE_ME, AFTER_ME } |
| enum | { CONSTRUCTED, INITIALIZED, RUNNING } |
Public Types inherited from controller_interface::ControllerBase | |
| typedef std::vector< hardware_interface::InterfaceResources > | ClaimedResources |
| enum | ControllerState { ControllerState::CONSTRUCTED, ControllerState::INITIALIZED, ControllerState::RUNNING, ControllerState::STOPPED, ControllerState::WAITING, ControllerState::ABORTED } |
Public Member Functions | |
| Controller () | |
| template<class ControllerType > | |
| bool | getController (const std::string &name, int sched, ControllerType *&c) |
| Method to get access to another controller by name and type. More... | |
| virtual bool | init (pr2_mechanism_model::RobotState *robot, ros::NodeHandle &n)=0 |
| The init function is called to initialize the controller from a non-realtime thread. More... | |
| bool | initRequest (ControllerProvider *cp, pr2_mechanism_model::RobotState *robot, ros::NodeHandle &n) |
| bool | isRunning () |
| Check if the controller is running. More... | |
| virtual void | starting () |
| The starting method is called just before the first update from within the realtime thread. More... | |
| void | starting (const ros::Time &time) |
| bool | startRequest () |
| virtual void | stopping () |
| The stopping method is called by the realtime thread just after the last update call. More... | |
| void | stopping (const ros::Time &time) |
| bool | stopRequest () |
| void | update (const ros::Time &time, const ros::Duration &period) |
| virtual void | update (void)=0 |
| The update method is called periodically by the realtime thread when the controller is running. More... | |
| void | updateRequest () |
| virtual | ~Controller () |
Public Member Functions inherited from controller_interface::Controller< pr2_mechanism_model::RobotState > | |
| virtual bool | init (T *, ros::NodeHandle &) |
| virtual bool | init (T *, ros::NodeHandle &, ros::NodeHandle &) |
Public Member Functions inherited from controller_interface::ControllerBase | |
| virtual void | aborting (const ros::Time &) |
| virtual void | aborting (const ros::Time &) |
| bool | abortRequest (const ros::Time &time) |
| bool | abortRequest (const ros::Time &time) |
| ControllerBase ()=default | |
| ControllerBase (const ControllerBase &)=delete | |
| ControllerBase (ControllerBase &&)=delete | |
| bool | isAborted () const |
| bool | isAborted () const |
| bool | isInitialized () const |
| bool | isInitialized () const |
| bool | isRunning () const |
| bool | isRunning () const |
| bool | isStopped () const |
| bool | isStopped () const |
| bool | isWaiting () const |
| bool | isWaiting () const |
| ControllerBase & | operator= (const ControllerBase &)=delete |
| ControllerBase & | operator= (ControllerBase &&)=delete |
| bool | startRequest (const ros::Time &time) |
| bool | startRequest (const ros::Time &time) |
| bool | stopRequest (const ros::Time &time) |
| bool | stopRequest (const ros::Time &time) |
| void | updateRequest (const ros::Time &time, const ros::Duration &period) |
| void | updateRequest (const ros::Time &time, const ros::Duration &period) |
| virtual void | waiting (const ros::Time &) |
| virtual void | waiting (const ros::Time &) |
| bool | waitRequest (const ros::Time &time) |
| bool | waitRequest (const ros::Time &time) |
| virtual | ~ControllerBase ()=default |
Public Attributes | |
| std::vector< std::string > | after_list_ |
| std::vector< std::string > | before_list_ |
| enum pr2_controller_interface::Controller:: { ... } | state_ |
Public Attributes inherited from controller_interface::ControllerBase | |
| ControllerState | state_ |
Private Member Functions | |
| Controller (const Controller &c) | |
| Controller & | operator= (const Controller &c) |
Private Attributes | |
| ControllerProvider * | contr_prov_ |
Additional Inherited Members | |
Protected Member Functions inherited from controller_interface::Controller< pr2_mechanism_model::RobotState > | |
| std::string | getHardwareInterfaceType () const |
| bool | initRequest (hardware_interface::RobotHW *robot_hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh, ClaimedResources &claimed_resources) override |
Definition at line 53 of file controller.h.
| anonymous enum |
| Enumerator | |
|---|---|
| BEFORE_ME | |
| AFTER_ME | |
Definition at line 56 of file controller.h.
| anonymous enum |
| Enumerator | |
|---|---|
| CONSTRUCTED | |
| INITIALIZED | |
| RUNNING | |
Definition at line 166 of file controller.h.
|
inline |
Definition at line 58 of file controller.h.
|
inlinevirtual |
Definition at line 59 of file controller.h.
|
private |
|
inline |
Method to get access to another controller by name and type.
Definition at line 90 of file controller.h.
|
pure virtual |
The init function is called to initialize the controller from a non-realtime thread.
| robot | A RobotState object which can be used to read joint states and write out effort commands. |
| n | A NodeHandle in the namespace from which the controller should read its configuration, and where it should set up its ROS interface. |
|
inline |
Definition at line 146 of file controller.h.
|
inline |
Check if the controller is running.
Definition at line 110 of file controller.h.
|
private |
|
inlinevirtual |
The starting method is called just before the first update from within the realtime thread.
Definition at line 66 of file controller.h.
|
inlinevirtual |
Reimplemented from controller_interface::ControllerBase.
Definition at line 61 of file controller.h.
|
inline |
Definition at line 121 of file controller.h.
|
inlinevirtual |
The stopping method is called by the realtime thread just after the last update call.
Definition at line 72 of file controller.h.
|
inlinevirtual |
Reimplemented from controller_interface::ControllerBase.
Definition at line 63 of file controller.h.
|
inline |
Definition at line 134 of file controller.h.
|
inlinevirtual |
Implements controller_interface::ControllerBase.
Definition at line 62 of file controller.h.
|
pure virtual |
The update method is called periodically by the realtime thread when the controller is running.
|
inline |
Definition at line 115 of file controller.h.
| std::vector<std::string> pr2_controller_interface::Controller::after_list_ |
Definition at line 164 of file controller.h.
| std::vector<std::string> pr2_controller_interface::Controller::before_list_ |
Definition at line 164 of file controller.h.
|
private |
Definition at line 171 of file controller.h.
| enum { ... } pr2_controller_interface::Controller::state_ |