Skip to content

Commit

Permalink
Testing...
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Delicat <[email protected]>
  • Loading branch information
delihus committed Jan 4, 2024
1 parent 7ea5045 commit bc76b8f
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 564 deletions.
2 changes: 1 addition & 1 deletion rosbot_gazebo/launch/simulation.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def generate_launch_description():
[
"'--headless-rendering -s -v 4 -r' if ",
headless,
" else '-r'",
" else '-r -v 4 '",
]
)
gz_args = [headless_cfg, " ", world_cfg]
Expand Down
5 changes: 5 additions & 0 deletions rosbot_gazebo/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@
<exec_depend>ign_ros2_control</exec_depend>

<test_depend>python3-pytest</test_depend>
<test_depend>python3-psutil</test_depend>
<test_depend>launch</test_depend>
<test_depend>launch_ros</test_depend>
<test_depend>launch_pytest</test_depend>
<test_depend>husarion_office_gz</test_depend>
<test_depend>ros_gz_sim</test_depend>
<test_depend>ros_gz_bridge</test_depend>
<test_depend>ign_ros2_control</test_depend>

<test_depend>tf_transformations</test_depend>
<test_depend>python-transforms3d-pip</test_depend>
Expand Down
6 changes: 3 additions & 3 deletions rosbot_gazebo/test/test_diff_drive_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from launch.substitutions import PathJoinSubstitution
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch_testing.actions import ReadyToTest
from launch_testing.util import KeepAliveProc

from test_utils import SimulationTestNode
from test_ign_kill_utils import kill_ign_linux_processes
Expand Down Expand Up @@ -63,7 +62,6 @@ def generate_test_description():
return LaunchDescription(
[
simulation_launch,
KeepAliveProc(),
# Tell launch to start the test
ReadyToTest(),
]
Expand Down Expand Up @@ -105,7 +103,9 @@ def test_diff_drive_simulation():
assert (
node.controller_odom_flag
), "ROSbot does not rotate properly. Check rosbot_base_controller!"
assert node.ekf_odom_flag, "ROSbot does not rotate properly. Check ekf_filter_node!"
assert (
node.ekf_odom_flag
), "ROSbot does not rotate properly. Check ekf_filter_node!"

flag = node.scan_event.wait(timeout=20.0)
assert flag, "ROSbot's lidar does not work properly!"
Expand Down
23 changes: 0 additions & 23 deletions rosbot_gazebo/test/test_flake8.py

This file was deleted.

6 changes: 3 additions & 3 deletions rosbot_gazebo/test/test_mecanum_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from launch.substitutions import PathJoinSubstitution
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch_testing.actions import ReadyToTest
from launch_testing.util import KeepAliveProc

from test_utils import SimulationTestNode
from test_ign_kill_utils import kill_ign_linux_processes
Expand Down Expand Up @@ -64,7 +63,6 @@ def generate_test_description():
return LaunchDescription(
[
simulation_launch,
KeepAliveProc(),
# Tell launch to start the test
ReadyToTest(),
]
Expand Down Expand Up @@ -118,7 +116,9 @@ def test_mecanum_simulation():
assert (
node.controller_odom_flag
), "ROSbot does not rotate properly. Check rosbot_base_controller!"
assert node.ekf_odom_flag, "ROSbot does not rotate properly. Check ekf_filter_node!"
assert (
node.ekf_odom_flag
), "ROSbot does not rotate properly. Check ekf_filter_node!"

flag = node.scan_event.wait(timeout=20.0)
assert flag, "ROSbot's lidar does not work properly!"
Expand Down
126 changes: 0 additions & 126 deletions rosbot_gazebo/test/test_multirobot_diff_drive_simulation.py

This file was deleted.

146 changes: 0 additions & 146 deletions rosbot_gazebo/test/test_multirobot_mecanum_simulation.py

This file was deleted.

Loading

0 comments on commit bc76b8f

Please sign in to comment.