roslibjs icon indicating copy to clipboard operation
roslibjs copied to clipboard

CBOR encoding/decoding issue with timestamps

Open janpaul123 opened this issue 5 years ago • 0 comments

When I subscribe to a topic with the default JSON encoding and subscribe to a basic topic like /connected_clients, then fields of type time are correctly encoded, e.g. { "secs": 1577313146, "nsecs": 190 }.

However, when using the exact same code but using CBOR compression (compression: "cbor") I get this: { "115,101,99,115": 1577313146, "110,115,101,99,115": 190 }. Note that those numbers represent the ASCII values of "secs" and "nsecs".

janpaul123 avatar Dec 25 '19 22:12 janpaul123