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.
Diff: shared/AutomaticMovement/AutomaticMovement.h
- Revision:
- 0:ee7e9405e1c7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shared/AutomaticMovement/AutomaticMovement.h Wed Apr 14 07:26:19 2021 +0000
@@ -0,0 +1,24 @@
+#ifndef AUTOMATIC_MOVEMENT_H_
+#define AUTOMATIC_MOVEMENT_H_
+
+#include <shared/Movement/Movement.h>
+#include <shared/EigenCalculation/EigenCalculation.h>
+
+class AutomaticMovement
+{
+public:
+ AutomaticMovement(Movement *movement);
+ virtual ~AutomaticMovement(){}
+
+ virtual Eigen::Vector3d move_automatic(Eigen::Vector3d current_position) = 0;
+ Eigen::Vector3d move_automatic(Eigen::Vector3d target_position, Eigen::Vector3d current_position);
+
+ virtual void set_target_position(Eigen::Vector3d target_position);
+
+protected:
+ Movement *_movement;
+
+ Eigen::Vector3d _target_position;
+};
+
+#endif