Synchronization problem solved.

Used TimeSynchronization from the ROS message_filters library.