Go to the documentation of this file.
18 #ifndef __POWER_CUBE_CTRL_PARAMS_H_
19 #define __POWER_CUBE_CTRL_PARAMS_H_
40 int Init(std::string CanModule, std::string CanDevice,
int Baudrate, std::vector<int> ModuleIDs)
46 for (
int i = 0; i <
m_DOF; i++)
149 if ((
int)JointNames.size() ==
GetDOF())
166 if ((
int)UpperLimits.size() ==
GetDOF())
177 if ((
int)LowerLimits.size() ==
GetDOF())
188 if ((
int)AngleOffsets.size() ==
GetDOF())
199 if ((
int)MaxVel.size() ==
GetDOF())
210 if ((
int)MaxAcc.size() ==
GetDOF())
void SetCanModule(std::string CanModule)
Sets the CAN Module.
int SetLowerLimits(std::vector< double > LowerLimits)
Sets the lower angular limits (rad) for the joints.
int Init(std::string CanModule, std::string CanDevice, int Baudrate, std::vector< int > ModuleIDs)
Initializing.
std::vector< double > GetMaxAcc()
Gets the max. angular accelerations (rad/s^2) for the joints.
int GetModuleID(int no)
Gets the ModuleID.
int SetModuleID(int no, int id)
Sets the Module IDs.
std::vector< double > m_MaxAcc
std::vector< double > m_MaxVel
void SetDOF(int DOF)
Sets the DOF value.
std::string GetCanDevice()
Gets the CAN Device.
std::vector< std::string > m_JointNames
std::vector< std::string > GetJointNames()
Gets the joint names.
Parameters for cob_powercube_chain.
PowerCubeCtrlParams()
Constructor.
std::vector< double > m_Offsets
int SetMaxVel(std::vector< double > MaxVel)
Sets the max. angular velocities (rad/s) for the joints.
std::vector< int > m_ModulIDs
int SetMaxAcc(std::vector< double > MaxAcc)
Sets the max. angular accelerations (rad/s^2) for the joints.
std::string GetCanModule()
Gets the CAN Module.
std::vector< double > GetLowerLimits()
Gets the lower angular limits (rad) for the joints.
void SetUseMoveVel(bool UseMoveVel)
Sets UseMoveVel.
int SetUpperLimits(std::vector< double > UpperLimits)
Sets the upper angular limits (rad) for the joints.
std::vector< int > GetModuleIDs()
Gets the Module IDs.
int GetUseMoveVel()
Gets UseMoveVel.
void SetBaudrate(int Baudrate)
Sets the Baudrate.
int GetDOF()
Gets the DOF value.
void SetCanDevice(std::string CanDevice)
Sets the CAN Device.
std::vector< double > m_LowerLimits
std::vector< double > GetOffsets()
Gets the offset angulars (rad) for the joints.
std::vector< double > GetMaxVel()
Gets the max. angular velocities (rad/s) for the joints.
int SetOffsets(std::vector< double > AngleOffsets)
Sets the offset angulars (rad) for the joints.
int SetJointNames(std::vector< std::string > JointNames)
Sets the joint names.
~PowerCubeCtrlParams()
Destructor.
std::vector< double > GetUpperLimits()
Gets the upper angular limits (rad) for the joints.
int GetBaudrate()
Gets the Baudrate.
std::vector< double > m_UpperLimits