gucoordinates
Classes | Namespaces | Macros
GUCoordinatesTests.hpp File Reference
#include <gtest/gtest.h>
#include "fff.h"
#include "../gucoordinates.h"
#include "fakes.h"
#include "custom_fakes.h"
#include <typeinfo>
#include <math.h>
Include dependency graph for GUCoordinatesTests.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CGTEST::GUCoordinatesTests< Class >
 

Namespaces

namespace  CGTEST
 

Macros

#define GU_NAO_V5_TOP_CAMERA   gu_camera_make(6.364, 5.871, 1.2, 47.64, 60.97)
 
#define GU_NAO_V5_BOTTOM_CAMERA   gu_camera_make(1.774, 5.071, 39.7, 47.64, 60.97)
 
#define GU_PEPPER_TOP_CAMERA   gu_camera_make(115.3, 8.68, 0.0, 44.3, 55.2)
 
#define GU_PEPPER_BOTTOM_CAMERA   gu_camera_make(105.15, 9.36, 40.0, 44.3, 55.2)
 
#define GU_NAO_V5_HEAD(p, y)   (gu_camera_pivot) {.pitch = p, .yaw = y, .height = 41.7, .cameras = {GU_NAO_V5_TOP_CAMERA, GU_NAO_V5_BOTTOM_CAMERA}, .numCameras = 2}
 
#define GU_NAO_V5_TOP_CAMERA_INDEX   0
 
#define GU_NAO_V5_BOTTOM_CAMERA_INDEX   1
 
#define GU_PEPPER_HEAD(p, y)   {p, y, 0.0, {GU_PEPPER_TOP_CAMERA, GU_PEPPER_BOTTOM_CAMERA}, 2}
 
#define GU_NAO_V5_ROBOT(hp, hy, x, y, t)   (gu_robot) { .head = { hp, hy, 41.7, {GU_NAO_V5_TOP_CAMERA, GU_NAO_V5_BOTTOM_CAMERA}, 2 }, .position = { { x, y }, t } }
 
#define GU_PEPPER_ROBOT(hp, hy, x, y, t)   (gu_robot) { .head = { hp, hy, 0.0, {GU_PEPPER_TOP_CAMERA, GU_PEPPER_BOTTOM_CAMERA}, 2 }, .position = { { x, y }, t } }
 
#define TEST2_F(testclassname, testname)    TEST_F(testclassname, testname)
 
#define RO3_TEST_F(className)
 
#define RO5_TEST_Fs(className)
 
#define testclassname(className)   className##CPPTests
 
#define equals_reset(strctName)   strctName##_equals_reset();
 
#define equals_func(strctName)   strctName##_equals
 
#define equals_fake(strctName)   strctName##_equals_fake
 

Macro Definition Documentation

◆ equals_fake

#define equals_fake (   strctName)    strctName##_equals_fake

Definition at line 133 of file GUCoordinatesTests.hpp.

◆ equals_func

#define equals_func (   strctName)    strctName##_equals

Definition at line 132 of file GUCoordinatesTests.hpp.

◆ equals_reset

#define equals_reset (   strctName)    strctName##_equals_reset();

Definition at line 131 of file GUCoordinatesTests.hpp.

◆ GU_NAO_V5_BOTTOM_CAMERA

#define GU_NAO_V5_BOTTOM_CAMERA   gu_camera_make(1.774, 5.071, 39.7, 47.64, 60.97)

Definition at line 94 of file GUCoordinatesTests.hpp.

◆ GU_NAO_V5_BOTTOM_CAMERA_INDEX

#define GU_NAO_V5_BOTTOM_CAMERA_INDEX   1

Definition at line 101 of file GUCoordinatesTests.hpp.

◆ GU_NAO_V5_HEAD

#define GU_NAO_V5_HEAD (   p,
 
)    (gu_camera_pivot) {.pitch = p, .yaw = y, .height = 41.7, .cameras = {GU_NAO_V5_TOP_CAMERA, GU_NAO_V5_BOTTOM_CAMERA}, .numCameras = 2}

Definition at line 99 of file GUCoordinatesTests.hpp.

◆ GU_NAO_V5_ROBOT

#define GU_NAO_V5_ROBOT (   hp,
  hy,
  x,
  y,
 
)    (gu_robot) { .head = { hp, hy, 41.7, {GU_NAO_V5_TOP_CAMERA, GU_NAO_V5_BOTTOM_CAMERA}, 2 }, .position = { { x, y }, t } }

Definition at line 105 of file GUCoordinatesTests.hpp.

◆ GU_NAO_V5_TOP_CAMERA

#define GU_NAO_V5_TOP_CAMERA   gu_camera_make(6.364, 5.871, 1.2, 47.64, 60.97)

Definition at line 93 of file GUCoordinatesTests.hpp.

◆ GU_NAO_V5_TOP_CAMERA_INDEX

#define GU_NAO_V5_TOP_CAMERA_INDEX   0

Definition at line 100 of file GUCoordinatesTests.hpp.

◆ GU_PEPPER_BOTTOM_CAMERA

#define GU_PEPPER_BOTTOM_CAMERA   gu_camera_make(105.15, 9.36, 40.0, 44.3, 55.2)

Definition at line 97 of file GUCoordinatesTests.hpp.

◆ GU_PEPPER_HEAD

#define GU_PEPPER_HEAD (   p,
 
)    {p, y, 0.0, {GU_PEPPER_TOP_CAMERA, GU_PEPPER_BOTTOM_CAMERA}, 2}

Definition at line 103 of file GUCoordinatesTests.hpp.

◆ GU_PEPPER_ROBOT

#define GU_PEPPER_ROBOT (   hp,
  hy,
  x,
  y,
 
)    (gu_robot) { .head = { hp, hy, 0.0, {GU_PEPPER_TOP_CAMERA, GU_PEPPER_BOTTOM_CAMERA}, 2 }, .position = { { x, y }, t } }

Definition at line 107 of file GUCoordinatesTests.hpp.

◆ GU_PEPPER_TOP_CAMERA

#define GU_PEPPER_TOP_CAMERA   gu_camera_make(115.3, 8.68, 0.0, 44.3, 55.2)

Definition at line 96 of file GUCoordinatesTests.hpp.

◆ RO3_TEST_F

#define RO3_TEST_F (   className)
Value:
TEST2_F(testclassname(className), RO3) { \
ro3_test(); \
}
#define testclassname(className)
#define TEST2_F(testclassname, testname)

Definition at line 115 of file GUCoordinatesTests.hpp.

◆ RO5_TEST_Fs

#define RO5_TEST_Fs (   className)
Value:
RO3_TEST_F(className) \
TEST2_F(testclassname(className), RO5) { \
ro5_test(); \
}
#define RO3_TEST_F(className)

Definition at line 121 of file GUCoordinatesTests.hpp.

◆ TEST2_F

#define TEST2_F (   testclassname,
  testname 
)     TEST_F(testclassname, testname)

Definition at line 112 of file GUCoordinatesTests.hpp.

◆ testclassname

#define testclassname (   className)    className##CPPTests

Definition at line 130 of file GUCoordinatesTests.hpp.