[Fix #259] Make getter functions of Joint into const memeber functions