#include <JointController.h>
Public Member Functions | |
void | clearFaults () |
const r2_msgs::JointStatus & | getJointStatus () const |
JointController (physics::JointPtr _jointPtr, bool _advancedMode=false) | |
void | releaseBrake (bool release=true) |
void | setEffortTarget (double target) |
void | setJointControl (const r2_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 |
r2_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 63 of file JointController.h.
enum gazebo::JointController::JointFault [private] |
Definition at line 64 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.
const r2_msgs::JointStatus & JointController::getJointStatus | ( | ) | const |
Definition at line 163 of file JointController.cpp.
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 r2_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 60 of file JointController.h.
boost::mutex gazebo::JointController::controllerMutex [private] |
Definition at line 58 of file JointController.h.
Definition at line 67 of file JointController.h.
Definition at line 66 of file JointController.h.
double gazebo::JointController::effort [private] |
Definition at line 56 of file JointController.h.
JointFault gazebo::JointController::fault [private] |
Definition at line 68 of file JointController.h.
double gazebo::JointController::jointHighLimit [private] |
Definition at line 71 of file JointController.h.
double gazebo::JointController::jointLowLimit [private] |
Definition at line 70 of file JointController.h.
physics::JointPtr gazebo::JointController::jointPtr [private] |
Definition at line 49 of file JointController.h.
double gazebo::JointController::position [private] |
Definition at line 54 of file JointController.h.
common::PID gazebo::JointController::posPid [private] |
Definition at line 51 of file JointController.h.
double gazebo::JointController::velocity [private] |
Definition at line 55 of file JointController.h.
common::PID gazebo::JointController::velPid [private] |
Definition at line 52 of file JointController.h.