Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
transformations_test.cpp File Reference
#include "common_lib/maths/transformations.hpp"
#include <gtest/gtest.h>
#include <random>
Include dependency graph for transformations_test.cpp:

Go to the source code of this file.

Functions

int generate_random_integer (const int a, const int b)
 
double generate_random_double (const double a, const double b)
 
 TEST (TransformGlobalToLocal, TestCase1)
 Trivial scenario of transformation from global to local coordinates with no landmarks and trivial state.
 
 TEST (TransformGlobalToLocal, TestCase2)
 Trivial scenario of transformation from global to local coordinates with no landmarks and non trivial state.
 
 TEST (TransformGlobalToLocal, TestCase3)
 test transformation from global to local coordinates with trivial state
 
 TEST (TransformGlobalToLocal, TestCase4)
 test transformation from global to local coordinates
 
 TEST (TransformLocalToGlobal, TestCase1)
 Trivial scenario of transformation from local to global coordinates with no landmarks and trivial state.
 
 TEST (TransformLocalToGlobal, TestCase2)
 Test with no landmarks and non trivial state.
 
 TEST (TransformLocalToGlobal, TestCase3)
 Test with trivial state and some landmarks.
 
 TEST (TransformLocalToGlobal, TestCase4)
 Test transformation from local to global coordinates.
 
 TEST (TransformGlobalANDLocal, TestCase1)
 Randomized scenario where coordinates are transformed from global to local and then back to global.
 
 TEST (TransformGlobalANDLocal, TestCase2)
 Randomized scenario where coordinates are transformed from local to global and then back to local.
 

Function Documentation

◆ generate_random_double()

double generate_random_double ( const double  a,
const double  b 
)

Definition at line 16 of file transformations_test.cpp.

Here is the caller graph for this function:

◆ generate_random_integer()

int generate_random_integer ( const int  a,
const int  b 
)

Definition at line 8 of file transformations_test.cpp.

Here is the caller graph for this function:

◆ TEST() [1/10]

TEST ( TransformGlobalANDLocal  ,
TestCase1   
)

Randomized scenario where coordinates are transformed from global to local and then back to global.

Definition at line 151 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [2/10]

TEST ( TransformGlobalANDLocal  ,
TestCase2   
)

Randomized scenario where coordinates are transformed from local to global and then back to local.

Definition at line 180 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [3/10]

TEST ( TransformGlobalToLocal  ,
TestCase1   
)

Trivial scenario of transformation from global to local coordinates with no landmarks and trivial state.

Definition at line 28 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [4/10]

TEST ( TransformGlobalToLocal  ,
TestCase2   
)

Trivial scenario of transformation from global to local coordinates with no landmarks and non trivial state.

Definition at line 41 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [5/10]

TEST ( TransformGlobalToLocal  ,
TestCase3   
)

test transformation from global to local coordinates with trivial state

Definition at line 53 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [6/10]

TEST ( TransformGlobalToLocal  ,
TestCase4   
)

test transformation from global to local coordinates

Definition at line 70 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [7/10]

TEST ( TransformLocalToGlobal  ,
TestCase1   
)

Trivial scenario of transformation from local to global coordinates with no landmarks and trivial state.

Definition at line 90 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [8/10]

TEST ( TransformLocalToGlobal  ,
TestCase2   
)

Test with no landmarks and non trivial state.

Definition at line 102 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [9/10]

TEST ( TransformLocalToGlobal  ,
TestCase3   
)

Test with trivial state and some landmarks.

Definition at line 114 of file transformations_test.cpp.

Here is the call graph for this function:

◆ TEST() [10/10]

TEST ( TransformLocalToGlobal  ,
TestCase4   
)

Test transformation from local to global coordinates.

Definition at line 131 of file transformations_test.cpp.

Here is the call graph for this function: