Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMIT command #20

Open
FIREdog5 opened this issue Aug 22, 2020 · 0 comments
Open

EMIT command #20

FIREdog5 opened this issue Aug 22, 2020 · 0 comments
Assignees
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

Comments

@FIREdog5
Copy link
Contributor

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>...

@FIREdog5 FIREdog5 added feature New feature or request python Pull requests that update Python code medium issue A more involved issue that requires knowledge of the code base back end a change to the back end of the code base labels Aug 22, 2020
@FIREdog5 FIREdog5 self-assigned this Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant