SDC C-Project CF Review 프로그램
LYW
2021-06-28 cf6a4019e9efbc0503bd3fbcf6f951565d028972
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#pragma once
 
 
#include "akCoreLinker.h"
#include "akStruct.h"
#include "akDE.h"
#include <vector>
namespace akCore
{
    struct _Waypoint
    {
        double x;
        double y;
        double z;
        double speed;
    };
 
    class AKCORE_DLLSPEC CakTrajcetoryModel
    {
    public:
        CakTrajcetoryModel(void);
        ~CakTrajcetoryModel(void);
 
    public:
        virtual int calculate(float dTime); //´õÀÌ»ó °è»êÇÒ °æ·ÎÁ¡ÀÌ ¾øÀ» °æ¿ì 2¸¦ ¹Ýȯ
        void setCurrentByWaypoint(int nWaypointIndex); //ÇöÀç°ªÀ» °æ·ÎÁ¡ ±âÁØÀ¸·Î ¼ÂÆÃ
 
    
 
    public:
        //ÇöÀç °ª
        akVector3d m_position; //À§Ä¡
        akVector3d m_rotate; //ÀÚ¼¼
        double m_velocity; //¼Óµµ
        double m_acc;    //°¡¼Óµµ
        akVector3d m_rotateAcc; //°¢¼Óµµ
 
        //ºÎ¿© ¹ÞÀº ¸í·É ¼³Á¤
        akVector3d m_TaskPosition;
        double m_TaskVelocity;
        double m_TaskAcc;
 
        //°´Ã¼ Á¤º¸ °ü¸®
        double mass; //¹«°Ô
        double maxSpeed; //ÃÖ´ë ¼Óµµ
        double minSpeed; //ÃÖÀú ¼Óµµ
        double maxAcceleration; //°¡¼Óµµ
        double maxDeceleration; //°¨¼Óµµ
 
        akVector3d m_rotateVelRate;
 
        //°æ·ÎÁ¡ °ü¸®
    public:
        int m_nWaypointType; //0 ¸¶Áö¸· °æ·ÎÁ¡À̸頳¡³½´Ù, 1°æ·ÎÁ¡ ¼øÈ¸, 2°æ·ÎÁ¡ ¿Õº¹
        int m_nWaypointSet; //ÇöÀç ¼³Á¤µÈ °æ·ÎÁ¡
        std::vector<_Waypoint> m_vecWaypoint;
 
 
    protected:
        void getAngle3d(double x1, double y1, double z1, double x2, double y2, double z2, double* heading, double* pitch);
        double getHeading(double x , double y);
    protected:
        CakDE m_movementmodel;
    };
 
}