Skip to content

Commit 916dcb6

Browse files
replace verbose ctx prints with repr(ctx) (#145)
Signed-off-by: Maria Teresa Ortega <teresa.ortega0903@gmail.com>
1 parent b510c3e commit 916dcb6

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

examples/beluga/beluga_benchmark.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ def nominal(ctx):
3434
Args:
3535
ctx: Lambkin context with variant, options, source, and shell access.
3636
"""
37-
print(f"variation: {ctx.variant.sensor_model}, {ctx.variant.num_particles}")
38-
print(f"iteration: {ctx.iteration}")
39-
print(f"clock_rate: {ctx.options.clock_rate}")
40-
print(f"sensor_topic: {ctx.options.sensor_topic}")
41-
print(f"source: {ctx.source}")
42-
print("---")
37+
print(ctx)
4338
ctx.shell.ros2.launch(
4439
ctx.source.path.parent / "beluga.launch.xml",
4540
f"sensor_model:={ctx.variant.sensor_model}",
@@ -49,5 +44,17 @@ def nominal(ctx):
4944
ctx.shell.evo_ape.bag2("output.mcap", save_results="out.zip")
5045

5146

47+
@nominal.input
48+
def dataset(ctx):
49+
"""Return the path to the MCAP dataset used as input for the benchmark."""
50+
return "/mydataset/dataset.mcap"
51+
52+
53+
@nominal.input
54+
def map(ctx):
55+
"""Return the path to the map file used for localization."""
56+
return "my_map.yaml"
57+
58+
5259
if __name__ == "__main__":
5360
nominal()

0 commit comments

Comments
 (0)