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 SetCanDevice(std::string CanDevice)
Sets the CAN Device.
std::vector< std::string > GetJointNames()
Gets the joint names.
std::string GetCanModule()
Gets the CAN Module.
int SetLowerLimits(std::vector< double > LowerLimits)
Sets the lower angular limits (rad) for the joints.
std::vector< double > GetLowerLimits()
Gets the lower angular limits (rad) for the joints.
int SetOffsets(std::vector< double > AngleOffsets)
Sets the offset angulars (rad) for the joints.
std::vector< double > m_Offsets
std::vector< double > m_MaxVel
void SetUseMoveVel(bool UseMoveVel)
Sets UseMoveVel.
void SetCanModule(std::string CanModule)
Sets the CAN Module.
int SetJointNames(std::vector< std::string > JointNames)
Sets the joint names.
std::vector< double > GetMaxAcc()
Gets the max. angular accelerations (rad/s^2) for the joints.
~PowerCubeCtrlParams()
Destructor.
std::vector< int > m_ModulIDs
std::vector< std::string > m_JointNames
int SetModuleID(int no, int id)
Sets the Module IDs.
int GetModuleID(int no)
Gets the ModuleID.
std::vector< double > m_LowerLimits
int SetUpperLimits(std::vector< double > UpperLimits)
Sets the upper angular limits (rad) for the joints.
std::string GetCanDevice()
Gets the CAN Device.
int GetDOF()
Gets the DOF value.
int SetMaxAcc(std::vector< double > MaxAcc)
Sets the max. angular accelerations (rad/s^2) for the joints.
int SetMaxVel(std::vector< double > MaxVel)
Sets the max. angular velocities (rad/s) for the joints.
int Init(std::string CanModule, std::string CanDevice, int Baudrate, std::vector< int > ModuleIDs)
Initializing.
std::vector< double > GetOffsets()
Gets the offset angulars (rad) for the joints.
int GetBaudrate()
Gets the Baudrate.
std::vector< double > GetMaxVel()
Gets the max. angular velocities (rad/s) for the joints.
void SetBaudrate(int Baudrate)
Sets the Baudrate.
std::vector< double > GetUpperLimits()
Gets the upper angular limits (rad) for the joints.
PowerCubeCtrlParams()
Constructor.
std::vector< double > m_UpperLimits
int GetUseMoveVel()
Gets UseMoveVel.
void SetDOF(int DOF)
Sets the DOF value.
Parameters for cob_powercube_chain.
std::vector< double > m_MaxAcc
std::vector< int > GetModuleIDs()
Gets the Module IDs.