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

change timeout of rostest

asked 2012-12-20 03:31:02 -0600

msieber gravatar image

I want to test a lot of topics with hztest ros.org/wiki/rostest/Nodes (no Karma no Link) Since all tests are launched in their own environment, it takes more than one hour to complete the testing, and nobody can use the robot. Because of that, I created a modified hztests to check all given topics in one bringup. But when I check more than about 6 topics the time limit is hit and the test fails:

File "/opt/ros/electric/stacks/ros_comm/tools/roslaunch/src/roslaunch/launch.py", line 669, in run_test raise RLTestTimeoutException("test max time allotted")

I successfully changed line 664: timeout_t= time.time()+test.time_limit to timeout_t= time.time()+1000.0

But is there a way to change the time_limit without manipluating ros_comm?

I tried 'rostest mypckg mytest --bare-limit=1000' and also setting a parameter time_limit on the parameter server, but both without success.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
6

answered 2013-02-08 02:17:38 -0600

msieber gravatar image

The parameter is time-limit not time_limit. So it's <test test-name="foo" pkg="foo" type="foo" name="foo" time-limit="1000.0"/>

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-20 03:31:02 -0600

Seen: 2,697 times

Last updated: Feb 08 '13