Biorbd Release_1.13.0
Loading...
Searching...
No Matches
FatigueModel.h
1#ifndef BIORBD_MUSCLES_FATIGUE_MODEL_H
2#define BIORBD_MUSCLES_FATIGUE_MODEL_H
3
4#include "biorbdConfig.h"
5
6#include <memory>
7
8#include "MusclesEnums.h"
9#include "Utils/Scalar.h"
10
11namespace BIORBD_NAMESPACE {
12namespace utils {
13class String;
14}
15
16namespace internal_forces {
17namespace muscles {
18class Muscle;
19class StateDynamics;
20class FatigueState;
21
25class BIORBD_API FatigueModel {
26 public:
31 FatigueModel(STATE_FATIGUE_TYPE dynamicFatigueType);
32
37 FatigueModel(const FatigueModel& other);
38
43 FatigueModel(const std::shared_ptr<FatigueModel> other);
44
48 virtual ~FatigueModel() = 0;
49
54 void DeepCopy(const FatigueModel& other);
55
60 virtual void computeTimeDerivativeState(const StateDynamics& emg);
61
62#ifndef BIORBD_USE_CASADI_MATH
68 virtual void setFatigueState(
69 const utils::Scalar& active,
70 const utils::Scalar& fatigued,
71 const utils::Scalar& resting);
72#endif
73
83 const FatigueState& fatigueState() const;
84
85 protected:
86 std::shared_ptr<FatigueState> m_fatigueState;
87};
88
89} // namespace muscles
90} // namespace internal_forces
91} // namespace BIORBD_NAMESPACE
92
93#endif // BIORBD_MUSCLES_FATIGUE_MODEL_H
virtual void setFatigueState(const utils::Scalar &active, const utils::Scalar &fatigued, const utils::Scalar &resting)
Set the fatigue state.
FatigueState & fatigueState()
Return the fatigue state.
void DeepCopy(const FatigueModel &other)
Deep copy of the fatigue model.
FatigueModel(STATE_FATIGUE_TYPE dynamicFatigueType)
Contruct a fatigable muscle model.
virtual void computeTimeDerivativeState(const StateDynamics &emg)
Compute the time derivative state.
std::shared_ptr< FatigueState > m_fatigueState
The fatigue state.
EMG with the capability to compute the time derivative.
Wrapper around the std::string class with augmented functionality.
Definition String.h:18