Currently, when a publisher/client sends a topic/request, it will check the consistency of the message to be sent. For example, the following code will lead to an exception:
This patch adds an additional option for node when initializing, which is willCheckConsistency (default is false), so the code above can run as expected with the stamp initialized with default value. Meanwhile, user can set it to true to check the consistency intentionally.
To achieve, this patch implements:
Add willCheckConsistency to the node option.
Update message.dot accordingly to check the consistency based on the node option above.
Currently, when a publisher/client sends a topic/request, it will check the consistency of the message to be sent. For example, the following code will lead to an exception:
Because the
stamp
inheader
is not initialized.This patch adds an additional option for node when initializing, which is
willCheckConsistency
(default isfalse
), so the code above can run as expected with thestamp
initialized with default value. Meanwhile, user can set it totrue
to check the consistency intentionally.To achieve, this patch implements:
willCheckConsistency
to the node option.message.dot
accordingly to check the consistency based on the node option above.Fix: #937