ROBOTIS-GIT / ros2arduino

This library helps the Arduino board communicate with the ROS2 using XRCE-DDS.
Apache License 2.0
219 stars 43 forks source link

Could start the node before the Agent? #33

Closed yottayuan closed 4 years ago

yottayuan commented 5 years ago

Sorry for my poor English. Now it works well. I still have a question,maybe an enhancement. Now , I must start the Agent first ,then start my Esp32 board. The node in the Esp32 board will connect the Agent. But when the Agent crashes, The board will not reconnect. My question is : How to start the Agent after the Esp32 board started? Now I must reboot the Esp32 board. But in a production environment, It's not a good idea.

OpusK commented 5 years ago

Hi, @yottayuan

My question is : How to start the Agent after the Esp32 board started? Now I must reboot the Esp32 board. But in a production environment, It's not a good idea.

Implementing this feature may require a redesign of ros2arduino, and most of all we should check with Agents and Clients (eProsima's products) to see if this is possible. This seems to require time, and unfortunately, my current tasks make it difficult to get started for the time being.

OpusK commented 4 years ago

Hi, @yottayuan

Sorry, my answer is too late... The link below is the code I used to create an example of XELNetwork CommXEL-W (using esp32).

Please apply and test the recreate () function.

OpusK commented 4 years ago

This issue has been closed as there weren't recent activities. Please feel free to reopen this thread if there's any opinion to throw. Thanks.