diff --git a/include/qrw/FakeRobot.hpp b/include/qrw/FakeRobot.hpp index 05d0b2e42e0470b940fd3658a9445f7a54a998f0..e51f6aed47181adef8e71a99811b932d74b3224b 100644 --- a/include/qrw/FakeRobot.hpp +++ b/include/qrw/FakeRobot.hpp @@ -65,6 +65,29 @@ class FakeImu { }; +class FakePowerboard { + public: + //////////////////////////////////////////////////////////////////////////////////////////////// + /// + /// \brief Constructor + /// + //////////////////////////////////////////////////////////////////////////////////////////////// + FakePowerboard() {} + + //////////////////////////////////////////////////////////////////////////////////////////////// + /// + /// \brief Destructor + /// + //////////////////////////////////////////////////////////////////////////////////////////////// + ~FakePowerboard() {} // Empty destructor + + // Fake functions + double GetCurrent() { return 0.0; } + double GetVoltage() { return 0.0; } + double GetEnergy() { return 0.0; } + +}; + class FakeRobot { public: //////////////////////////////////////////////////////////////////////////////////////////////// @@ -72,7 +95,7 @@ class FakeRobot { /// \brief Constructor /// //////////////////////////////////////////////////////////////////////////////////////////////// - FakeRobot() {joints = new FakeJoints(); imu = new FakeImu();} + FakeRobot() {joints = new FakeJoints(); imu = new FakeImu(); powerboard = new FakePowerboard();} //////////////////////////////////////////////////////////////////////////////////////////////// /// @@ -89,6 +112,7 @@ class FakeRobot { FakeJoints* joints = nullptr; FakeImu* imu = nullptr; + FakePowerboard* powerboard = nullptr; };