Remove run function

This commit is contained in:
Christophe Bedard 2019-06-06 09:31:41 +02:00
parent 8c664e1bc0
commit 87c4a46eae

View file

@ -19,23 +19,3 @@ def get_trace_event_names(trace_directory):
event_names.add(event.name)
return event_names
def run_and_trace(package_name, executable_name, session_name, path):
"""
Setup, start tracing, and run a ROS 2 executable
:param package_name (str): the name of the package
:param executable_name (str): the name of the executable to run
:param session_name (str): the name of the session
:param directory (str): the path of the main directory to write trace data to
"""
# Enable all events
lttng_setup(session_name, path)
lttng_start(session_name)
_run(package_name, executable_name)
lttng_stop(session_name)
lttng_destroy(session_name)
def _run(package_name, executable_name):
subprocess.check_call(['ros2', 'run', package_name, executable_name])