micro_ros_espidf_component icon indicating copy to clipboard operation
micro_ros_espidf_component copied to clipboard

Not able to Build the firmware.

Open mohankaushik97 opened this issue 3 months ago • 2 comments

•	Hardware description: ESP32-S3 (Xtensa architecture), MacBook M4
•	RTOS: FreeRTOS (from ESP-IDF)
•	Installation type: micro_ros_setup via ESP-IDF component (micro_ros_espidf_component) jazzy branch
•	Version or commit hash: ESP-IDF v5.5.1, micro-ROS Jazzy

Steps to reproduce the issue

  1. Set up ESP-IDF v5.5.1 (. $IDF_PATH/export.sh)
  2. `pip3 install catkin_pkg lark-parser colcon-common-extensions`
    
  3. Create a new micro-ROS app using the ESP-IDF template
  4. Run the following build command inside the project directory: idf.py set-target esp32s3 idf.py build
  5. Observe build process failing during colcon build in the ament_cmake_core stage

Expected behavior

The micro-ROS client library should build successfully within the ESP-IDF build system, completing the colcon build process for the micro_ros_dev folder without dependency errors.

Actual behavior

Build Fails with: ModuleNotFoundError: No module named 'catkin_pkg' CMake Error at cmake/core/ament_package_xml.cmake:95 (message): execute_process(...) returned error code 1

Additional information

mohankaushik97 avatar Oct 20 '25 20:10 mohankaushik97

Speculation: have you done source ~/esp/v5.2.5/esp-idf/export.sh before running pip3 install catkin_pkg lark-parser colcon-common-extensions?

If not, those dependencies end up in site-packages for your workstation, not for your ESP-IDF installation which has its own python interpreter. In my case, I have a .espressif/python_env/idf5.2_py3.12_env/bin/python3 interpreter and it uses packages installed in .espressif/python_env/idf5.2_py3.12_env/lib/python3.12/site-packages.

After running export.sh, your python3 command will be the one in ~/.espressif/python_env/idf5.2_py3.12_env/bin/python3

adam-at-epsilon avatar Oct 29 '25 08:10 adam-at-epsilon

I do source the IDF environment before installing the packages.

Speculation: This might be because I'm trying to build this on my Mac, which does not have ROS2 installed.

mohankaushik97 avatar Nov 03 '25 19:11 mohankaushik97