micro-ROS / micro_ros_setup

Support macros for building micro-ROS-based firmware.
Apache License 2.0
336 stars 128 forks source link

Build int32_publisher Firmware Error (ESP32-S3 on YD-ESP32-S3-N16R8 Board) #671

Closed AlfonGio closed 8 months ago

AlfonGio commented 8 months ago

Hi, I am learning micro-ROS with ESP32 board by following the basic tutorial from this blog post Connect ESP32 to ROS2 (Foxy +) which is quite similar as the original tutorial written in micro-ROS webpage.

While doing the build_firmware.sh step, I got the following error:

Steps to reproduce the issue

  1. Create firmware ros2 run micro_ros_setup create_firmware_ws.sh freertos esp32
  2. Configure the firmware ros2 run micro_ros_setup configure_firmware.sh int32_publisher -t udp -i 192.xxx.xxx.xxx -p xxxx
  3. Configure WIFI connection ros2 run micro_ros_setup build_firmware.sh menuconfig
  4. Build the firmware ros2 run micro_ros_setup build_firmware.sh

Expected behavior

image

Actual behavior

image

There is an error which I am not sure. I have tried to search the internet and found someone with the same error but has not been solved yet.

Additional information

I am connecting the board via USB cable through host machine.

pablogs9 commented 8 months ago

Hello, the way to go in ESP32-based boards is to use micro-ROS IDF component. You can find it here: https://github.com/micro-ROS/micro_ros_espidf_component

AlfonGio commented 8 months ago

Hi @pablogs9 , thanks for the information.

Can you elaborate a bit how to use the component?

I have read the readme section and there is stated just clone it in the components folder of the project but I cannot find the components folder from the generated folder through script configure_firmware.sh

image

image

pablogs9 commented 8 months ago

micro-ROS component for ESP-IDF is a different approach, you do not need micro_ros_setup at all.

Just create an environment of ESP-IDF using their tooling: https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32/get-started/linux-macos-setup.html#get-started-linux-macos-first-steps

And then add the micro-ROS module as explained in the repo.

AlfonGio commented 8 months ago

Ah I get it now. Thank you..