Exemplo n.º 1
0
Arquivo: set.py Projeto: 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')
Exemplo n.º 2
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')
Exemplo n.º 3
0
def add_controller_mgr_parsers(parser):
    """Parser arguments to get controller manager node name, defaults to /controller_manager."""
    arg = parser.add_argument(
        '-c', '--controller-manager', help='Name of the controller manager ROS node',
        default='/controller_manager', required=False)
    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')
Exemplo n.º 4
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')
Exemplo n.º 5
0
Arquivo: set.py Projeto: 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')
Exemplo n.º 6
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('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")
Exemplo n.º 7
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('--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')
Exemplo n.º 8
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.')
Exemplo n.º 9
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')
Exemplo n.º 10
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()