-
 

Package Summary

Tags No category tags.
Version 0.15.3
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/examples.git
VCS Type git
VCS Version humble
Last Updated 2024-11-25
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
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.

Maintainers

  • Shane Loretz
  • Aditya Pande

Authors

  • Aditya Pande
  • Shane Loretz

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.

Examples

check_node_launch_test.py

Usage:

launch_test launch_testing_examples/check_node_launch_test.py

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 20 seconds.

check_multiple_nodes_launch_test.py

launch_test test/examples/check_multiple_nodes_launch_test.py

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

record_rosbag_launch_test.py

launch_test test/examples/record_rosbag_launch_test.py

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.

check_msgs_launch_test.py

Usage:

launch_test launch_testing_examples/check_msgs_launch_test.py

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.

set_param_launch_test.py

Usage:

launch_test launch_testing_examples/set_param_launch_test.py

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

hello_world_launch_test.py

Usage:

launch_test launch_testing_examples/hello_world_launch_test.py

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

Changelog for package launch_testing_examples

0.15.3 (2024-11-25)

  • Cleanup the launch_testing_examples. (#374) (#393)
  • Contributors: mergify[bot]

0.15.2 (2024-07-26)

0.15.1 (2022-11-07)

0.15.0 (2022-03-01)

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

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged launch_testing_examples at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 0.18.2
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/examples.git
VCS Type git
VCS Version iron
Last Updated 2024-11-08
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
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.

Maintainers

  • Aditya Pande
  • Alejandro Hernandez Cordero

Authors

  • Aditya Pande
  • Shane Loretz

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.

Examples

check_node_launch_test.py

Usage:

launch_test launch_testing_examples/check_node_launch_test.py

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 20 seconds.

check_multiple_nodes_launch_test.py

launch_test test/examples/check_multiple_nodes_launch_test.py

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

record_rosbag_launch_test.py

launch_test test/examples/record_rosbag_launch_test.py

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.

check_msgs_launch_test.py

Usage:

launch_test launch_testing_examples/check_msgs_launch_test.py

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.

set_param_launch_test.py

Usage:

launch_test launch_testing_examples/set_param_launch_test.py

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

hello_world_launch_test.py

Usage:

launch_test launch_testing_examples/hello_world_launch_test.py

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

Changelog for package launch_testing_examples

0.18.2 (2024-11-08)

  • Cleanup the launch_testing_examples. (#394)
  • Contributors: Chris Lalancette, Tomoya Fujita

0.18.1 (2024-07-10)

0.18.0 (2023-04-11)

  • Enable document generation using rosdoc2 for ament_python pkgs (#357)
  • Contributors: Yadu

0.17.1 (2023-03-01)

  • increase the timeout for window platform to avoid flaky test (#355)
  • Contributors: Chen Lihui

0.17.0 (2023-02-14)

  • [rolling] Update maintainers - 2022-11-07 (#352)
  • Contributors: Audrow Nash

0.16.2 (2022-11-02)

  • Increase the WaitForNode timeout. (#350)
  • Contributors: Chris Lalancette

0.16.1 (2022-09-13)

0.16.0 (2022-04-29)

0.15.0 (2022-03-01)

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

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged launch_testing_examples at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 0.19.4
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/examples.git
VCS Type git
VCS Version jazzy
Last Updated 2024-06-27
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
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.

Maintainers

  • Aditya Pande
  • Alejandro Hernandez Cordero

Authors

  • Aditya Pande
  • Shane Loretz

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.

Examples

check_node_launch_test.py

Usage:

launch_test launch_testing_examples/check_node_launch_test.py

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 20 seconds.

check_multiple_nodes_launch_test.py

launch_test test/examples/check_multiple_nodes_launch_test.py

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

record_rosbag_launch_test.py

launch_test test/examples/record_rosbag_launch_test.py

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.

check_msgs_launch_test.py

Usage:

launch_test launch_testing_examples/check_msgs_launch_test.py

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.

set_param_launch_test.py

Usage:

launch_test launch_testing_examples/set_param_launch_test.py

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

hello_world_launch_test.py

Usage:

launch_test launch_testing_examples/hello_world_launch_test.py

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

Changelog for package launch_testing_examples

0.19.4 (2024-06-27)

0.19.3 (2024-04-16)

0.19.2 (2024-03-28)

  • Cleanup the launch_testing_examples. (#374)
  • Refactor WaitForNodes class. (#373)
  • Contributors: Chris Lalancette

0.19.1 (2023-07-11)

0.19.0 (2023-04-27)

0.18.0 (2023-04-11)

  • Enable document generation using rosdoc2 for ament_python pkgs (#357)
  • Contributors: Yadu

0.17.1 (2023-03-01)

  • increase the timeout for window platform to avoid flaky test (#355)
  • Contributors: Chen Lihui

0.17.0 (2023-02-14)

  • [rolling] Update maintainers - 2022-11-07 (#352)
  • Contributors: Audrow Nash

0.16.2 (2022-11-02)

  • Increase the WaitForNode timeout. (#350)
  • Contributors: Chris Lalancette

0.16.1 (2022-09-13)

0.16.0 (2022-04-29)

0.15.0 (2022-03-01)

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

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged launch_testing_examples at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 0.20.3
License Apache License 2.0
Build type AMENT_PYTHON
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/examples.git
VCS Type git
VCS Version rolling
Last Updated 2024-11-20
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
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.

Maintainers

  • Aditya Pande
  • Alejandro Hernandez Cordero

Authors

  • Aditya Pande
  • Shane Loretz

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.

Examples

check_node_launch_test.py

Usage:

launch_test launch_testing_examples/check_node_launch_test.py

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 20 seconds.

check_multiple_nodes_launch_test.py

launch_test test/examples/check_multiple_nodes_launch_test.py

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

record_rosbag_launch_test.py

launch_test test/examples/record_rosbag_launch_test.py

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.

check_msgs_launch_test.py

Usage:

launch_test launch_testing_examples/check_msgs_launch_test.py

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.

set_param_launch_test.py

Usage:

launch_test launch_testing_examples/set_param_launch_test.py

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

hello_world_launch_test.py

Usage:

launch_test launch_testing_examples/hello_world_launch_test.py

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

Changelog for package launch_testing_examples

0.20.3 (2024-11-20)

0.20.2 (2024-07-29)

0.20.1 (2024-06-17)

0.20.0 (2024-04-26)

0.19.3 (2024-04-16)

0.19.2 (2024-03-28)

  • Cleanup the launch_testing_examples. (#374)
  • Refactor WaitForNodes class. (#373)
  • Contributors: Chris Lalancette

0.19.1 (2023-07-11)

0.19.0 (2023-04-27)

0.18.0 (2023-04-11)

  • Enable document generation using rosdoc2 for ament_python pkgs (#357)
  • Contributors: Yadu

0.17.1 (2023-03-01)

  • increase the timeout for window platform to avoid flaky test (#355)
  • Contributors: Chen Lihui

0.17.0 (2023-02-14)

  • [rolling] Update maintainers - 2022-11-07 (#352)
  • Contributors: Audrow Nash

0.16.2 (2022-11-02)

  • Increase the WaitForNode timeout. (#350)
  • Contributors: Chris Lalancette

0.16.1 (2022-09-13)

0.16.0 (2022-04-29)

0.15.0 (2022-03-01)

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

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged launch_testing_examples at Robotics Stack Exchange