2017-02-24 23:34:11 +00:00
|
|
|
#ifndef MINITAUR_SIMULATION_SETUP_H
|
|
|
|
#define MINITAUR_SIMULATION_SETUP_H
|
|
|
|
|
2018-05-27 00:42:33 +00:00
|
|
|
#include "LinearMath/btVector3.h"
|
|
|
|
#include "LinearMath/btQuaternion.h"
|
2017-02-24 23:34:11 +00:00
|
|
|
class MinitaurSetup
|
|
|
|
{
|
|
|
|
struct MinitaurSetupInternalData* m_data;
|
2018-02-03 02:33:29 +00:00
|
|
|
void resetPose(class b3RobotSimulatorClientAPI_NoGUI* sim);
|
2017-02-24 23:34:11 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
MinitaurSetup();
|
|
|
|
virtual ~MinitaurSetup();
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
int setupMinitaur(class b3RobotSimulatorClientAPI_NoGUI* sim, const class btVector3& startPos = btVector3(0, 0, 0), const class btQuaternion& startOrn = btQuaternion(0, 0, 0, 1));
|
2017-02-24 23:34:11 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
void setDesiredMotorAngle(class b3RobotSimulatorClientAPI_NoGUI* sim, const char* motorName, double desiredAngle, double maxTorque = 3, double kp = 0.1, double kd = 0.9);
|
2017-02-24 23:34:11 +00:00
|
|
|
};
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //MINITAUR_SIMULATION_SETUP_H
|