Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
controller::SrhJointMuscleValveController Class Reference

#include <srh_joint_muscle_valve_controller.hpp>

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

List of all members.

Public Member Functions

virtual void getGains (double &p, double &i, double &d, double &i_max, double &i_min)
bool init (pr2_mechanism_model::RobotState *robot, const std::string &joint_name)
bool init (pr2_mechanism_model::RobotState *robot, ros::NodeHandle &n)
virtual bool resetGains (std_srvs::Empty::Request &req, std_srvs::Empty::Response &resp)
 SrhJointMuscleValveController ()
virtual void starting ()
virtual void update ()
 Issues commands to the joint. Should be called at regular intervals.
virtual ~SrhJointMuscleValveController ()

Public Attributes

unsigned int cmd_duration_ms_ [2]
int8_t cmd_valve_muscle_ [2]
int8_t cmd_valve_muscle_max_
int8_t cmd_valve_muscle_min_
unsigned int current_duration_ms_ [2]

Private Member Functions

int8_t clamp_command (int8_t cmd)
 enforce that the value of the received command is in the allowed range
void read_parameters ()
 read all the controller settings from the parameter server
void setCommandCB (const sr_robot_msgs::JointMuscleValveControllerCommandConstPtr &msg)

Private Attributes

boost::shared_ptr
< realtime_tools::RealtimePublisher
< sr_robot_msgs::JointMuscleValveControllerState > > 
controller_state_publisher_
ros::Subscriber sub_command_

Detailed Description

Definition at line 39 of file srh_joint_muscle_valve_controller.hpp.


Constructor & Destructor Documentation

Definition at line 44 of file srh_joint_muscle_valve_controller.cpp.

Definition at line 51 of file srh_joint_muscle_valve_controller.cpp.


Member Function Documentation

enforce that the value of the received command is in the allowed range

Definition at line 337 of file srh_joint_muscle_valve_controller.cpp.

void controller::SrhJointMuscleValveController::getGains ( double &  p,
double &  i,
double &  d,
double &  i_max,
double &  i_min 
) [virtual]

Reimplemented from controller::SrController.

Definition at line 167 of file srh_joint_muscle_valve_controller.cpp.

bool controller::SrhJointMuscleValveController::init ( pr2_mechanism_model::RobotState robot,
const std::string &  joint_name 
)

Definition at line 56 of file srh_joint_muscle_valve_controller.cpp.

Reimplemented from controller::SrController.

Definition at line 115 of file srh_joint_muscle_valve_controller.cpp.

read all the controller settings from the parameter server

Definition at line 319 of file srh_joint_muscle_valve_controller.cpp.

bool controller::SrhJointMuscleValveController::resetGains ( std_srvs::Empty::Request &  req,
std_srvs::Empty::Response &  resp 
) [virtual]

Reimplemented from controller::SrController.

Definition at line 153 of file srh_joint_muscle_valve_controller.cpp.

void controller::SrhJointMuscleValveController::setCommandCB ( const sr_robot_msgs::JointMuscleValveControllerCommandConstPtr &  msg) [private]

Definition at line 324 of file srh_joint_muscle_valve_controller.cpp.

Reimplemented from controller::SrController.

Definition at line 134 of file srh_joint_muscle_valve_controller.cpp.

Issues commands to the joint. Should be called at regular intervals.

Reimplemented from controller::SrController.

Definition at line 171 of file srh_joint_muscle_valve_controller.cpp.


Member Data Documentation

Last duration commanded for the valve command for each muscle.

Definition at line 60 of file srh_joint_muscle_valve_controller.hpp.

Last commanded valve values for each muscle.

Definition at line 59 of file srh_joint_muscle_valve_controller.hpp.

Definition at line 64 of file srh_joint_muscle_valve_controller.hpp.

Definition at line 63 of file srh_joint_muscle_valve_controller.hpp.

boost::shared_ptr<realtime_tools::RealtimePublisher<sr_robot_msgs::JointMuscleValveControllerState> > controller::SrhJointMuscleValveController::controller_state_publisher_ [private]

Reimplemented from controller::SrController.

Definition at line 68 of file srh_joint_muscle_valve_controller.hpp.

Definition at line 61 of file srh_joint_muscle_valve_controller.hpp.

Reimplemented from controller::SrController.

Definition at line 70 of file srh_joint_muscle_valve_controller.hpp.


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


sr_mechanism_controllers
Author(s): Ugo Cupcic
autogenerated on Fri Aug 28 2015 13:09:56