Rosrecord has been deprecated as of ROS-1.1.5. Please transition over to use the rosbag package instead. This is a set of tools for recording from and playing back to ros topics. It is intended to be high performance and avoids deserialization and reserialization of the messages.
rosrecord contains a collection of command-line tools for recording messages to bag files and playing them back. ros::record::Player provides a C++ interface for reading from these bag files.