CARLA
Loading...
Searching...
No Matches
test_imu_compass.cpp File Reference
#include "test.h"
#include <carla/ros2/publishers/ImuMath.h>
#include <cmath>

Go to the source code of this file.

Functions

 TEST (ImuMath, accel_mirrors_y_only)
 TEST (ImuMath, east_is_zero_yaw)
 TEST (ImuMath, gyro_left_turn_yields_positive_ros_yaw_rate)
 TEST (ImuMath, gyro_negates_x_and_z_keeps_y)
 TEST (ImuMath, is_not_the_regressed_pi_over_four)
 TEST (ImuMath, north_is_pi_over_two)
 TEST (ImuMath, south_is_negative_pi_over_two)
 TEST (ImuMath, west_is_pi)

Function Documentation

◆ TEST() [1/8]

TEST ( ImuMath ,
accel_mirrors_y_only  )

Definition at line 69 of file test_imu_compass.cpp.

References carla::ros2::AccelToRos(), and TEST().

◆ TEST() [2/8]

TEST ( ImuMath ,
east_is_zero_yaw  )

Definition at line 37 of file test_imu_compass.cpp.

References carla::ros2::OrientationFromCompass(), and TEST().

◆ TEST() [3/8]

TEST ( ImuMath ,
gyro_left_turn_yields_positive_ros_yaw_rate  )

Definition at line 85 of file test_imu_compass.cpp.

References carla::ros2::GyroToRos(), and TEST().

◆ TEST() [4/8]

TEST ( ImuMath ,
gyro_negates_x_and_z_keeps_y  )

Definition at line 77 of file test_imu_compass.cpp.

References carla::ros2::GyroToRos(), and TEST().

◆ TEST() [5/8]

TEST ( ImuMath ,
is_not_the_regressed_pi_over_four  )

Definition at line 92 of file test_imu_compass.cpp.

References carla::ros2::OrientationFromCompass(), and TEST().

◆ TEST() [6/8]

TEST ( ImuMath ,
north_is_pi_over_two  )

Definition at line 25 of file test_imu_compass.cpp.

References carla::ros2::OrientationFromCompass(), and TEST().

◆ TEST() [7/8]

TEST ( ImuMath ,
south_is_negative_pi_over_two  )

Definition at line 48 of file test_imu_compass.cpp.

References carla::ros2::OrientationFromCompass(), and TEST().

◆ TEST() [8/8]

TEST ( ImuMath ,
west_is_pi  )

Definition at line 57 of file test_imu_compass.cpp.

References carla::ros2::OrientationFromCompass(), and TEST().