ROS2 Foxy: How to publish byte message from commandline?
How do I publish byte message in ROS2 from ros2 topic command.
When I try to run the following command:
ros2 topic pub /byte std_msgs/msg/Byte "{data: 3}"
I get:
Failed to populate field: The 'data' field must be of type 'bytes' or 'ByteString' with length 1