|
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 __LWRJointPositionController__ 00057 #define __LWRJointPositionController__ 00058 00059 00060 #include <FastResearchInterface.h> 00061 #include <LWRBaseControllerInterface.h> 00062 00063 00064 // ---------------------- Doxygen info ---------------------- 00070 // ---------------------------------------------------------- 00071 00072 class LWRJointPositionController : public LWRBaseControllerInterface 00073 { 00074 00075 00076 public: 00077 00078 00079 // ---------------------- Doxygen info ---------------------- 00086 // ---------------------------------------------------------- 00087 LWRJointPositionController(const char *InitFileName):LWRBaseControllerInterface(InitFileName) 00088 { 00089 } 00090 00091 00092 // ---------------------- Doxygen info ---------------------- 00099 // ---------------------------------------------------------- 00100 ~LWRJointPositionController(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_POSITION_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 }; // class LWRJointPositionController 00139 00140 #endif