The most cost effective solution I can think of is to use potentiometers at the joints in order to gauge the angles. You basically treat the pots like absolute analog encoders, but you will have to do some calibrations to ensure your angles are correct. Do you need me to go into further detail?