Direct Visual and Inertial Odometry for Monocular Mobile Platforms