Add SetVelocity

This commit is contained in:
Pascal Serrarens 2024-04-17 15:23:00 +02:00
parent c94c9e8879
commit d55e5cbf4a
2 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,8 @@ void Propulsion::SetTwistSpeed(Vector2 linear, float yaw) {}
void Propulsion::SetTwistSpeed(Vector3 linear, float yaw, float pitch,
float roll) {}
void Propulsion::SetVelocity(Polar velocity) {}
Polar Propulsion::GetVelocity() { return Polar(0, 0); }
float Propulsion::GetAngularVelocity() { return 0; }

View File

@ -59,6 +59,8 @@ public:
virtual void SetTwistSpeed(Vector3 linear, float yaw = 0.0F,
float pitch = 0.0F, float roll = 0.0F);
virtual void SetVelocity(Polar velocity);
/// @brief Retrieve the current velocity of the roboid
/// @return The velocity in polar coordinates
/// The actual units of the velocity depend on the implementation