You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an optional keyword since protoc 3.12 (flag --experimental_allow_proto3_optional) and 3.15 (no longer experimental), to indicate Explicit Presence.
Pass --experimental_allow_proto3_optional flag to protoc during build (I put it in a script as I don't know a better way): colcon build --merge-install --packages-select gz-msgs9 --cmake-args -DPROTOC_EXEC=/tmp/protoc-exp
This works fine:
gz topic -t /foo -m gz.msgs.Float -p 'data:0.0'
gz topic -e -t /foo
data: 0
So that seems a possible resolution.
Anyway, as there is no real functional impact (other than the 0 values not being echoed), I close this issue.
This is rather strange:
Execute in one terminal:
Execute in another terminal:
Expected output:
Actual output:
So there is an extra line feed, but no data for 'zero' values.
This is for both the default and the json output.
Relevant code part:
gz-transport/src/cmd/gz.cc
Lines 265 to 280 in c31134a
I assume it must be an oddity of the protobuf message?
gz-transport/include/gz/transport/TransportTypes.hh
Line 71 in c31134a
The text was updated successfully, but these errors were encountered: