When working with rosserial on Arduino, you'll be able to publish and subscribe to ROS topics, allowing sensor knowledge to flow with the Arduino into the ROS ecosystem and commands from ROS to reach the actuators controlled by the Arduino. Remember, productive communication is dependent upon the right serial port https://robotdogforeducation84950.blogdosaga.com/26420882/5-simple-statements-about-ros-compatible-robot-explained