Sub-Riemannian spaces are spaces whose metric structure may be viewed as a constrained geometry, where motion is only possible along a given set of directions, changing from point to point. The simplest example of such spaces is given by the so-called Heisenberg group. The characteristic constrained motion of sub-Riemannian spaces has numerous applications in robotic control in engineering and neurobiology where it arises naturally in the functional magnetic resonance imaging (FMRI). It also arises naturally in other branches of pure mathematics as Cauchy Riemann geometry, complex hyperbolic spaces, and jet spaces. In this paper, we review the use of the relationship between Heisenberg geometry and Cauchy Riemann (CR) geometry. More precisely, we focus on the problem of the prescription of the scalar curvature using techniques related to the theory of critical points at infinity. These techniques were first introduced by Bahri, Bahri and Brezis for the Yamabe conjecture in the Riemannian settings.Mathematics Subject Classification 58E05 · 57R70 · 53C21 · 53C17