Skip to content

Sending IMC messages with Matlab

zepinto edited this page Dec 1, 2014 · 2 revisions

Sending out messages

You can create any IMCMessage by creating a corresponding Java object. See also http://lsts.github.io/imcjava/api-doc/pt/up/fe/dceg/neptus/imc/package-summary.html. You can address a message to a specific vehicle by using its name:

msg = Abort()
imc.send('lauv-xtreme-2', msg)

If needed you can also send a message to all of the connected peers:

msg = Abort()
imc.sendToPeers(msg)
Clone this wiki locally