MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / main

Function main

PythonAPI/util/config.py:116–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114
115
116def main():
117 argparser = argparse.ArgumentParser(
118 description=__doc__)
119 argparser.add_argument(
120 '--host',
121 metavar='H',
122 default='localhost',
123 help='IP of the host CARLA Simulator (default: localhost)')
124 argparser.add_argument(
125 '-p', '--port',
126 metavar='P',
127 default=2000,
128 type=int,
129 help='TCP port of CARLA Simulator (default: 2000)')
130 argparser.add_argument(
131 '-d', '--default',
132 action='store_true',
133 help='set default settings')
134 argparser.add_argument(
135 '-m', '--map',
136 help='load a new map, use --list to see available maps')
137 argparser.add_argument(
138 '-r', '--reload-map',
139 action='store_true',
140 help='reload current map')
141 argparser.add_argument(
142 '--delta-seconds',
143 metavar='S',
144 type=float,
145 help='set fixed delta seconds, zero for variable frame rate')
146 argparser.add_argument(
147 '--fps',
148 metavar='N',
149 type=float,
150 help='set fixed FPS, zero for variable FPS (similar to --delta-seconds)')
151 argparser.add_argument(
152 '--rendering',
153 action='store_true',
154 help='enable rendering')
155 argparser.add_argument(
156 '--no-rendering',
157 action='store_true',
158 help='disable rendering')
159 argparser.add_argument(
160 '--no-sync',
161 action='store_true',
162 help='disable synchronous mode')
163 argparser.add_argument(
164 '--weather',
165 help='set weather preset, use --list to see available presets')
166 argparser.add_argument(
167 '-i', '--inspect',
168 action='store_true',
169 help='inspect simulation')
170 argparser.add_argument(
171 '-l', '--list',
172 action='store_true',
173 help='list available options')

Callers 1

config.pyFile · 0.70

Calls 6

set_timeoutMethod · 0.95
inspectFunction · 0.85
list_optionsFunction · 0.85
list_blueprintsFunction · 0.85
readMethod · 0.80
ClientMethod · 0.45

Tested by

no test coverage detected