|
Fast Research Interface Library
Manual and Documentation
|
00001 // ---------------------- Doxygen info ---------------------- 00033 // ---------------------------------------------------------- 00034 // For a convenient reading of this file's source code, 00035 // please use a tab width of four characters. 00036 // ---------------------------------------------------------- 00037 00038 00039 #ifndef __LWRJointTorqueController__ 00040 #define __LWRJointTorqueController__ 00041 00042 00043 #include <FastResearchInterface.h> 00044 #include <LWRBaseControllerInterface.h> 00045 00046 00047 // ---------------------- Doxygen info ---------------------- 00053 // ---------------------------------------------------------- 00054 00055 class LWRJointTorqueController : public LWRBaseControllerInterface 00056 { 00057 00058 00059 public: 00060 00061 00062 // ---------------------- Doxygen info ---------------------- 00069 // ---------------------------------------------------------- 00070 LWRJointTorqueController(const char *InitFileName):LWRBaseControllerInterface(InitFileName) 00071 { 00072 } 00073 00074 00075 // ---------------------- Doxygen info ---------------------- 00082 // ---------------------------------------------------------- 00083 ~LWRJointTorqueController(void) 00084 { 00085 } 00086 00087 00088 // ---------------------- Doxygen info ---------------------- 00096 // ---------------------------------------------------------- 00097 inline int StartRobot(const float &TimeOutValueInSeconds = 120.0) 00098 { 00099 this->printf("Please start up the robot now by using KUKA Control Panel.\n"); 00100 00101 // start the controller and switch to command mode 00102 return(this->FRI->StartRobot( FastResearchInterface::JOINT_TORQUE_CONTROL 00103 , TimeOutValueInSeconds)); 00104 } 00105 00106 00107 // ---------------------- Doxygen info ---------------------- 00115 // ---------------------------------------------------------- 00116 inline void SetCommandedJointTorques(const float *CommandedJointTorques) 00117 { 00118 return(this->FRI->SetCommandedJointTorques(CommandedJointTorques)); 00119 } 00120 00121 }; // class LWRJointTorqueController 00122 00123 #endif