def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     add_component_arguments(parser)
     parser.add_argument(
         '-c',
         '--container-node-name',
         default='standalone_container_' + uuid.uuid4().hex[:12],
         help='Name of the standalone container node to be run')
예제 #2
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     argument = parser.add_argument(
         'package_name',
         nargs='?',
         default=None,
         help='Package name to look for registered components in')
     argument.completer = package_name_completer
예제 #3
0
파일: list.py 프로젝트: hfz-Nick/ROS
 def add_arguments(self, parser, cli_name):  # noqa: D102
     add_arguments(parser)
     parser.add_argument(
         '-a', '--all', action='store_true',
         help='Display all nodes even hidden ones')
     parser.add_argument(
         '-c', '--count-nodes', action='store_true',
         help='Only display the number of nodes discovered')
예제 #4
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     parser.add_argument(
         '-t', '--show-types', action='store_true',
         help='Additionally show the topic type')
     parser.add_argument(
         '-c', '--count-topics', action='store_true',
         help='Only display the number of topics discovered')
예제 #5
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     argument = parser.add_argument('node_name',
                                    help='Node name to request information')
     argument.completer = NodeNameCompleter()
     parser.add_argument(
         '--include-hidden',
         action='store_true',
         help='Display hidden topics, services, and actions as well')
예제 #6
0
파일: set.py 프로젝트: hfz-Nick/ROS
 def add_arguments(self, parser, cli_name):  # noqa: D102
     add_arguments(parser)
     arg = parser.add_argument('node_name', help='Name of the ROS node')
     arg.completer = NodeNameCompleter(
         include_hidden_nodes_key='include_hidden_nodes')
     parser.add_argument('--include-hidden-nodes',
                         action='store_true',
                         help='Consider hidden nodes as well')
     parser.add_argument('transition', help='The lifecycle transition')
예제 #7
0
파일: list.py 프로젝트: codebot/ros2cli
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     argument = parser.add_argument(
         'container_node_name', nargs='?', default=None,
         help='Name of the container node to list components from')
     argument.completer = container_node_name_completer
     parser.add_argument(
         '--containers-only', action='store_true',
         help='List found containers nodes only')
예제 #8
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     argument = parser.add_argument(
         'container_node_name', help='Container node name to unload component from'
     )
     argument.completer = container_node_name_completer
     add_component_arguments(parser)
     parser.add_argument(
         '-q', '--quiet', action='store_true', default=False,
         help='Only print component unique IDs and names'
     )
예제 #9
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     argument = parser.add_argument(
         'container_node_name',
         help='Container node name to unload component from')
     argument.completer = container_node_name_completer
     argument = parser.add_argument(
         'component_uid',
         type=int,
         nargs='+',
         help='Unique ID of the component to be unloaded')
예제 #10
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     parser.add_argument(
         '-t', '--show-types', action='store_true',
         help='Additionally show the service type')
     parser.add_argument(
         '-c', '--count-services', action='store_true',
         help='Only display the number of services discovered')
     parser.add_argument(
         '--include-hidden-services', action='store_true',
         help='Consider hidden services as well')
예제 #11
0
파일: set.py 프로젝트: ros2/ros2cli
 def add_arguments(self, parser, cli_name):  # noqa: D102
     add_arguments(parser)
     arg = parser.add_argument('node_name', help='Name of the ROS node')
     arg.completer = NodeNameCompleter(
         include_hidden_nodes_key='include_hidden_nodes')
     parser.add_argument('--include-hidden-nodes',
                         action='store_true',
                         help='Consider hidden nodes as well')
     arg = parser.add_argument('parameter_name',
                               help='Name of the parameter')
     arg.completer = ParameterNameCompleter()
     parser.add_argument('value', help='Value of the parameter')
예제 #12
0
 def add_arguments(self, parser, cli_name):  # noqa: D102
     add_arguments(parser)
     arg = parser.add_argument(
         'node_name',
         nargs='?',
         help='Name of the ROS node. '
         'If no name is provided, then get the state for all nodes.')
     arg.completer = NodeNameCompleter(
         include_hidden_nodes_key='include_hidden_nodes')
     parser.add_argument('--include-hidden-nodes',
                         action='store_true',
                         help='Consider hidden nodes as well')
예제 #13
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     argument = parser.add_argument(
         'container_node_name', help='Container node name to unload component from'
     )
     argument.completer = container_node_name_completer
     argument = parser.add_argument(
         'component_uid', type=int, nargs='+', help='Unique ID of the component to be unloaded'
     )
     parser.add_argument(
         '-q', '--quiet', action='store_true', default=False,
         help='Only print component unique IDs'
     )
예제 #14
0
파일: load.py 프로젝트: tim-fan/ros2cli
 def add_arguments(self, parser, cli_name):  # noqa: D102
     add_arguments(parser)
     arg = parser.add_argument('node_name', help='Name of the ROS node')
     arg.completer = NodeNameCompleter(
         include_hidden_nodes_key='include_hidden_nodes')
     parser.add_argument('--include-hidden-nodes',
                         action='store_true',
                         help='Consider hidden nodes as well')
     parser.add_argument('parameter_file', help='Parameter file')
     parser.add_argument(
         '--no-use-wildcard',
         action='store_true',
         help="Do not load parameters in the '/**' namespace into the node")
예제 #15
0
파일: list.py 프로젝트: Team488/WindowFrame
 def add_arguments(self, parser, cli_name):  # noqa: D102
     add_arguments(parser)
     arg = parser.add_argument('node_name',
                               nargs='?',
                               help='Name of the ROS node')
     arg.completer = NodeNameCompleter(
         include_hidden_nodes_key='include_hidden_nodes')
     parser.add_argument('--include-hidden-nodes',
                         action='store_true',
                         help='Consider hidden nodes as well')
     parser.add_argument(
         '--param-prefixes',
         nargs='+',
         default=[],
         help='Only list parameters with the provided prefixes')
예제 #16
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     parser.add_argument('-t',
                         '--show-types',
                         action='store_true',
                         help='Additionally show the topic type')
     parser.add_argument(
         '-c',
         '--count-topics',
         action='store_true',
         help='Only display the number of topics discovered')
     # duplicate the following argument from the command for visibility
     parser.add_argument('--include-hidden-topics',
                         action='store_true',
                         help='Consider hidden topics as well')
예제 #17
0
 def add_arguments(self, parser, cli_name):  # noqa: D102
     add_arguments(parser)
     arg = parser.add_argument('node_name', help='Name of the ROS node')
     arg.completer = NodeNameCompleter(
         include_hidden_nodes_key='include_hidden_nodes')
     parser.add_argument('--include-hidden-nodes',
                         action='store_true',
                         help='Consider hidden nodes as well')
     parser.add_argument(
         '--output-dir',
         default='.',
         help='The absolute path were to save the generated file')
     parser.add_argument(
         '--print',
         action='store_true',
         help='Print generated file in terminal rather than saving a file.')
예제 #18
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     argument = parser.add_argument(
         'container_node_name',
         help='Container node name to load component into')
     argument.completer = container_node_name_completer
     argument = parser.add_argument(
         'package_name',
         help='Name of the package where the component is to be found')
     argument.completer = package_with_components_name_completer
     argument = parser.add_argument(
         'plugin_name', help='Type name of the component to be loaded')
     argument.completer = ComponentTypeNameCompleter(
         package_name_key='package_name')
     parser.add_argument('-n',
                         '--node-name',
                         default=None,
                         help='Component node name')
     parser.add_argument('--node-namespace',
                         default=None,
                         help='Component node namespace')
     parser.add_argument('--log-level',
                         default=None,
                         help='Component node log level')
     parser.add_argument(
         '-r',
         '--remap-rule',
         action='append',
         default=None,
         dest='remap_rules',
         help="Component node remapping rules, in the 'from:=to' form")
     parser.add_argument(
         '-p',
         '--parameter',
         action='append',
         default=None,
         dest='parameters',
         help="Component node parameters, in the 'name:=value' form")
     parser.add_argument(
         '-e',
         '--extra-argument',
         action='append',
         default=None,
         dest='extra_arguments',
         help="Extra arguments for the container, in the 'name:=value' form"
     )
예제 #19
0
 def add_arguments(self, parser, cli_name):  # noqa: D102
     add_arguments(parser)
     arg = parser.add_argument(
         'node_name', nargs='?', help='Name of the ROS node')
     arg.completer = NodeNameCompleter(
         include_hidden_nodes_key='include_hidden_nodes')
     parser.add_argument(
         '--filter', nargs=1,
         help=(
             'Only parameters matching the regex expression will be showed.'
             ' Supports `re` regex syntax.'))
     parser.add_argument(
         '--include-hidden-nodes', action='store_true',
         help='Consider hidden nodes as well')
     parser.add_argument(
         '--param-prefixes', nargs='+', default=[],
         help='Only list parameters with the provided prefixes')
     parser.add_argument(
         '--param-type', action='store_true',
         help='Print parameter types with parameter names')
예제 #20
0
    def add_arguments(self, parser, cli_name):  # noqa: D102
        self._subparser = parser

        add_arguments(parser)
        parser.add_argument('-a',
                            '--all',
                            action='store_true',
                            help='recording all topics')
        parser.add_argument('topics', nargs='*', help='topics to be recorded')
        parser.add_argument('-o',
                            '--output',
                            help='destination of the bagfile to create, \
            defaults to a timestamped folder in the current directory')
        parser.add_argument(
            '-s',
            '--storage',
            default='sqlite3',
            help='storage identifier to be used, defaults to "sqlite3"')
        parser.add_argument(
            '-f',
            '--serialization-format',
            default='',
            help=
            'rmw serialization format in which the messages are saved, defaults to the'
            ' rmw currently in use')
        parser.add_argument(
            '--no-discovery',
            action='store_true',
            help=
            'disables topic auto discovery during recording: only topics present at '
            'startup will be recorded')
        parser.add_argument(
            '-p',
            '--polling-interval',
            default=100,
            help=
            'time in ms to wait between querying available topics for recording. It has no '
            'effect if --no-discovery is enabled.')
예제 #21
0
파일: info.py 프로젝트: yechun1/ros2cli
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     argument = parser.add_argument('node_name',
                                    help='Node name to request information')
     argument.completer = NodeNameCompleter()
예제 #22
0
 def add_arguments(self, parser, cli_name):
     add_arguments(parser)
     parser.add_argument(
         'node_name',
         help='Node name to request information')