|
Fast Research Interface Library
Manual and Documentation
|
00001 // ---------------------- Doxygen info ---------------------- 00050 // ---------------------------------------------------------- 00051 // For a convenient reading of this file's source code, 00052 // please use a tab width of four characters. 00053 // ---------------------------------------------------------- 00054 00055 00056 #ifndef __LWRJointImpedanceController__ 00057 #define __LWRJointImpedanceController__ 00058 00059 00060 #include <FastResearchInterface.h> 00061 #include <LWRBaseControllerInterface.h> 00062 00063 00064 // ---------------------- Doxygen info ---------------------- 00070 // ---------------------------------------------------------- 00071 00072 class LWRJointImpedanceController : public LWRBaseControllerInterface 00073 { 00074 00075 00076 public: 00077 00078 00079 // ---------------------- Doxygen info ---------------------- 00086 // ---------------------------------------------------------- 00087 LWRJointImpedanceController(const char *InitFileName):LWRBaseControllerInterface(InitFileName) 00088 { 00089 } 00090 00091 00092 // ---------------------- Doxygen info ---------------------- 00099 // ---------------------------------------------------------- 00100 ~LWRJointImpedanceController(void) 00101 { 00102 } 00103 00104 00105 // ---------------------- Doxygen info ---------------------- 00113 // ---------------------------------------------------------- 00114 inline int StartRobot(const float &TimeOutValueInSeconds = 120.0) 00115 { 00116 this->printf("Please start up the robot now by using KUKA Control Panel.\n"); 00117 00118 // start the controller and switch to command mode 00119 return(this->FRI->StartRobot( FastResearchInterface::JOINT_IMPEDANCE_CONTROL 00120 , TimeOutValueInSeconds)); 00121 } 00122 00123 00124 // ---------------------- Doxygen info ---------------------- 00132 // ---------------------------------------------------------- 00133 inline void SetCommandedJointPositions(const float *CommandedJointPositions) 00134 { 00135 return(this->FRI->SetCommandedJointPositions(CommandedJointPositions)); 00136 } 00137 00138 00139 // ---------------------- Doxygen info ---------------------- 00147 // ---------------------------------------------------------- 00148 inline void SetCommandedJointTorques(const float *CommandedJointTorques) 00149 { 00150 return(this->FRI->SetCommandedJointTorques(CommandedJointTorques)); 00151 } 00152 00153 00154 // ---------------------- Doxygen info ---------------------- 00162 // ---------------------------------------------------------- 00163 inline void SetCommandedJointStiffness(const float *CommandedJointStiffness) 00164 { 00165 return(this->FRI->SetCommandedJointStiffness(CommandedJointStiffness)); 00166 } 00167 00168 00169 // ---------------------- Doxygen info ---------------------- 00177 // ---------------------------------------------------------- 00178 inline void SetCommandedJointDamping(const float *CommandedJointDamping) 00179 { 00180 return(this->FRI->SetCommandedJointDamping(CommandedJointDamping)); 00181 } 00182 00183 00184 }; // class LWRJointImpedanceController 00185 00186 #endif