Wrong there spider... A rogue can only sneak attack from cover if his target is within his ranks in hide away from him.
So, if your rogue had 20 ranks in hide, then he could charge the ogre and his attack would be a sneak attack. Of course, since he's charging his hide would be at a -20 (or...