Manifold-Based Robotic Workspace Formulation: Path Planning and Obstacle Avoidance