# Revision history [back]

To save others some time, this answer that seemed to work for me:

when I rewrote the 480th row of the /opt/ros/indigo/lib/python2.7/dist-packages/xdot/xdot.py

return int(self.read_code()) -> return int(float(self.read_code()))

I got to the solution following the thread above. From what I gather, the problem is that read_code returns a float instead of an int.
return int(self.read_code()) -> return int(float(self.read_code()))
I got to the solution following the thread above. From what I gather, the problem is that read_code returns a float instead of an int.