26 lines
695 B
C++
26 lines
695 B
C++
#if GTEST
|
|
#include <gtest/gtest.h>
|
|
|
|
#include "DifferentialDrive.h"
|
|
#include "DistanceSensor.h"
|
|
#include "Roboid.h"
|
|
|
|
TEST(Dummy, Foo) {
|
|
Motor motorLeft = Motor();
|
|
Motor motorRight = Motor();
|
|
|
|
DistanceSensor sensorLeft = DistanceSensor();
|
|
DistanceSensor sensorRight = DistanceSensor();
|
|
|
|
Placement sensors[] = {Placement(&sensorLeft, -30),
|
|
Placement(&sensorRight, 30)};
|
|
Perception *perception = new Perception(sensors);
|
|
|
|
DifferentialDrive *propulsion =
|
|
new DifferentialDrive(Placement(&motorLeft, Vector3(-1, 0, 0)),
|
|
Placement(&motorRight, Vector3(1, 0, 0)));
|
|
|
|
Roboid *roboid = new Roboid(perception, propulsion);
|
|
}
|
|
#endif
|