fix read_number

direct conversion from string containing a float to int doesn't work, a detour to float is needed

(see also http://answers.ros.org/question/172688/ros-indigo-cannot-show-graph-view-on-smach_viewer/)