Functions | |
| void | compareTestMsg (const ignition::msgs::Header &_msg) |
| Compare a message with the populated for testing. More... | |
| void | compareTestMsg (const ignition::msgs::Image &_msg) |
| Compare a message with the populated for testing. More... | |
| void | compareTestMsg (const sensor_msgs::Image &_msg) |
| Compare a message with the populated for testing. More... | |
| void | compareTestMsg (const std_msgs::Header &_msg) |
| Compare a message with the populated for testing. More... | |
| void | createTestMsg (ignition::msgs::Header &_msg) |
| Ignition::msgs test utils. More... | |
| void | createTestMsg (ignition::msgs::Image &_msg) |
| Create a message used for testing. More... | |
| void | createTestMsg (sensor_msgs::Image &_msg) |
| Create a message used for testing. More... | |
| void | createTestMsg (std_msgs::Header &_msg) |
| ROS test utils. More... | |
| template<class Rep , class Period > | |
| void | waitUntilBoolVar (bool &_boolVar, const std::chrono::duration< Rep, Period > &_sleepEach, const int _retries) |
| Wait until a boolean variable is set to true for a given number of times. More... | |
| template<class Rep , class Period > | |
| void | waitUntilBoolVarAndSpin (bool &_boolVar, const std::chrono::duration< Rep, Period > &_sleepEach, const int _retries) |
| Wait until a boolean variable is set to true for a given number of times. This function calls ros::spinOnce each iteration. More... | |
| void ros_ign_image::testing::compareTestMsg | ( | const ignition::msgs::Header & | _msg | ) |
Compare a message with the populated for testing.
| [in] | _msg | The message to compare. |
Definition at line 159 of file test_utils.h.
| void ros_ign_image::testing::compareTestMsg | ( | const ignition::msgs::Image & | _msg | ) |
Compare a message with the populated for testing.
| [in] | _msg | The message to compare. |
Definition at line 201 of file test_utils.h.
| void ros_ign_image::testing::compareTestMsg | ( | const sensor_msgs::Image & | _msg | ) |
Compare a message with the populated for testing.
| [in] | _msg | The message to compare. |
Definition at line 126 of file test_utils.h.
| void ros_ign_image::testing::compareTestMsg | ( | const std_msgs::Header & | _msg | ) |
Compare a message with the populated for testing.
| [in] | _msg | The message to compare. |
Definition at line 97 of file test_utils.h.
| void ros_ign_image::testing::createTestMsg | ( | ignition::msgs::Header & | _msg | ) |
Ignition::msgs test utils.
Create a message used for testing.
| [out] | _msg | The message populated. |
Definition at line 145 of file test_utils.h.
| void ros_ign_image::testing::createTestMsg | ( | ignition::msgs::Image & | _msg | ) |
Create a message used for testing.
| [out] | _msg | The message populated. |
Definition at line 186 of file test_utils.h.
| void ros_ign_image::testing::createTestMsg | ( | sensor_msgs::Image & | _msg | ) |
Create a message used for testing.
| [out] | _msg | The message populated. |
Definition at line 110 of file test_utils.h.
| void ros_ign_image::testing::createTestMsg | ( | std_msgs::Header & | _msg | ) |
ROS test utils.
Create a message used for testing.
| [out] | _msg | The message populated. |
Definition at line 87 of file test_utils.h.
| void ros_ign_image::testing::waitUntilBoolVar | ( | bool & | _boolVar, |
| const std::chrono::duration< Rep, Period > & | _sleepEach, | ||
| const int | _retries | ||
| ) |
Wait until a boolean variable is set to true for a given number of times.
| [in | out] _boolVar The bool variable. | |
| [in] | _sleepEach | Time duration to wait between each retry. |
| [in] | _retries | The number of retries. |
E.g.: using namespace std::chrono_literals; waitUntilBoolVar(myVar, 1ms, 10);
Definition at line 44 of file test_utils.h.
| void ros_ign_image::testing::waitUntilBoolVarAndSpin | ( | bool & | _boolVar, |
| const std::chrono::duration< Rep, Period > & | _sleepEach, | ||
| const int | _retries | ||
| ) |
Wait until a boolean variable is set to true for a given number of times. This function calls ros::spinOnce each iteration.
| [in | out] _boolVar The bool variable. | |
| [in] | _sleepEach | Time duration to wait between each retry. |
| [in] | _retries | The number of retries. |
E.g.: using namespace std::chrono_literals; waitUntilBoolVar(myVar, 1ms, 10);
Definition at line 67 of file test_utils.h.