Say I have a level 3 lightfoot halfling rogue fighting an ogre. Can I move 10 feet into the space of an ogre, use cunning action to hide, hit It with sneak attack (in its groin?), and then move out from its space, all in one turn?

A good answer should include a reference on how to know if the rogue is obscured by the ogre or not.