Add basic ros2tracee
This commit is contained in:
commit
9eb99e7d9d
11 changed files with 204 additions and 0 deletions
16
ros2trace/command/trace.py
Normal file
16
ros2trace/command/trace.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from ros2cli.command import CommandExtension
|
||||
from ros2trace.api import add_trace_arguments
|
||||
from ros2trace.api import init
|
||||
from ros2trace.api import fini
|
||||
|
||||
|
||||
class TraceCommand(CommandExtension):
|
||||
"""Trace ROS."""
|
||||
|
||||
def add_arguments(self, parser, cli_name):
|
||||
add_trace_arguments(parser)
|
||||
|
||||
def main(self, *, parser, args):
|
||||
init(args)
|
||||
fini(args)
|
||||
return 0
|
Loading…
Add table
Add a link
Reference in a new issue