Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add launch tests (backport #540) #549

Merged
merged 4 commits into from
Jul 31, 2024
Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 30, 2024

The old tests only test the URDF and if the view_robot.launch.py doesn't have a python syntax error and launch_ros does not complain.

The new tests for the main launch file now also check

  • The python syntax is correct
  • robot_state_publisher node is available
  • the controller for this example is active
  • joint_states topic is available and has the correct joints

closes #422

Deactivated tests or other temporary measures: I'll push draft PRs after merging this to not forget that!


This is an automatic backport of pull request #540 done by [Mergify](https://mergify.com).

christophfroehlich and others added 2 commits July 30, 2024 07:15
* Add test for ex1

* Add test for ex2

* Add test for ex3

* Add test for ex4

* Add missing dependency

* Deactivate GUI

* Add test for ex5

* Add act stuff to gitignore

* Deactivate gui in tests

* Reduce update rate to avoid clogging the log

* Use set instead of list

* Add test for ex6

* Fix xacro macros and add gui launch argument

* Add test for example_7

* Add test for example_8

* Add test for example_9

* Add test for example_10

* Add test for example_11

* Add test for example_12

* Add test for example_14

* Update test for example_15

* Add test for example_15 multi_cm

* Add missing dependency

* Add missing dependency for ex4+ex5

* Robustify tests and reuse methos for launch_testing

* Fix dependencies

* Use a set to compare the joint names

* Reorder controller spawners

* Activate assertExitCodes tests

* Deactivate failing tests for example_15

* Increase timeout for example_10

* Add backward_ros everywhere

* Add error output and update includes

* Revert "Activate assertExitCodes tests"

This reverts commit fe28c67.

* Add missing import

* Update ros2_control_demo_testing/package.xml

Co-authored-by: Sai Kishor Kothakota <[email protected]>

* Reuse check_node_running

* Try to robustify example_14 tests

---------

Co-authored-by: Sai Kishor Kothakota <[email protected]>
(cherry picked from commit 0ba16d2)
@christophfroehlich christophfroehlich merged commit dba4aa6 into humble Jul 31, 2024
7 checks passed
@christophfroehlich christophfroehlich deleted the mergify/bp/humble/pr-540 branch July 31, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant