Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
controller::JointEffortController Class Reference

#include <joint_effort_controller.h>

Inheritance diagram for controller::JointEffortController:
Inheritance graph
[legend]

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::JointStatejoint_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::RobotStaterobot_
 
ros::Subscriber sub_command_
 

Detailed Description

Definition at line 64 of file joint_effort_controller.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void controller::JointEffortController::commandCB ( const std_msgs::Float64ConstPtr &  msg)
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.

bool controller::JointEffortController::init ( pr2_mechanism_model::RobotState robot,
ros::NodeHandle n 
)
virtual

Implements pr2_controller_interface::Controller.

Definition at line 72 of file joint_effort_controller.cpp.

virtual void controller::JointEffortController::starting ( )
inlinevirtual

Reimplemented from pr2_controller_interface::Controller.

Definition at line 74 of file joint_effort_controller.h.

void controller::JointEffortController::update ( void  )
virtual

Implements pr2_controller_interface::Controller.

Definition at line 98 of file joint_effort_controller.cpp.

Member Data Documentation

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.

ros::NodeHandle controller::JointEffortController::node_
private

Definition at line 84 of file joint_effort_controller.h.

pr2_mechanism_model::RobotState* controller::JointEffortController::robot_
private

Definition at line 82 of file joint_effort_controller.h.

ros::Subscriber controller::JointEffortController::sub_command_
private

Definition at line 85 of file joint_effort_controller.h.


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


robot_mechanism_controllers
Author(s): John Hsu, Melonee Wise, Stuart Glaser
autogenerated on Wed Jun 5 2019 19:34:03