#include <joint_effort_controller.h>
Public Member Functions | |
bool | init (pr2_mechanism_model::RobotState *robot, const std::string &joint_name) |
virtual bool | init (pr2_mechanism_model::RobotState *robot, ros::NodeHandle &n) |
JointEffortController () | |
virtual void | starting () |
virtual void | update () |
~JointEffortController () | |
Public Member Functions inherited from pr2_controller_interface::Controller | |
Controller () | |
bool | getController (const std::string &name, int sched, ControllerType *&c) |
bool | initRequest (ControllerProvider *cp, pr2_mechanism_model::RobotState *robot, ros::NodeHandle &n) |
bool | isRunning () |
void | starting (const ros::Time &time) |
bool | startRequest () |
void | stopping (const ros::Time &time) |
virtual void | stopping () |
bool | stopRequest () |
void | update (const ros::Time &time, const ros::Duration &period) |
void | updateRequest () |
virtual | ~Controller () |
Public Attributes | |
double | command_ |
pr2_mechanism_model::JointState * | joint_state_ |
Public Attributes inherited from pr2_controller_interface::Controller | |
std::vector< std::string > | after_list_ |
AFTER_ME | |
std::vector< std::string > | before_list_ |
BEFORE_ME | |
CONSTRUCTED | |
INITIALIZED | |
RUNNING | |
enum pr2_controller_interface::Controller:: { ... } | state_ |
Private Member Functions | |
void | commandCB (const std_msgs::Float64ConstPtr &msg) |
Private Attributes | |
ros::NodeHandle | node_ |
pr2_mechanism_model::RobotState * | robot_ |
ros::Subscriber | sub_command_ |
Definition at line 64 of file joint_effort_controller.h.
controller::JointEffortController::JointEffortController | ( | ) |
Definition at line 42 of file joint_effort_controller.cpp.
controller::JointEffortController::~JointEffortController | ( | ) |
Definition at line 47 of file joint_effort_controller.cpp.
|
private |
Definition at line 103 of file joint_effort_controller.cpp.
bool controller::JointEffortController::init | ( | pr2_mechanism_model::RobotState * | robot, |
const std::string & | joint_name | ||
) |
Definition at line 52 of file joint_effort_controller.cpp.
|
virtual |
Implements pr2_controller_interface::Controller.
Definition at line 72 of file joint_effort_controller.cpp.
|
inlinevirtual |
Reimplemented from pr2_controller_interface::Controller.
Definition at line 74 of file joint_effort_controller.h.
|
virtual |
Implements pr2_controller_interface::Controller.
Definition at line 98 of file joint_effort_controller.cpp.
double controller::JointEffortController::command_ |
Definition at line 79 of file joint_effort_controller.h.
pr2_mechanism_model::JointState* controller::JointEffortController::joint_state_ |
Definition at line 77 of file joint_effort_controller.h.
|
private |
Definition at line 84 of file joint_effort_controller.h.
|
private |
Definition at line 82 of file joint_effort_controller.h.
|
private |
Definition at line 85 of file joint_effort_controller.h.