ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

The error should occur in the case that sentence.find('GGA') > 0 evaluates to False. Then, although being declared, hora is not defined, i.e., didn't get assigned any value.