Compassion meditation brings attention to suffering and a wish that it ease. The focus might be your own difficulty or the difficulty someone else is going through.
Compassion and loving-kindness often overlap. Loving-kindness emphasizes wishing someone well more generally. Compassion begins with recognizing pain or difficulty and giving it a caring response.