41 import libmultisense
as lms
44 channel_config = lms.ChannelConfig()
45 channel_config.ip_address = args.ip_address
46 channel_config.mtu = args.mtu
48 with lms.Channel.create(channel_config)
as channel:
50 print(
"Invalid channel")
53 print(json.dumps(channel.get_info().device.json,
56 separators=(
',',
': ')))
58 if __name__ ==
'__main__':
59 parser = argparse.ArgumentParser(
"LibMultiSense save image utility")
60 parser.add_argument(
"-a",
"--ip_address", default=
"10.66.171.21", help=
"The IPv4 address of the MultiSense.")
61 parser.add_argument(
"-m",
"--mtu", type=int, default=1500, help=
"The MTU to use to communicate with the camera.")
62 main(parser.parse_args())