54 #ifndef __ELMO_CTRL_H__ 55 #define __ELMO_CTRL_H__ 56 #define NTCAN_CLEAN_NAMESPACE 92 int Init(std::string CanDevice,
int BaudRate,
int ModuleID)
94 SetCanDevice(CanDevice);
95 SetBaudRate(BaudRate);
96 SetModuleID(ModuleID);
146 if(motor_dir<0) m_MotorDirection = -1;
147 else m_MotorDirection = 1;
181 double MoveJointSpace (
double PosRad);
186 bool RecoverAfterEmergencyStop();
193 m_MaxVel = radpersec;
201 int getGearPosVelRadS(
double* pdAngleGearRad,
double* pdVelGearRadS);
207 int setGearPosVelRadS(
double dPosRad,
double dVelRadS);
216 double getJointVelocity();
220 bool SetMotionCtrlType(
int type);
221 int GetMotionCtrlType();
240 bool sendNetStartCanOpen(
CanItf* canCtrl);
291 #endif //__ELMO_CTRL_H__
void SetCanDevice(std::string CanDevice)
void SetLowerLimit(double LowerLimit)
void SetHomingDir(int dir)
void SetCanIniFile(std::string iniFile)
pthread_mutex_t m_Mutex
joint mutexes
int Init(std::string CanDevice, int BaudRate, int ModuleID)
ElmoCtrlParams * m_Params
joint velocity mutexes
CANPeakSysUSB * GetCanCtrl()
void SetUpperLimit(double UpperLimit)
CanOpenAddress m_CanAddress
void SetBaudRate(int BaudRate)
struct _CanOpenAddress CanOpenAddress
void SetMotorDirection(int motor_dir)
int GetEncoderIncrements()
std::string GetCanIniFile()
void SetGearRatio(double gear_ratio)
CANPeakSysUSB * m_CanCtrl
void setMaxVelocity(float radpersec)
std::string GetCanDevice()
CanDriveHarmonica * m_Joint
joint mutexes
DriveParam * m_JointParams
void SetEncoderIncrements(int enc_incr)
void SetMaxVel(double maxVel)
void SetHomingDigIn(int dig_in)
void SetAngleOffset(double AngleOffset)