micro-ROS / micro_ros_espidf_component

micro-ROS ESP32 IDF component and sample code
Apache License 2.0
248 stars 60 forks source link

ESP32 requires reset every time agent is launched #181

Closed CarlHVA closed 1 year ago

CarlHVA commented 1 year ago

Issue template

Steps to reproduce the issue

Running the micro-ros agent.

docker run -it --rm -v /dev:/dev --privileged --net=host microros/micro-ros-agent:humble serial --dev [YOUR BOARD PORT] -v6

Expected behavior

The ESP32 starts running the micro ros code after launching the agent.

Actual behavior

The code runs only after pressing the reset button on the ESP32 board. Until then, the only output I get is this: Screenshot from 2023-03-30 13-52-54

Additional information

I'm using a serial connection. The code runs fine after resetting the board. However, it is a hassle needing to reset the board each time I want to launch the agent.

pablogs9 commented 1 year ago

You can implement a reconnection approach: https://docs.vulcanexus.org/en/latest/rst/tutorials/micro/handle_reconnections/handle_reconnections.html

CarlHVA commented 1 year ago

Thanks for the very quick reply and helpful answer! This solved my issue.