40 import libmultisense
as lms
43 channel_config = lms.ChannelConfig()
44 channel_config.ip_address = args.ip_address
45 channel_config.mtu = args.mtu
47 with lms.Channel.create(channel_config)
as channel:
49 print(
"Invalid channel")
52 info = channel.get_info();
54 print(
"Firmware build date : ", info.version.firmware_build_date)
55 print(
"Firmware version : ", info.version.firmware_version.to_string())
56 print(
"Hardware version : ", hex(info.version.hardware_version))
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())