micro-ROS / micro_ros_arduino

micro-ROS library for Arduino
Apache License 2.0
435 stars 112 forks source link

How to Loading Firmware to esp32 if my project has 2 file .c ? #1818

Open flux0-0 opened 3 weeks ago

flux0-0 commented 3 weeks ago

My project has 3 file, i do " ros2 run micro_ros_setup configure_firmware.sh myproject --transport serial " - Successfully " ros2 run micro_ros_setup flash_firmware.sh " - Successfully , "ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyUSB0 " - Successfully . But only node, topic from the app.c created, and led_control.c is not. How to fix it ? P/s: My project save in folder FreertosApp/Firmware

4c674daf-2c84-4968-860c-b908d4d2bb1f

hippo5329 commented 3 weeks ago

micro-ros-platformio is a good alternaive to micro-ros-setup. All files in project src directory will be compiled. You may follow my wiki. https://github.com/hippo5329/micro_ros_arduino_examples_platformio/wiki

flux0-0 commented 3 weeks ago

micro-ros-platformio is a good alternaive to micro-ros-setup. All files in project src directory will be compiled. You may follow my wiki. https://github.com/hippo5329/micro_ros_arduino_examples_platformio/wiki

i plan to use esp-idf with platformio and microros, do you have this tutorial ? And What option do you suggest for a robot car project using cameras and lidar? Esp-idf or adruino ?

hippo5329 commented 3 weeks ago

Arduino has more drivers support than esp-idf. I would suggest micro-ros-patformio, which uses arduino framework. You may follow another wiki to build the robot base/ motor controller. https://github.com/hippo5329/linorobot2_hardware/wiki

hippo5329 commented 3 weeks ago

pc --wifi-- robot computer eg rpi5 with lidar, camera --usb serial-- esp32/pico, mpu6050, tb6612..