#include <JointController.h>
Public Member Functions | |
void | clearFaults () |
double | getEffortTarget () |
void | getJointLimits (double &lowLimit, double &highLimit) |
const nasa_r2_common_msgs::JointStatus & | getJointStatus () const |
double | getPosTarget () |
double | getVelTarget () |
JointController (physics::JointPtr _jointPtr, bool _advancedMode=false) | |
void | releaseBrake (bool release=true) |
void | setEffortTarget (double target) |
void | setJointControl (const nasa_r2_common_msgs::JointControl::ConstPtr &msg) |
void | setPosPid (double _p=0.0, double _i=0.0, double _d=0.0, double _imax=0.0, double _imin=0.0, double _cmdMax=0.0, double _cmdMin=0.0) |
void | setPosTarget (double target) |
void | setVelPid (double _p=0.0, double _i=0.0, double _d=0.0, double _imax=0.0, double _imin=0.0, double _cmdMax=0.0, double _cmdMin=0.0) |
void | setVelTarget (double target) |
void | update (common::Time &stepTime) |
~JointController () | |
Private Types | |
enum | JointControlMode { POS_COM = 0, TORQ_COM = 1, IMP_COM = 2, VEL_COM = 3 } |
enum | JointFault { OK = 0 } |
Private Attributes | |
bool | advancedMode |
boost::mutex | controllerMutex |
JointControlMode | controlMode |
nasa_r2_common_msgs::JointStatusPtr | currStatusPtr |
double | effort |
JointFault | fault |
double | jointHighLimit |
double | jointLowLimit |
physics::JointPtr | jointPtr |
double | position |
common::PID | posPid |
double | velocity |
common::PID | velPid |
Definition at line 19 of file JointController.h.
enum gazebo::JointController::JointControlMode [private] |
Definition at line 69 of file JointController.h.
enum gazebo::JointController::JointFault [private] |
Definition at line 70 of file JointController.h.
JointController::JointController | ( | physics::JointPtr | _jointPtr, |
bool | _advancedMode = false |
||
) |
Definition at line 10 of file JointController.cpp.
Definition at line 37 of file JointController.cpp.
void JointController::clearFaults | ( | ) |
Definition at line 168 of file JointController.cpp.
double gazebo::JointController::getEffortTarget | ( | ) | [inline] |
Definition at line 39 of file JointController.h.
void gazebo::JointController::getJointLimits | ( | double & | lowLimit, |
double & | highLimit | ||
) | [inline] |
Definition at line 41 of file JointController.h.
const nasa_r2_common_msgs::JointStatus & JointController::getJointStatus | ( | ) | const |
Definition at line 163 of file JointController.cpp.
double gazebo::JointController::getPosTarget | ( | ) | [inline] |
Definition at line 37 of file JointController.h.
double gazebo::JointController::getVelTarget | ( | ) | [inline] |
Definition at line 38 of file JointController.h.
void JointController::releaseBrake | ( | bool | release = true | ) |
Definition at line 175 of file JointController.cpp.
void JointController::setEffortTarget | ( | double | target | ) |
Definition at line 79 of file JointController.cpp.
void JointController::setJointControl | ( | const nasa_r2_common_msgs::JointControl::ConstPtr & | msg | ) |
Definition at line 137 of file JointController.cpp.
void JointController::setPosPid | ( | double | _p = 0.0 , |
double | _i = 0.0 , |
||
double | _d = 0.0 , |
||
double | _imax = 0.0 , |
||
double | _imin = 0.0 , |
||
double | _cmdMax = 0.0 , |
||
double | _cmdMin = 0.0 |
||
) |
Definition at line 41 of file JointController.cpp.
void JointController::setPosTarget | ( | double | target | ) |
Definition at line 55 of file JointController.cpp.
void JointController::setVelPid | ( | double | _p = 0.0 , |
double | _i = 0.0 , |
||
double | _d = 0.0 , |
||
double | _imax = 0.0 , |
||
double | _imin = 0.0 , |
||
double | _cmdMax = 0.0 , |
||
double | _cmdMin = 0.0 |
||
) |
Definition at line 48 of file JointController.cpp.
void JointController::setVelTarget | ( | double | target | ) |
Definition at line 67 of file JointController.cpp.
void JointController::update | ( | common::Time & | stepTime | ) |
Definition at line 91 of file JointController.cpp.
bool gazebo::JointController::advancedMode [private] |
Definition at line 66 of file JointController.h.
boost::mutex gazebo::JointController::controllerMutex [private] |
Definition at line 64 of file JointController.h.
Definition at line 73 of file JointController.h.
Definition at line 72 of file JointController.h.
double gazebo::JointController::effort [private] |
Definition at line 62 of file JointController.h.
JointFault gazebo::JointController::fault [private] |
Definition at line 74 of file JointController.h.
double gazebo::JointController::jointHighLimit [private] |
Definition at line 77 of file JointController.h.
double gazebo::JointController::jointLowLimit [private] |
Definition at line 76 of file JointController.h.
physics::JointPtr gazebo::JointController::jointPtr [private] |
Definition at line 55 of file JointController.h.
double gazebo::JointController::position [private] |
Definition at line 60 of file JointController.h.
common::PID gazebo::JointController::posPid [private] |
Definition at line 57 of file JointController.h.
double gazebo::JointController::velocity [private] |
Definition at line 61 of file JointController.h.
common::PID gazebo::JointController::velPid [private] |
Definition at line 58 of file JointController.h.