-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from ament_index_python import get_package_share_directory | ||
import launch | ||
from launch import LaunchDescription | ||
from launch.actions import IncludeLaunchDescription | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
import launch_testing | ||
import os | ||
import pytest | ||
|
||
@pytest.mark.rostest | ||
def generate_test_description(): | ||
|
||
launch_desc = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource( | ||
[ | ||
os.path.join(get_package_share_directory("pf_description"), "launch"), | ||
"/pf_bringup.launch.py", | ||
] | ||
) | ||
) | ||
|
||
ready_to_test = launch.actions.TimerAction( | ||
period=5.0, | ||
actions=[launch_testing.actions.ReadyToTest()], | ||
) | ||
|
||
return (LaunchDescription([launch_desc, ready_to_test]), {}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from ament_index_python import get_package_share_directory | ||
import launch | ||
from launch import LaunchDescription | ||
from launch.actions import IncludeLaunchDescription | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
import launch_testing | ||
import os | ||
import pytest | ||
|
||
@pytest.mark.rostest | ||
def generate_test_description(): | ||
|
||
launch_desc = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource( | ||
[ | ||
os.path.join(get_package_share_directory("pf_description"), "launch"), | ||
"/pf_bringup.launch.py", | ||
] | ||
), | ||
launch_arguments = {'scanner': 'r2300'}.items() | ||
) | ||
|
||
ready_to_test = launch.actions.TimerAction( | ||
period=5.0, | ||
actions=[launch_testing.actions.ReadyToTest()], | ||
) | ||
|
||
return (LaunchDescription([launch_desc, ready_to_test]), {}) |