18 #ifndef __POWER_CUBE_SIM_H_ 19 #define __POWER_CUBE_SIM_H_ 46 %include
"Source/Manipulation/Interfaces/armInterface.h" 77 return m_ErrorMessage;
88 bool MoveJointSpaceSync(
const std::vector<double>& Angle);
91 bool MoveVel(
const std::vector<double>& vel);
102 bool setMaxVelocity(
double radpersec);
104 bool setMaxVelocity(
const std::vector<double>& radpersec);
108 bool setMaxAcceleration(
double radPerSecSquared);
109 bool setMaxAcceleration(
const std::vector<double>& radPerSecSquared);
116 bool getConfig(std::vector<double>& result);
119 bool getJointVelocities(std::vector<double>& result);
121 void setCurrentAngles(std::vector<double> Angles);
123 void setCurrentJointVelocities(std::vector<double> Angles);
128 bool statusMoving(
int cubeNo);
145 PC_CTRL_NOT_REFERENCED = -1,
147 PC_CTRL_POW_VOLT_ERR = -3
152 void setStatusMoving(
int cubeNo,
bool moving);
155 return m_MovementInProgress[cubeNo];
164 return m_CurrentAngularMaxVel;
168 return m_CurrentAngularMaxAccel;
170 void millisleep(
unsigned int milliseconds)
const;
179 double timeRampMove(
double dtheta,
double vnow,
double v,
double a);
181 int startSimulatedMovement(std::vector<double> target);
186 Manipulator* m_Obj_Manipulator;
pthread_mutex_t m_AngularVel_Mutex
std::vector< double > m_maxAcc
std::vector< double > m_maxVel
SimThreadArgs ** m_SimThreadArgs
pthread_mutex_t m_Movement_Mutex
std::vector< double > m_CurrentAngularMaxVel
std::string m_ErrorMessage
std::vector< bool > m_MovementInProgress
vector< int > getModuleMap() const
std::vector< double > m_CurrentAngularVel
std::string getErrorMessage() const
vector< int > m_IdModules
std::vector< double > getCurrentAngularMaxAccel()
pthread_mutex_t m_Angles_Mutex
std::vector< double > m_CurrentAngles
pthread_t * m_SimThreadID
std::vector< double > getCurrentAngularMaxVel()
PC_CTRL_STATE
Looks for connected Modules and returns their Ids in a vector.
PowerCubeSim * cubeSimPtr
bool isInitialized() const
std::vector< double > m_CurrentAngularMaxAccel
Parameters for cob_powercube_chain.
bool getStatusMoving(int cubeNo) const