eCAL and Python #159
-
How to create a simple python / protobuf application ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
These sample should get you started: person_snd: person_rec: The proto files for the samples are located in the
(Source: https://developers.google.com/protocol-buffers/docs/pythontutorial#compiling-your-protocol-buffers) To get started writing .proto files, you may want to look at the proto3 tutorial: The syntax of Protobuf is quite simple, you only have a few primitive datatypes ( message SearchResponse {
repeated Result results = 1;
}
message Result {
string url = 1;
string title = 2;
repeated string snippets = 3;
} (Source: https://developers.google.com/protocol-buffers/docs/proto3#other) |
Beta Was this translation helpful? Give feedback.
These sample should get you started:
person_snd:
https://github.com/continental/ecal/blob/master/samples/python/person_snd/person_snd.py
person_rec:
https://github.com/continental/ecal/blob/master/samples/python/person_rec/person_rec.py
The proto files for the samples are located in the
../_protobuf
directory. When you write your own .proto files, you must of course first compile the python representation for those:(Source: https://developers.google.com/protocol-buffers/docs/pythontutorial#compiling-your-protocol-buffers)
To get started writing .proto files, you may want to look at the proto3 tutorial:
https://devel…