lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
980 stars 388 forks source link

LCM network configuration #323

Closed Joechencc closed 4 years ago

Joechencc commented 4 years ago

if multicast is enabled in multiple interfaces (loopback and one ethernet interface)of my laptop, the error pops up. "[RobotInterface] Failed to send parameter cheater_mode (iter 0 timed out), trying again... set cheater_mode to 0 (0)"

If I switch off the multicast for loopback interface, the error is gone. But the multicast for loopback should be on. How should I fix that?

hoxell commented 4 years ago

This is not an error generated by LCM. You're not really providing any information, but seems like you're trying to set up a mini cheetah?

If that's the case, these are the first results on google: https://github.com/mit-biomimetics/Cheetah-Software/issues/8 https://github.com/mit-biomimetics/Cheetah-Software/blob/master/scripts/config_network_lcm.sh

Further reading: https://stackoverflow.com/questions/10692956/what-does-it-mean-to-bind-a-multicast-udp-socket https://github.com/lcm-proj/lcm/blob/606887273520cd9072f479f753988f2a747272c6/lcm/lcm_udpm.c#L988

You can also edit the routing table to change which interface is used for sending.