lcm-proj / lcm

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

LCM for MCU #469

Closed 54WC closed 9 months ago

54WC commented 9 months ago

Do it make sense to make LCM compatible with low cost MCU like ESP32, Arduino? In general, we need a Raspberry/Nvidia for high level control or planning, they need communicate with MCU for low level controller of robot. In this framework, can we build LCM in ESP32 ? I can't find related article in web, I just think it maybe not sense to work in this way?

ihilt commented 9 months ago

Have you encountered specific incompatibilities? I know it runs on ARM 32-bit architectures. One option would be to cross-compile LCM using a toolchain for the ESP32. Briefly searching, I came across this page: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html

I don't know if that is the same chip you are using or not but it has links to toolchains for various platforms that appear to support cross-compiling for the ESP32.

54WC commented 9 months ago

Thanks! That is helpful! My experience for ESP32 is limited by Arduino Sketch IDE. I would try to cross-compile LCM with tool chain for the ESP32.