test
Dependencies: mbed ros_lib_kinetic nhk19mr2_can_info splitData SerialHalfDuplex_HM
Walk/orbit/freeline/freeline.h@35:b4e1b8f25cd7, 2019-03-04 (annotated)
- Committer:
- shimizuta
- Date:
- Mon Mar 04 09:54:47 2019 +0000
- Revision:
- 35:b4e1b8f25cd7
- Child:
- 41:38d79b6513c0
new MR2;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimizuta | 35:b4e1b8f25cd7 | 1 | #ifndef INCLUDED_FREELINE_H |
shimizuta | 35:b4e1b8f25cd7 | 2 | #define INCLUDED_FREELINE_H |
shimizuta | 35:b4e1b8f25cd7 | 3 | #include "OneLeg.h" |
shimizuta | 35:b4e1b8f25cd7 | 4 | struct LineParam |
shimizuta | 35:b4e1b8f25cd7 | 5 | { |
shimizuta | 35:b4e1b8f25cd7 | 6 | float time_s; //x_m,y_mにいる時間 |
shimizuta | 35:b4e1b8f25cd7 | 7 | float x_m; |
shimizuta | 35:b4e1b8f25cd7 | 8 | float y_m; |
shimizuta | 35:b4e1b8f25cd7 | 9 | }; |
shimizuta | 35:b4e1b8f25cd7 | 10 | //複数の直線で軌道構成.理論もへったくれもなく自由に線を書く |
shimizuta | 35:b4e1b8f25cd7 | 11 | class FreeLines |
shimizuta | 35:b4e1b8f25cd7 | 12 | { |
shimizuta | 35:b4e1b8f25cd7 | 13 | public: |
shimizuta | 35:b4e1b8f25cd7 | 14 | void SetFreeLinesParam(LineParam lineparams[], int point_num); //任意の直線の軌道を設定 |
shimizuta | 35:b4e1b8f25cd7 | 15 | int GetOrbit(OneLeg &leg, float phasetime_s); |
shimizuta | 35:b4e1b8f25cd7 | 16 | float GetOneWalkTime(); //足一周の時間 |
shimizuta | 35:b4e1b8f25cd7 | 17 | void Copy(const FreeLines & origin); |
shimizuta | 35:b4e1b8f25cd7 | 18 | LineParam lineparams_[20]; //pointの数は多めにとっている。 |
shimizuta | 35:b4e1b8f25cd7 | 19 | int point_num_; //pointの数 |
shimizuta | 35:b4e1b8f25cd7 | 20 | }; |
shimizuta | 35:b4e1b8f25cd7 | 21 | |
shimizuta | 35:b4e1b8f25cd7 | 22 | #endif |