等待新的ROS消息
[
返回一个味精
,status
,statustext
] = receive(___)status
indicating whether a message has been received successfully, and astatustext
捕获abo血型的额外信息ut thestatus
,使用先前语法中的任何参数。如果发生错误条件,例如指定超时内未收到的消息,则status
will befalse
, and this function will not display an error.
For code generation:
Use thestatus
output argument when you callreceive
in the entry-point function. This will avoid runtime errors and instead, outputs the status of message reception, which can be reacted to in the calling code.