What code do i need to use here

Im building a robot using slam with a lidar and as a motor controller in gonna use a Arduino paried with an Adafruit l293d motor controller, and from the page im looking to make this work, they give me 2 codes, one for the serial communication for the arduino and another code that makes the arduino know what controller it has, cause in the first one, there arent any config regarding output pins or anything, and the readme file just says to upload the code for the serial communiction for the arduino but that wont work.

Link: GitHub - hbrobotics/ros_arduino_bridge: ROS + Arduino = Robot

Hope someone can help me with this cause im stuck in this part rn