Even though the code executes just fine(no memory leaks), I'm getting this warning:
_UserWarning: This message has already been written once. Be very careful that you're not setting Text/Struct/List fields more than once, since that will cause memory leaks (both in memory and in the serialized data). You can disable this warning by calling the clear_write_flag method of this object after every write.
packet = imu_msg.tobytes()
Is this unintended behaviour(just ignore the warning ?) or is there another way to do this properly ?
I'm polling a sensor every 50ms which triggers a callback that publishes the sensor packet.
Even though the code executes just fine(no memory leaks), I'm getting this warning:
Is this unintended behaviour(just ignore the warning ?) or is there another way to do this properly ?