-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJunMoveAndWrite.h
39 lines (26 loc) · 1.27 KB
/
JunMoveAndWrite.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _JUN_MOVE_AND_WRITE_
#define _JUN_MOVE_AND_WRITE_
#include "JunStreamWriter.h"
class JunMoveAndWrite
{
public:
JunMoveAndWrite();
void RunUnditeredMotion(double vel, int num_repeats);
void RunDiteredMotion(double vel, int num_measurements, double dither_magintude, int num_dither_steps, int num_repeats);
void RunTrajectory(::std::string path2trajectory, ::std::string outPutFileNameTail, double dither_magintude, int num_dither_steps); // for 3 tube robot
void RunTrajectoryForAllApproachingDirections(::std::string path2trajectory, ::std::string outPutFileNameTail); // for 3 tube robot
void RunTrajectoryForRandomApproachingDirections(::std::string path2trajectory, ::std::string outPutFileNameTail); // for 3 tube robot
private:
void RunBaseFrameMotion();
void MoveDriveSystemTo(double angle);
void RotateDriveSystemAllTo(double angle);
void DitherDriveSystem(double target_angle, double dither_magintude, int num_dither_steps);
void DitherDriveSystem(::std::vector<double> target_conf, double dither_magintude, int num_dither_steps);
void CheckEmergenceStop();
static DWORD WINAPI checking_emergency(LPVOID pData);
private:
JunDriveSystem m_drive;
JunEMTracker m_sensor;
bool m_bEmergency;
};
#endif