-
-
Notifications
You must be signed in to change notification settings - Fork 19
(deprecated) Sensor Message Interface
Hyunseok edited this page Jul 8, 2021
·
1 revision
※ If you want custom proto message, follow the step from 'Download and build'.
$ git clone https://github.com/protobuf-net/protobuf-net.git
$ cd protobuf-net/src
$ dotnet restore
$ dotnet build -c Release
※ ignore build failed error
※ Check if 'protogen' file is generated properly at "./protobuf-net/src/protogen/bin/Release/netcoreapp3.0/"
※ Edit the path for 'PROTOGEN and 'PROTO_MSGS_PATH' variable it before run generation script. The path must be absolute. → (./CLOiSim/Assets/Scripts/gen_proto_code.sh) refer to below script
$ cd unity/CLOiSim/Assets/Scripts/Tools
$ ./gen_proto_code.sh
#!/bin/bash
TARGET_PATH=$1
if [ -z ${TARGET_PATH} ]; then
TARGET_PATH="./ProtobufMessages"
fi
## 1. check and edit here
## set the location of protogen in absolute path
PROTOGEN="../../../../protobuf-net/src/protogen/bin/Release/netcoreapp3.0/protoge"
## 2. check and edit here
## set the location of protobuf messages in absolute path
PROTO_MSGS_PATH="../../../../sim-device/driver_sim/msgs/"
eval "$PROTOGEN -I$PROTO_MSGS_PATH --csharp_out=$TARGET_PATH *.proto"
Copyright © 2020 LG Electronics Inc.
Build guide is only for developer.