ROS2 bag encryption
Hi everyone. I would like to know if there is a way to provide ecnryption to a rosbag file created from a ROS2 node. Thanks in advance.
Asked by lfb on 2023-04-12 07:18:45 UTC
Answers
No, there is not currently any such capability in rosbag2. However, you can always accomplish any arbitrary thing you want manually. Not sure if you're looking for encryption of entire messages or just output files, but
- For message encoding - for example create your own "EncryptedMessage.msg" type, performing any operations you want to do, then writing these messages into the bag
- For file encryption, write the bag file as normal, then encrypt the file with whatever tooling after it is closed
Asked by emersonknapp on 2023-04-12 12:04:51 UTC
Comments
Thanks @emersonknapp. I'm writing the messages with a node built by following this tutorial
https://docs.ros.org/en/galactic/Tutorials/Advanced/Recording-A-Bag-From-Your-Own-Node-Py.html
I guess in case I want to encode the messages I should do it before the serialization process. Thanks again
Asked by lfb on 2023-04-13 03:13:14 UTC
Comments