You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should it be possible to build this for ESP32 microcontrollers, whether using Platformio or esp-idf?
The project's files (content in src) appear to be buildable.
Zenoh-pico seems to be buildable and already available as a library when using Platformio.
The problem is Micro-CDR, which is rather complex.
I quickly threw the code into an empty esp-idf project and added the following to the project's CMakeList.txt
This does not work when building Micro-CDR (some config.h files are misplaced, the user_types.h file is missing). But before diving into this I'd like to know if this is feasible at all, and if so any help would be welcome.
Good to know @g4sp3r.
Just to keep you informed, I also got it to work with Arduino over Platformio based on roscon2025_control_workshop, as you recommended. The process is not pretty, involving cloning stuff right in the build directory and manually placing files from Micro-CDR in the source tree, but it works.
Great that you got it working @xopxe.
The build process and project setup outlined in the workshop could probably be improved.
My experience with PlatformIO is unfortunately limited and currently I don't have the cycles to test myself. I think the above PR should at least help a bit.
If something comes up I would be happy to accept PRs to better support PlatformIO or any other framework.
Example projects for different targets and frameworks would also be useful.
Hihi i used platformio and managed to use espidf framework and i was able to discover the ROS Topic. But i was not able to echo the data for some reason.... Anyone facing the same issue
Activity
[-]Building for microcontroler[/-][+]Building for microcontroller[/+]g4sp3r commentedon Aug 27, 2025
Hi @xopxe.
It's possible. Please see esp-idf example project here. There is also esp-idf component for easier integration.
For platformIO on Arduino framework I think you could find some inspiration in roscon2025_control_workshop.
xopxe commentedon Aug 27, 2025
Great! Will try it.
g4sp3r commentedon Aug 28, 2025
@xopxe, could you please check if #6 helps with the issues you were having originally?
xopxe commentedon Aug 28, 2025
@g4sp3r, as a note I successfully built and ran code based on the esp-idf component.
With this branch I did the following:
git checkout ucdr_configandgit submodule update --init --recursiveThe build failed with:
The full build output is here
g4sp3r commentedon Aug 31, 2025
Hey @xopxe, great that you got the idf-component working.
Thanks for testing the PR. I could get a bit further with
ExternalProject_Addby settingINSTALL_COMMAND=""but then decided on this way...main/CMakeLists.txt:
It now fails at linking step with unresolved references. I can't seem to find the correct name for target which should be
mainaccording to the docsI think for ESP32 on ESP-IDF framework idf-component is currently a cleaner approach.
I will merge the PR but leave this issue open. Maybe somebody will find a better solution.
xopxe commentedon Sep 1, 2025
Good to know @g4sp3r.
Just to keep you informed, I also got it to work with Arduino over Platformio based on roscon2025_control_workshop, as you recommended. The process is not pretty, involving cloning stuff right in the build directory and manually placing files from Micro-CDR in the source tree, but it works.
g4sp3r commentedon Sep 1, 2025
Great that you got it working @xopxe.
The build process and project setup outlined in the workshop could probably be improved.
My experience with PlatformIO is unfortunately limited and currently I don't have the cycles to test myself. I think the above PR should at least help a bit.
If something comes up I would be happy to accept PRs to better support PlatformIO or any other framework.
Example projects for different targets and frameworks would also be useful.
xopxe commentedon Sep 2, 2025
Thanks for the support @g4sp3r.
As soon as I finish this project I'll try to clean it up and at least provide clear instructions for building.
Alvin0523 commentedon Dec 19, 2025
Hihi i used platformio and managed to use espidf framework and i was able to discover the ROS Topic. But i was not able to echo the data for some reason.... Anyone facing the same issue