parameters: ()
return_statement: return options
docstring: Parse the controler arguments.
docstring_summary: Parse the controler arguments.
docstring_tokens: Parse the controler arguments .
function: def get_options():
      """Parse the controler arguments."""
      optParser = optparse.OptionParser()
      optParser.add_option("--no-gui", dest="noGUI", action="store_true", default=False,
                           help="runs the command line version of sumo")
      optParser.add_option("--verbose", dest="verbose", action="store_true", default=False,
                           help="prints sumo output in Webots console")
      optParser.add_option("--no-netconvert", dest="noNetconvert", action="store_true", default=False,
                           help="does not run netconvert before launching sumo")
      optParser.add_option("--disable-traffic-lights", dest="disableTrafficLights", action="store_true", default=False,
                           help="disables the update of the traffic lights state in Webots")
      optParser.add_option("--step", type="int", dest="step", default=200, help="specifies the time step of sumo [ms]")
      optParser.add_option("--max-vehicles", type="int", dest="maxVehicles", default=100,
                           help="specifies the maximum vehicles to add on Webots side")
      optParser.add_option("--rotate-wheels", dest="rotateWheels", action="store_true", default=False,
                           help="enables the wheels rotation.")
      optParser.add_option("--radius", type="int", dest="radius", default=-1,
                           help="specifies the visibility radius of the vehicles in meters (-1 means no limit)")
      optParser.add_option("--enable-height", dest="enableHeight", action="store_true", default=False,
                           help="specifies if height information should be extracted from the edge name")
      optParser.add_option("--directory", dest="directory", default="",
                           help="specifies the directory where are located the files defining the network")
      optParser.add_option("--port", type="int", dest="port", default=8873, help="specifies which port to use")
      optParser.add_option("--seed", type="int", dest="seed", default=1,
                           help="specifies the seed of the SUMO random number generator (0 for the '--random' option of SUMO)")
      optParser.add_option("--use-display", dest="useDisplay", action="store_true", default=False,
                           help="displays the gui view of SUMO in a Webots display (only working in gui mode)")
      optParser.add_option("--display-refresh-rate", type="int", dest="displayRefreshRate", default=1000,
                           help="specifies the refresh rate of the SUMO display in Webots")
      optParser.add_option("--display-zoom", type="float", dest="displayZoom", default=1.0,
                           help="specifies the initial zoom of the SUMO display in Webots (100 means no scaling)")
      optParser.add_option("--display-fit-size", dest="displayFitSize", action="store_true", default=False,
                           help="specifies if the image should be resized to fit the SUMO display size or not")
      optParser.add_option("--maximum-lateral-speed", type="float", dest="maximumLateralSpeed", default=2.5,
                           help="specifies the maximal lateral speed of any vehicle in meter per second.")
      optParser.add_option("--maximum-angular-speed", type="float", dest="maximumAngularSpeed", default=3,
                           help="specifies the maximal angular speed of any vehicle in radian per second.")
      optParser.add_option("--lane-change-delay", type="float", dest="laneChangeDelay", default=3,
                           help='specifies the time required to change lane (during this period position in Webots and SUMO may '
                                'not be perfectly synchronized anymore).')
      optParser.add_option("--sumo-arguments", dest="sumoArguments", default="", help="specifies additional SUMO arguments.")
      options, args = optParser.parse_args()
      return options
function_tokens: def get_options ( ) : optParser = optparse . OptionParser ( ) optParser . add_option ( "--no-gui" , dest = "noGUI" , action = "store_true" , default = False , help = "runs the command line version of sumo" ) optParser . add_option ( "--verbose" , dest = "verbose" , action = "store_true" , default = False , help = "prints sumo output in Webots console" ) optParser . add_option ( "--no-netconvert" , dest = "noNetconvert" , action = "store_true" , default = False , help = "does not run netconvert before launching sumo" ) optParser . add_option ( "--disable-traffic-lights" , dest = "disableTrafficLights" , action = "store_true" , default = False , help = "disables the update of the traffic lights state in Webots" ) optParser . add_option ( "--step" , type = "int" , dest = "step" , default = 200 , help = "specifies the time step of sumo [ms]" ) optParser . add_option ( "--max-vehicles" , type = "int" , dest = "maxVehicles" , default = 100 , help = "specifies the maximum vehicles to add on Webots side" ) optParser . add_option ( "--rotate-wheels" , dest = "rotateWheels" , action = "store_true" , default = False , help = "enables the wheels rotation." ) optParser . add_option ( "--radius" , type = "int" , dest = "radius" , default = - 1 , help = "specifies the visibility radius of the vehicles in meters (-1 means no limit)" ) optParser . add_option ( "--enable-height" , dest = "enableHeight" , action = "store_true" , default = False , help = "specifies if height information should be extracted from the edge name" ) optParser . add_option ( "--directory" , dest = "directory" , default = "" , help = "specifies the directory where are located the files defining the network" ) optParser . add_option ( "--port" , type = "int" , dest = "port" , default = 8873 , help = "specifies which port to use" ) optParser . add_option ( "--seed" , type = "int" , dest = "seed" , default = 1 , help = "specifies the seed of the SUMO random number generator (0 for the '--random' option of SUMO)" ) optParser . add_option ( "--use-display" , dest = "useDisplay" , action = "store_true" , default = False , help = "displays the gui view of SUMO in a Webots display (only working in gui mode)" ) optParser . add_option ( "--display-refresh-rate" , type = "int" , dest = "displayRefreshRate" , default = 1000 , help = "specifies the refresh rate of the SUMO display in Webots" ) optParser . add_option ( "--display-zoom" , type = "float" , dest = "displayZoom" , default = 1.0 , help = "specifies the initial zoom of the SUMO display in Webots (100 means no scaling)" ) optParser . add_option ( "--display-fit-size" , dest = "displayFitSize" , action = "store_true" , default = False , help = "specifies if the image should be resized to fit the SUMO display size or not" ) optParser . add_option ( "--maximum-lateral-speed" , type = "float" , dest = "maximumLateralSpeed" , default = 2.5 , help = "specifies the maximal lateral speed of any vehicle in meter per second." ) optParser . add_option ( "--maximum-angular-speed" , type = "float" , dest = "maximumAngularSpeed" , default = 3 , help = "specifies the maximal angular speed of any vehicle in radian per second." ) optParser . add_option ( "--lane-change-delay" , type = "float" , dest = "laneChangeDelay" , default = 3 , help = 'specifies the time required to change lane (during this period position in Webots and SUMO may ' 'not be perfectly synchronized anymore).' ) optParser . add_option ( "--sumo-arguments" , dest = "sumoArguments" , default = "" , help = "specifies additional SUMO arguments." ) options , args = optParser . parse_args ( ) return options