1import os, dccl, navreport_pb2
3dccl.addProtoIncludePath(os.path.abspath(
"."))
4dccl.addProtoIncludePath(os.path.abspath(
"../../../include"))
6dccl.loadProtoFile(os.path.abspath(
"./navreport.proto"))
9codec.load(
"NavigationReport")
12r_out = navreport_pb2.NavigationReport(x=450, y=550, z=-100, veh_class=navreport_pb2.NavigationReport.AUV, battery_ok=
True)
13encoded_bytes = codec.encode(r_out)
18decoded_msg = codec.decode(encoded_bytes)
The Dynamic CCL enCODer/DECoder. This is the main class you will use to load, encode and decode DCCL ...