CanDriveItf.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef CANDRIVEITF_INCLUDEDEF_H
19 #define CANDRIVEITF_INCLUDEDEF_H
20 
21 //-----------------------------------------------
22 #include <cob_generic_can/CanItf.h>
25 //-----------------------------------------------
26 
32 {
33 public:
38  {
42  };
43 
47  virtual void setCanItf(CanItf* pCanItf) = 0;
48 
53  virtual bool init() = 0;
54 
60  virtual bool isInitialized() = 0;
61 
66  virtual bool start() = 0;
67 
72  virtual bool stop() = 0;
73 
78  virtual bool reset() = 0;
79 
83  virtual bool shutdown() = 0;
84 
91  virtual bool disableBrake(bool bDisabled) = 0;
92 
97  virtual bool initHoming() = 0;
98 
103  virtual bool execHoming() = 0;
104 
108  virtual double getTimeToLastMsg() = 0;
109 
114  virtual bool getStatusLimitSwitch() = 0;
115 
123  virtual bool startWatchdog(bool bStarted) = 0;
124 
130  virtual bool evalReceivedMsg(CanMsg& msg) = 0;
131 
137  virtual bool evalReceivedMsg() = 0;
138 
144  virtual void setGearPosVelRadS(double dPosRad, double dVelRadS) = 0;
145 
150  virtual void setGearVelRadS(double dVelRadS) = 0;
151 
157  virtual bool setTypeMotion(int iType) = 0;
158 
162  virtual void getGearPosVelRadS(double* pdAngleGearRad, double* pdVelGearRadS) = 0;
163 
168  virtual void getGearDeltaPosVelRadS(double* pdDeltaAngleGearRad, double* pdVelGearRadS) = 0;
169 
173  virtual void getGearPosRad(double* pdPosGearRad) = 0;
174 
178  virtual void setDriveParam(DriveParam driveParam) = 0;
179 
183  virtual bool isError() = 0;
184 
188  virtual unsigned int getError() = 0;
189 
193  virtual void requestPosVel() = 0;
194 
198  virtual void requestStatus() = 0;
199 
203  virtual void getStatus(int* piStatus, int* piTempCel) = 0;
204 
208  virtual bool setEMStop() = 0;
209 
213  virtual bool resetEMStop() = 0;
214 
218  virtual void IntprtSetInt(int iDataLen, char cCmdChar1, char cCmdChar2, int iIndex, int iData) = 0;
219 
223  virtual int setRecorder(int iFlag, int iParam = 0, std::string sParam = "/home/MyLog") = 0;
224 
228  virtual void requestMotorTorque() = 0;
229 
235  virtual void getMotorTorque(double* dTorqueNm) = 0;
236 
240  virtual void setMotorTorque(double dTorqueNm) = 0;
241 };
242 
243 
244 //-----------------------------------------------
245 #endif
246 
virtual bool shutdown()=0
virtual bool resetEMStop()=0
virtual void requestPosVel()=0
virtual bool execHoming()=0
virtual double getTimeToLastMsg()=0
virtual bool initHoming()=0
virtual bool startWatchdog(bool bStarted)=0
virtual bool isError()=0
virtual bool init()=0
virtual void setCanItf(CanItf *pCanItf)=0
virtual void getMotorTorque(double *dTorqueNm)=0
virtual void getGearDeltaPosVelRadS(double *pdDeltaAngleGearRad, double *pdVelGearRadS)=0
virtual unsigned int getError()=0
virtual bool reset()=0
virtual bool setEMStop()=0
virtual void requestStatus()=0
virtual void requestMotorTorque()=0
virtual void getGearPosRad(double *pdPosGearRad)=0
virtual void getStatus(int *piStatus, int *piTempCel)=0
virtual void setGearVelRadS(double dVelRadS)=0
virtual bool disableBrake(bool bDisabled)=0
virtual bool stop()=0
virtual void setMotorTorque(double dTorqueNm)=0
virtual bool isInitialized()=0
virtual bool setTypeMotion(int iType)=0
virtual void setGearPosVelRadS(double dPosRad, double dVelRadS)=0
virtual bool evalReceivedMsg()=0
virtual bool getStatusLimitSwitch()=0
virtual bool start()=0
virtual void setDriveParam(DriveParam driveParam)=0
virtual void getGearPosVelRadS(double *pdAngleGearRad, double *pdVelGearRadS)=0
virtual void IntprtSetInt(int iDataLen, char cCmdChar1, char cCmdChar2, int iIndex, int iData)=0
virtual int setRecorder(int iFlag, int iParam=0, std::string sParam="/home/MyLog")=0


cob_canopen_motor
Author(s): Christian Connette
autogenerated on Wed Apr 7 2021 02:11:53