Moisten the outer rim of a martini glass with the grapefruit wedge and coat lightly with salt. In a cocktail shaker, muddle the 1-inch rosemary sprig with the sugar. Add the grapefruit juice, gin and ice and shake vigorously. Strain into the martini glass and garnish with the rosemary sprig.