From b55c7d5725ad0d0e216636781f295d3573d0d09e Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Sun, 31 Dec 2023 08:42:06 +0100 Subject: [PATCH] Extended dummy test --- test/Dummy_test.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/Dummy_test.cc b/test/Dummy_test.cc index dc843bb..3cff9b3 100644 --- a/test/Dummy_test.cc +++ b/test/Dummy_test.cc @@ -2,6 +2,20 @@ #include TEST(Dummy, Foo) { + Motor motorLeft = Motor(); + Motor motorRight = Motor(); + DistanceSensor sensorLeft = DistanceSensor(); + DistanceSensor sensorRight = DisteanceSensor(); + + Placement sensors[] = {Placement(&sensorLeft, -30), + Placement(&sensorRight, 30)}; + Perception *perception = new Perception(sensors); + + DifferentialDrive *propulsion = + new DifferentialDrive(Placement(&motorLeft, Vector3::Left), + Placement(&motorRight, Vector3::Right)); + + Roboid *roboid = new Roboid(perception, propulsion); } #endif