For autonomous driving, grid map is a popular tool to represent the environment, which can be used for obstacles crossing. To preserve more original information obtained from the LIDAR and represent the vertical structures in the three dimensional (3D) environment, this paper presents a novel method to generate 3D occupancy grid map by integrating multi-frame point cloud. Firstly, we use the information of the Inertial Measurement Unit (IMU) to correct the distortion of the point cloud after a delicate LIDAR/IMU hand-eye calibration procedure. Secondly, the method based on the Gaussian process regression is utilized to complete the ground segmentation and the occupancy grid sub-map could be obtained. Thirdly, we adopt scan registration method to calculate the accurate pose transformation between different frames of point cloud. Through the pose transformation, a series of sub-maps could be fused together. Finally, we avoid the influence of dynamic objects by adopting the 3D ray casting algorithm. Extensive experiments are performed, which proves our approach could consistently produce accurate and stable 3D grid maps in real-time.