The lcmSend
block sends to the local port 10002. The lcmReceive
block starts a background process that listens at port 10002. Consequently, the lcmReceive
block receives what the lcmSend
block sends.
Note: There is no causality between the lcmSend
block and the lcmReceive
block. Therefore the execution order of the blocks is not determined. Additionally, the lcmReceive
block starts an own receiving thread, so that the time the data was received is not equal to the time the external function within the lcmReceive
block was called. This indeterminism may also show up in the plots.
LCM requires a valid multicast route. If this is a Linux computer and it is simply not connected to a network, the following commands are usually sufficient as a temporary solution:
sudo ifconfig lo multicast sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev lo