Skip to content

Commit

Permalink
Generalized files for option and session_name. Integrated a1 with ros…
Browse files Browse the repository at this point in the history
…2_benchmark
  • Loading branch information
alexMarFar committed May 30, 2023
1 parent 130f204 commit 8c10325
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,9 @@ ros2_benchmark_config:
input_data_start_time: -1
input_data_end_time: -1

# Integration with benchmarks
# The option can be with or without the monitor node
option: 'with_monitor_node'
# The session name is overwritten in the launch file
session_name: ""

3 changes: 2 additions & 1 deletion ros2_benchmark/ros2_benchmark/ros2_benchmark_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class ROS2BenchmarkConfig():
'linear_scan_acceptable_frame_rate_drop': float,
'input_data_start_time': float,
'input_data_end_time': float,
'option': str
'option': str,
'session_name': str
}

def __init__(self, config_file_path: str = '', *args, **kw):
Expand Down
6 changes: 3 additions & 3 deletions ros2_benchmark/ros2_benchmark/ros2_benchmark_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def generate_test_description(
]
)

@staticmethod
def generate_test_description_with_nsys(
@classmethod
def generate_test_description_with_nsys(cls,
launch_setup, node_startup_delay: float = 5.0
) -> launch.LaunchDescription:
"""Generate a test launch description with the nsys capability built in."""
Expand All @@ -202,7 +202,7 @@ def generate_test_description_with_nsys(
nodes = launch_args + [OpaqueFunction(function=bound_launch_setup)]

trace = Trace(
session_name="a2_rectify_nvidia",
session_name= cls.config.session_name,
events_ust=[
"robotperf_benchmarks:*",
"ros2_image_pipeline:*",
Expand Down

0 comments on commit 8c10325

Please sign in to comment.