Adds skilmanager and spin skill

This commit is contained in:
Rune Harlyk
2025-09-10 15:59:41 +02:00
parent 26c36b8302
commit 3a401abfab
5 changed files with 306 additions and 6 deletions
+27
View File
@@ -0,0 +1,27 @@
#pragma once
#include <kinematics.h>
#include <message_types.h>
#include <peripherals/peripherals.h>
#include <motion_states/state.h>
class Skill {
public:
virtual ~Skill() = default;
virtual const char* getName() const = 0;
virtual void begin(body_state_t& body_state, Peripherals* peripherals) {}
virtual void execute(body_state_t& body_state, MotionState* currentState, Peripherals* peripherals, float dt) = 0;
virtual bool isComplete() const = 0;
virtual void reset() = 0;
virtual MotionState* getRequiredState() = 0;
protected:
bool _isActive = false;
bool _isComplete = false;
};