Takeuchi Issei
/
4Omunisleeve3
メカナムのコード
shared/GCodeReader/GCodeReader.h@0:ee7e9405e1c7, 2021-04-14 (annotated)
- Committer:
- e2011220
- Date:
- Wed Apr 14 07:26:19 2021 +0000
- Revision:
- 0:ee7e9405e1c7
first
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
e2011220 | 0:ee7e9405e1c7 | 1 | #ifndef G_CODE_READER_H_ |
e2011220 | 0:ee7e9405e1c7 | 2 | #define G_CODE_READER_H_ |
e2011220 | 0:ee7e9405e1c7 | 3 | |
e2011220 | 0:ee7e9405e1c7 | 4 | #include <shared/Movement/Movement.h> |
e2011220 | 0:ee7e9405e1c7 | 5 | |
e2011220 | 0:ee7e9405e1c7 | 6 | #include <Dense.h> |
e2011220 | 0:ee7e9405e1c7 | 7 | |
e2011220 | 0:ee7e9405e1c7 | 8 | #include <vector> |
e2011220 | 0:ee7e9405e1c7 | 9 | #include <string> |
e2011220 | 0:ee7e9405e1c7 | 10 | #include <iostream> |
e2011220 | 0:ee7e9405e1c7 | 11 | |
e2011220 | 0:ee7e9405e1c7 | 12 | class GCodeReader |
e2011220 | 0:ee7e9405e1c7 | 13 | { |
e2011220 | 0:ee7e9405e1c7 | 14 | public: |
e2011220 | 0:ee7e9405e1c7 | 15 | GCodeReader(Eigen::Vector3d *current_position, Eigen::Vector3d *target_position); |
e2011220 | 0:ee7e9405e1c7 | 16 | virtual ~GCodeReader(){} |
e2011220 | 0:ee7e9405e1c7 | 17 | |
e2011220 | 0:ee7e9405e1c7 | 18 | void read_g_code(const std::string &g_code); |
e2011220 | 0:ee7e9405e1c7 | 19 | |
e2011220 | 0:ee7e9405e1c7 | 20 | std::vector<std::string> split_space(const std::string &str); |
e2011220 | 0:ee7e9405e1c7 | 21 | std::vector<std::string> split(const std::string &str, char sep); |
e2011220 | 0:ee7e9405e1c7 | 22 | protected: |
e2011220 | 0:ee7e9405e1c7 | 23 | |
e2011220 | 0:ee7e9405e1c7 | 24 | Eigen::Vector3d *_current_position; |
e2011220 | 0:ee7e9405e1c7 | 25 | Eigen::Vector3d *_target_position; |
e2011220 | 0:ee7e9405e1c7 | 26 | |
e2011220 | 0:ee7e9405e1c7 | 27 | private: |
e2011220 | 0:ee7e9405e1c7 | 28 | |
e2011220 | 0:ee7e9405e1c7 | 29 | void _function_g_00(const std::vector<std::string> &strings); |
e2011220 | 0:ee7e9405e1c7 | 30 | void _function_g_04(const std::vector<std::string> &strings); |
e2011220 | 0:ee7e9405e1c7 | 31 | }; |
e2011220 | 0:ee7e9405e1c7 | 32 | |
e2011220 | 0:ee7e9405e1c7 | 33 | #endif |