stackcuriosity.com
HOW DOES ARDUINO COMMUNICATE DIRECTLY WITH ROS WITHOUT ROS LIB?
Using ROS libraries to broadcast ROS after reading sensor data in Arduino is a bit annoying in complex systems. Data losses, involuntary behaviors, etc. And especially when I used RVIZ, I encountered serious problems. I have had such problems. As a solution, I decided to try a method like this:I decided it was unnecessary to publish the sensor data directly on the arduino "ROS". Instead, I decided to send the data to the ROS by serial connection and then to make a new publishing from the ROS after processing the incoming data on the ROS. I don't want to extend of this topic too much. When you examine the codes below, you will see how I want to do it. In this example, I read the encoder data with arduino and sent it to the computer(ROS) via serial communication via USB.