Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
shared/AutomaticMovement/AutomaticMovement.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 AUTOMATIC_MOVEMENT_H_ |
| e2011220 | 0:ee7e9405e1c7 | 2 | #define AUTOMATIC_MOVEMENT_H_ |
| e2011220 | 0:ee7e9405e1c7 | 3 | |
| e2011220 | 0:ee7e9405e1c7 | 4 | #include <shared/Movement/Movement.h> |
| e2011220 | 0:ee7e9405e1c7 | 5 | #include <shared/EigenCalculation/EigenCalculation.h> |
| e2011220 | 0:ee7e9405e1c7 | 6 | |
| e2011220 | 0:ee7e9405e1c7 | 7 | class AutomaticMovement |
| e2011220 | 0:ee7e9405e1c7 | 8 | { |
| e2011220 | 0:ee7e9405e1c7 | 9 | public: |
| e2011220 | 0:ee7e9405e1c7 | 10 | AutomaticMovement(Movement *movement); |
| e2011220 | 0:ee7e9405e1c7 | 11 | virtual ~AutomaticMovement(){} |
| e2011220 | 0:ee7e9405e1c7 | 12 | |
| e2011220 | 0:ee7e9405e1c7 | 13 | virtual Eigen::Vector3d move_automatic(Eigen::Vector3d current_position) = 0; |
| e2011220 | 0:ee7e9405e1c7 | 14 | Eigen::Vector3d move_automatic(Eigen::Vector3d target_position, Eigen::Vector3d current_position); |
| e2011220 | 0:ee7e9405e1c7 | 15 | |
| e2011220 | 0:ee7e9405e1c7 | 16 | virtual void set_target_position(Eigen::Vector3d target_position); |
| e2011220 | 0:ee7e9405e1c7 | 17 | |
| e2011220 | 0:ee7e9405e1c7 | 18 | protected: |
| e2011220 | 0:ee7e9405e1c7 | 19 | Movement *_movement; |
| e2011220 | 0:ee7e9405e1c7 | 20 | |
| e2011220 | 0:ee7e9405e1c7 | 21 | Eigen::Vector3d _target_position; |
| e2011220 | 0:ee7e9405e1c7 | 22 | }; |
| e2011220 | 0:ee7e9405e1c7 | 23 | |
| e2011220 | 0:ee7e9405e1c7 | 24 | #endif |