strands-project / strands_navigation

Higher-level navigation capabilities
41 stars 48 forks source link

Ensure that meta out is defined to prevent crashes #352

Closed heuristicus closed 7 years ago

heuristicus commented 7 years ago

Fixes the following crash, which happened to me while attempting to remove a tag.

[ERROR] [1501510390.765627]: Error processing request: local variable 'meta_out' referenced before assignment
['Traceback (most recent call last):\n', '  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 625, in _handle_request\n    response = convert_return_to_response(self.handler(request), self.response_class)\n', '  File "/home/michal/catkin_ws/src/strands_navigation/topological_navigation/src/topological_navigation/manager.py", line 255, in rm_tag_cb\n    return succeded, meta_out\n', "UnboundLocalError: local variable 'meta_out' referenced before assignment\n"]
[ERROR] [1501510390.766215475]: Service call failed: service [/topological_map_manager/rm_tag_from_node] responded with an error: error processing request: local variable 'meta_out' referenced before assignment