Cartographer is an algorithm that was open sourced by Google in 2016 and adapted to multiple sensors. To address issues of the original algorithm, such as the negative impact of outlier point cloud on the scan matching, and low accuracy of position fusion. This paper preprocesses the sensor data and presents HT-Carto, an improved hybrid point-cloud filtering system, and a tightly coupled LiDAR/IMU framework based on Cartographer’s front-end. The inertial measurement unit (IMU) provides initial values for the point cloud, and the IMU pre-integration combines the scan-matched pose to construct the factors, which are added as constraints to the factor graph. The result is used to update the current pose and work as odometer residuals at the back-end. The optimization of the selected strategy during point cloud preprocessing, PassThrough, and RadiusOutlierRemoval are combined to ensure quality. An actual vehicle is used in complex indoor environment to verify the stability and robustness of HT-Carto. Compared to the Cartographer, Karto, Hector, and GMapping, HT-Carto demonstrates better localization and mapping, it can obtain a more precise trajectory.