This file defines the NERaptorInterfaceTest class.
More...
#include <gtest/gtest.h>
#include <ne_raptor_interface/ne_raptor_interface.hpp>
#include <ne_raptor_interface/test_ne_raptor_interface_listener.hpp>
#include <ne_raptor_interface/test_ne_raptor_interface_talker.hpp>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <fstream>
#include <memory>
#include <thread>
Go to the source code of this file.
|
template<typename T > |
void | wait_for_subscriber (const T &pub_ptr, const uint32_t num_expected_subs=1U, std::chrono::milliseconds match_timeout=std::chrono::seconds{10U}) |
|
template<typename T > |
void | wait_for_publisher (const T &sub_ptr, const uint32_t num_expected_pubs=1U, std::chrono::milliseconds match_timeout=std::chrono::seconds{10U}) |
|
This file defines the NERaptorInterfaceTest class.
- Copyright
- Copyright 2021 The Autoware Foundation
◆ wait_for_publisher()
template<typename T >
void wait_for_publisher |
( |
const T & |
sub_ptr, |
|
|
const uint32_t |
num_expected_pubs = 1U , |
|
|
std::chrono::milliseconds |
match_timeout = std::chrono::seconds{10U} |
|
) |
| |
◆ wait_for_subscriber()
template<typename T >
void wait_for_subscriber |
( |
const T & |
pub_ptr, |
|
|
const uint32_t |
num_expected_subs = 1U , |
|
|
std::chrono::milliseconds |
match_timeout = std::chrono::seconds{10U} |
|
) |
| |
◆ c_accel_limit
const float32_t c_accel_limit = 3.0F |
◆ c_decel_limit
const float32_t c_decel_limit = 3.0F |
◆ c_ecu_build_num
const uint16_t c_ecu_build_num = 0xABCD |
◆ c_front_axle_to_cog
const float32_t c_front_axle_to_cog = 1.5F |
◆ c_max_steer_angle
const float32_t c_max_steer_angle = 500.0F |
◆ c_neg_jerk_limit
const float32_t c_neg_jerk_limit = 9.0F |
◆ c_pos_jerk_limit
const float32_t c_pos_jerk_limit = 9.0F |
◆ c_pub_period
const uint32_t c_pub_period = 100 |
◆ c_rear_axle_to_cog
const float32_t c_rear_axle_to_cog = 0.5F |
◆ c_steer_to_tire_ratio
const float32_t c_steer_to_tire_ratio = 2.0F |
◆ C_TIMEOUT_ITERATIONS
const uint8_t C_TIMEOUT_ITERATIONS = 25 |
◆ C_TIMEOUT_MILLI
const std::chrono::milliseconds C_TIMEOUT_MILLI = std::chrono::milliseconds(c_pub_period) |
◆ C_TIMEOUT_NANO
const std::chrono::nanoseconds C_TIMEOUT_NANO = 1000000000ns |
◆ kNumRollOver
constexpr uint8_t kNumRollOver {0x10} |
|
staticconstexpr |
◆ kNumTests_HLCC
constexpr uint8_t kNumTests_HLCC {8} |
|
staticconstexpr |
◆ kNumTests_HMCR
constexpr uint8_t kNumTests_HMCR {7} |
|
staticconstexpr |
◆ kNumTests_VCC
constexpr uint8_t kNumTests_VCC {12} |
|
staticconstexpr |
◆ kNumTests_VKS
◆ kNumTests_VO
constexpr uint8_t kNumTests_VO {18} |
|
staticconstexpr |
◆ kNumTests_VSC
◆ kNumTests_VSR
◆ kTestInvalid_VKS
constexpr uint8_t kTestInvalid_VKS {1} |
|
staticconstexpr |
◆ kTestInvalid_VSC
constexpr uint8_t kTestInvalid_VSC {14} |
|
staticconstexpr |
◆ kTestInvalid_VSR
constexpr uint8_t kTestInvalid_VSR {1} |
|
staticconstexpr |
◆ kTestValid_VKS
constexpr uint8_t kTestValid_VKS {18} |
|
staticconstexpr |
◆ kTestValid_VSC
constexpr uint8_t kTestValid_VSC {5} |
|
staticconstexpr |
◆ kTestValid_VSR
constexpr uint8_t kTestValid_VSR {4} |
|
staticconstexpr |
◆ SERVICE_TIMEOUT
constexpr uint8_t SERVICE_TIMEOUT = 5 |
|
staticconstexpr |