Setting up an Infinite environment on the Gym

I want to move a robot on a finite plane.
(I can move the robot on an infinite plane.)

I can use URDF to build a wall in the Gym, but I don’t think it is a smart way. Please let me know if there is a better way.