Add SetVelocity
This commit is contained in:
parent
c94c9e8879
commit
d55e5cbf4a
@ -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; }
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user