ROS2: how to add "time-limit" in .py launch file

asked 2018-11-24 00:40:05 -0500

rohit_agrawal1 gravatar image

updated 2018-12-02 16:04:12 -0500

jayess gravatar image

We are trying to make .py lanuch file for ros2 similar to launch file in ros1.

==> In Ros1, file.test

    <test test-name="test_name" pkg="pkg_name" type="test_executable" clear_params="true" time-limit="100.0" />

==> In Ros2,

def generate_launch_description():
    return LaunchDescription([
            package='pkg_name', node_executable='test_executable', output='screen'),

In above, any one assist us as how can we add time-limit="100.0" means testcase should be delay 100 seconds in Ros2?

edit retag flag offensive close merge delete