Skip to content

Commit 418e959

Browse files
committed
Csv chart and default world
1 parent 4712ab2 commit 418e959

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/sam_bot_nav2_gz/test/test_follow_waypoints.launch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def merge_ros_params_files(source, override, destination):
4747
@launch_testing.markers.keep_alive
4848
def generate_test_description():
4949
try:
50-
world = get_artefacts_param("launch", "world")
50+
world = get_artefacts_param("launch", "world", default="empty.sdf")
5151
except FileNotFoundError:
52-
world = "empty.world"
52+
world = "empty.sdf"
5353

5454
run_headless = LaunchConfiguration("run_headless")
5555
source_params_file = "src/sam_bot_nav2_gz/config/nav2_params.yaml"
@@ -167,6 +167,7 @@ def test_exit_code(self, rosbag_filepath):
167167
"/odom.pose.pose.position.y",
168168
field_unit="m",
169169
chart_name="odometry_position",
170+
output_format="csv"
170171
)
171172
image_topics.extract_camera_image(rosbag_filepath, "/sky_cam")
172173
image_topics.extract_video(rosbag_filepath, "/sky_cam", "output/sky_cam.webm")

src/sam_bot_nav2_gz/test/test_reach_goal.launch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@launch_testing.markers.keep_alive
2020
def generate_test_description():
2121
try:
22-
world = get_artefacts_param("launch", "world")
22+
world = get_artefacts_param("launch", "world", default="empty.sdf")
2323
except FileNotFoundError:
2424
world = "empty.sdf"
2525

@@ -120,13 +120,13 @@ def test_reached_goal(self, proc_output):
120120
@launch_testing.post_shutdown_test()
121121
class TestProcOutputAfterShutdown(unittest.TestCase):
122122
def test_exit_code(self, rosbag_filepath):
123-
print(rosbag_filepath)
124123
make_chart(
125124
rosbag_filepath,
126125
"/odom.pose.pose.position.x",
127126
"/odom.pose.pose.position.y",
128127
field_unit="m",
129128
chart_name="odometry_position",
129+
output_format="csv"
130130
)
131131
image_topics.extract_camera_image(rosbag_filepath, "/sky_cam")
132132
image_topics.extract_video(rosbag_filepath, "/sky_cam", "output/sky_cam.webm")

0 commit comments

Comments
 (0)