|
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 __LWRCartImpedanceController__ 00057 #define __LWRCartImpedanceController__ 00058 00059 00060 #include <FastResearchInterface.h> 00061 #include <LWRBaseControllerInterface.h> 00062 00063 00064 // ---------------------- Doxygen info ---------------------- 00070 // ---------------------------------------------------------- 00071 00072 class LWRCartImpedanceController : public LWRBaseControllerInterface 00073 { 00074 00075 00076 public: 00077 00078 00079 // ---------------------- Doxygen info ---------------------- 00086 // ---------------------------------------------------------- 00087 LWRCartImpedanceController(const char *InitFileName):LWRBaseControllerInterface(InitFileName) 00088 { 00089 } 00090 00091 00092 // ---------------------- Doxygen info ---------------------- 00099 // ---------------------------------------------------------- 00100 ~LWRCartImpedanceController(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::CART_IMPEDANCE_CONTROL 00120 , TimeOutValueInSeconds)); 00121 } 00122 00123 00124 // ---------------------- Doxygen info ---------------------- 00132 // ---------------------------------------------------------- 00133 inline void GetMeasuredCartPose(float *MeasuredCartPose) 00134 { 00135 return(this->FRI->GetMeasuredCartPose(MeasuredCartPose)); 00136 } 00137 00138 00139 // ---------------------- Doxygen info ---------------------- 00147 // ---------------------------------------------------------- 00148 inline void SetCommandedCartPose(const float *CommandedCartPose) 00149 { 00150 return(this->FRI->SetCommandedCartPose(CommandedCartPose)); 00151 } 00152 00153 00154 // ---------------------- Doxygen info ---------------------- 00162 // ---------------------------------------------------------- 00163 inline void SetCommandedCartForcesAndTorques(const float *CartForcesAndTorques) 00164 { 00165 return(this->FRI->SetCommandedCartForcesAndTorques(CartForcesAndTorques)); 00166 } 00167 00168 00169 // ---------------------- Doxygen info ---------------------- 00177 // ---------------------------------------------------------- 00178 inline void SetCommandedCartStiffness(const float *CommandedCartStiffness) 00179 { 00180 return(this->FRI->SetCommandedCartStiffness(CommandedCartStiffness)); 00181 } 00182 00183 00184 // ---------------------- Doxygen info ---------------------- 00192 // ---------------------------------------------------------- 00193 inline void SetCommandedCartDamping(const float *CommandedCartDamping) 00194 { 00195 return(this->FRI->SetCommandedCartDamping(CommandedCartDamping)); 00196 } 00197 00198 00199 // ---------------------- Doxygen info ---------------------- 00207 // ---------------------------------------------------------- 00208 inline void GetEstimatedExternalCartForcesAndTorques(float *EstimatedExternalCartForcesAndTorques) 00209 { 00210 return(this->FRI->GetEstimatedExternalCartForcesAndTorques(EstimatedExternalCartForcesAndTorques)); 00211 } 00212 00213 }; // class LWRCartImpedanceController 00214 00215 #endif