From 55cca93d67ca9ae385e9446f7d92e62808affcd4 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Fri, 8 Dec 2023 09:44:30 +0100 Subject: [PATCH] Made propulsion optional --- Roboid.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Roboid.h b/Roboid.h index 964b125..2ad3d8f 100644 --- a/Roboid.h +++ b/Roboid.h @@ -8,13 +8,13 @@ namespace RoboidControl { /// @brief A Roboid is used to control autonomous robots class Roboid { - public: +public: /// @brief Default constructor for a Roboid Roboid(); /// @brief Creates a Roboid with Perception and Propulsion abilities /// @param perception The Perception implementation to use for this Roboid /// @param propulsion The Propulsion implementation to use for this Roboid - Roboid(Perception* perception, Propulsion* propulsion); + Roboid(Perception *perception, Propulsion *propulsion = nullptr); /// @brief Update the state of the Roboid /// @param currentTimeMs The time in milliseconds when calling this @@ -22,11 +22,11 @@ class Roboid { void Update(float currentTimeMs); /// @brief The Perception module of this Roboid - Perception* perception; + Perception *perception; /// @brief The Propulsion module of this Roboid - Propulsion* propulsion; + Propulsion *propulsion; }; -} // namespace RoboidControl -} // namespace Passer +} // namespace RoboidControl +} // namespace Passer using namespace Passer::RoboidControl; \ No newline at end of file