Affine Algebraic Entities and Their Applications in Robotics