RoboidControl-cpp/test/Dummy_test.cc
2023-12-31 08:42:06 +01:00

22 lines
610 B
C++

#if GTEST
#include <gtest/gtest.h>
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