mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
autotest: Add option to enable dds
* Disabled by default Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com> Co-authored-by: Arsh Pratap <arshpratapofficial@gmail.com> Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
This commit is contained in:
parent
c7cac9abae
commit
d1639f5d58
@ -408,6 +408,9 @@ def do_build(opts, frame_options):
|
|||||||
for nv in opts.define:
|
for nv in opts.define:
|
||||||
cmd_configure.append("--define=%s" % nv)
|
cmd_configure.append("--define=%s" % nv)
|
||||||
|
|
||||||
|
if opts.enable_dds:
|
||||||
|
cmd_configure.append("--enable-dds")
|
||||||
|
|
||||||
pieces = [shlex.split(x) for x in opts.waf_configure_args]
|
pieces = [shlex.split(x) for x in opts.waf_configure_args]
|
||||||
for piece in pieces:
|
for piece in pieces:
|
||||||
cmd_configure.extend(piece)
|
cmd_configure.extend(piece)
|
||||||
@ -1281,6 +1284,9 @@ group_sim.add_option("", "--sim-address",
|
|||||||
type=str,
|
type=str,
|
||||||
default="127.0.0.1",
|
default="127.0.0.1",
|
||||||
help="IP address of the simulator. Defaults to localhost")
|
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")
|
||||||
|
|
||||||
parser.add_option_group(group_sim)
|
parser.add_option_group(group_sim)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user