ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

shylent's profile - activity

2019-06-27 18:42:27 -0600 received badge  Famous Question (source)
2019-06-27 18:42:27 -0600 received badge  Notable Question (source)
2019-03-05 14:51:12 -0600 marked best answer Dealing with sleeps in rostest

I am trying to use rostest (coupled with gtest) to do some black box testing of our ROS nodes. So, naturally, if I am to test some node, the launch file for rostest will look like this:

<launch>
  <node (start the node under test here) ... ></node>
  <test (start the node, that will call the other node's public interfaces) ...></test>
</launch>

Naturally, the node under test might have some sleeps in it. After all, most of the time you only have to do things at some predefined rate. Of course, waiting for those sleeps to pass will introduce delays in the test. Those delays might contribute significantly to the total running time of the test suite. Unless something is done.

Is there any universal approach to this problem? One thing I can think of is using /use_sim_time parameter in the launch file and writing my own "time server" (should be trivial), that publishes "accelerated time" to the /clock topic. This might help with the delays a bit, but it will, obviously, not eliminate them completely.

Any other ideas? This seems like a fairly common problem one might encounter while performing black box testing.

2018-09-19 12:33:08 -0600 received badge  Popular Question (source)
2018-09-11 03:54:33 -0600 received badge  Enthusiast
2018-09-08 15:47:29 -0600 asked a question Is it safe to call a service in a separate thread

Is it safe to call a service in a separate thread Is it safe to call a service (ServiceClient::call) in a thread, that i

2018-06-26 13:23:48 -0600 received badge  Student (source)
2018-06-26 13:23:23 -0600 received badge  Famous Question (source)
2018-06-04 12:22:26 -0600 received badge  Notable Question (source)
2018-06-04 12:22:26 -0600 received badge  Popular Question (source)
2018-01-24 05:26:59 -0600 received badge  Supporter (source)
2018-01-23 15:50:51 -0600 asked a question Dealing with sleeps in rostest

Dealing with sleeps in rostest I am trying to use rostest (coupled with gtest) to do some black box testing of our ROS n