Package Summary

Tags No category tags.
Version 0.14.0
License Apache License 2.0

Repository Summary

Checkout URI
VCS Type git
VCS Version master
Last Updated 2022-01-14
CI status No Continuous Integration
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Examples of simple launch tests

Additional Links

No additional links.


  • Shane Loretz
  • Aditya Pande


  • Aditya Pande

Launch testing examples

This package contains simple use cases for the launch and launch_testing packages. These are designed to help beginners get started with these packages and help them understand the concepts.



launch_test launch_testing_examples/

There might be situations where nodes, once launched, take some time to actually start and we need to wait for the node to start to perform some action. We can simulate this using launch.actions.TimerAction. This example shows one way to detect when a node has been launched. We delay the launch by 5 seconds, and wait for the node to start with a timeout of 8 seconds.

launch_test test/examples/

This test launches multiple nodes, and checks if they were launched successfully using the WaitForNodes utility.

launch_test test/examples/

This test launches a talker node, records the topics to a rosbag and makes sure that the messages were recorded successfully, then deletes the bag file.


launch_test launch_testing_examples/

Consider a problem statement where you need to launch a node and check if messages are published on a particular topic. This example demonstrates how to do that, using a talker node. It uses the Event object to end the test as soon as the first message is received on the chatter topic, with a timeout of 5 seconds.


launch_test launch_testing_examples/

This example demonstrates how to launch a node, set a parameter in it and check if that was successful.


launch_test launch_testing_examples/

This test is a simple example on how to use the launch_testing.

It launches a process and asserts that it prints "hello_world" to stdout using proc_output.assertWaitFor(). Finally, it checks if the process exits normally (zero exit code).

The @launch_testing.markers.keep_alive decorator ensures that the launch process stays alive long enough for the tests to run.


Changelog for package launch_testing_examples

0.14.0 (2022-01-14)

  • Readded WaitForTopics utility (#333)
  • Final batch of examples (#327)
  • Update maintainers to Aditya Pande and Shane Loretz (#332)
  • Updated maintainers (#329)
  • Contributors: Aditya Pande, Audrow Nash

0.13.0 (2021-10-18)

  • Reverted WaitForTopics utility usage (#326)
  • Moved examples (#324)
  • Contributors: Aditya Pande

0.12.0 (2021-08-05)

0.11.2 (2021-04-26)

0.11.1 (2021-04-12)

0.11.0 (2021-04-06)

0.10.3 (2021-03-18)

0.10.2 (2021-01-25)

0.10.1 (2020-12-10)

0.10.0 (2020-09-21)

0.9.2 (2020-06-01)

0.9.1 (2020-05-26)

0.9.0 (2020-04-30)

0.8.2 (2019-11-19)

0.8.1 (2019-10-24)

0.8.0 (2019-09-26)

0.7.3 (2019-05-29)

0.7.2 (2019-05-20)

0.7.1 (2019-05-08)

0.7.0 (2019-04-14)

0.6.2 (2019-02-08)

0.6.1 (2018-12-07)

0.6.0 (2018-11-20)

0.5.1 (2018-06-27)

0.5.0 (2018-06-26)

0.4.0 (2017-12-08)

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

No launch files found


No message files found.


No service files found


No plugins found.

Recent questions tagged launch_testing_examples at