Need ros serial
sudo apt-get install ros-<distro>-serial
don't forget to adjust CMakeLists.txt and package.xml
Input: serial port data of imu.
Output: imu data in ros message type sensor_msgs::Imu.
Orientation in quaternion form.
Angular velocity in rad/s.
About transform between Euler and Quaternion form, see here.