Skip to content

Commit

Permalink
use toolkit to kill gazebo
Browse files Browse the repository at this point in the history
  • Loading branch information
tomonorman committed Feb 19, 2025
1 parent bdb047f commit 0708135
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sam_bot_nav2_gz/test/test_follow_waypoints.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from artefacts_toolkit.rosbag import rosbag, image_topics
from artefacts_toolkit.chart import make_chart
from artefacts_toolkit.config import get_artefacts_param
from artefacts_toolkit.gazebo import gz


# This function specifies the processes to be run for our test
Expand Down Expand Up @@ -100,6 +101,8 @@ def test_read_stdout(self, proc_output):
class TestProcOutputAfterShutdown(unittest.TestCase):
def test_exit_code(self, rosbag_filepath):
print(rosbag_filepath)
gz.kill_gazebo()

make_chart(
rosbag_filepath,
"/odom.pose.pose.position.x",
Expand Down
2 changes: 2 additions & 0 deletions src/sam_bot_nav2_gz/test/test_reach_goal.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from artefacts_toolkit.rosbag import rosbag, image_topics
from artefacts_toolkit.chart import make_chart
from artefacts_toolkit.config import get_artefacts_param
from artefacts_toolkit.gazebo import gz


# This function specifies the processes to be run for our test
Expand Down Expand Up @@ -102,6 +103,7 @@ def test_read_stdout(self, proc_output):
class TestProcOutputAfterShutdown(unittest.TestCase):
def test_exit_code(self, rosbag_filepath):
print(rosbag_filepath)
gz.kill_gazebo()

make_chart(
rosbag_filepath,
Expand Down

0 comments on commit 0708135

Please sign in to comment.