EMIT command #20
Labels
back end
a change to the back end of the code base
feature
New feature or request
medium issue
A more involved issue that requires knowledge of the code base
python
Pull requests that update Python code
The EMIT statement will send an LCM message from the script to a target. The EMIT statement is significantly simpler than the WAIT statement, and it's structure is as follows:
A LCM header must follow the EMIT statement, this is the header that will be sent.
TO
A LCM target must follow the header, separated by the keyword TO. This is the LCM channel that the EMIT statement send specified header to.
WITH can then be specified to set the arguments into the header from the namespace. This must follow the header specified by TO. The WITH statement looks something like this,
WITH 'argument in header' = argument
. The name of the argument in the header must be surrounded by single quotes. It is worth noting that this is the reverse of the WITH statement used in WAIT.Multiple WITH statements may be specified in order to set multiple arguments in the header. The order of these statements is undefined.
Usage:
EMIT <header> TO <target> WHERE <assignment>...
The text was updated successfully, but these errors were encountered: