Crossbar in the ground is defnitely a good idea. Unfortunately there are services coming through the gate - telephone, and maybe some or all of water, drainage, electrics, town gas! I know the BT telephone lines are for sure as there is a sealed trench for it comes through my yard. The others I will need to investigate.
That also complicates the foundations, as you can just see in the picture the right post is close to a manhole cover. I am guessing its most likely to be the water connection to the building under there. But its a bit close to the right post to dig out a decent sized foundation.