modified the quaternion to correctly represent the output in ROS frames