Tools: added --enable-networking and --enable-networking-tests to sim_vehicle.py

This commit is contained in:
Andrew Tridgell 2023-11-13 12:36:21 +11:00 committed by Tom Pittenger
parent c4cf3268cb
commit bbe7ad484e

View File

@ -411,6 +411,12 @@ def do_build(opts, frame_options):
if opts.enable_dds:
cmd_configure.append("--enable-dds")
if opts.enable_networking:
cmd_configure.append("--enable-networking")
if opts.enable_networking_tests:
cmd_configure.append("--enable-networking-tests")
pieces = [shlex.split(x) for x in opts.waf_configure_args]
for piece in pieces:
cmd_configure.extend(piece)
@ -1326,6 +1332,10 @@ group_sim.add_option("", "--sim-address",
help="IP address of the simulator. Defaults to localhost")
group_sim.add_option("--enable-dds", action='store_true',
help="Enable the dds client to connect with ROS2/DDS")
group_sim.add_option("--enable-networking", action='store_true',
help="Enable networking")
group_sim.add_option("--enable-networking-tests", action='store_true',
help="Enable networking tests")
parser.add_option_group(group_sim)