Skip to content

Commit 81bd532

Browse files
Fix local variable referenced before assignment issue
1 parent 38d5a1c commit 81bd532

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kf_hungarian_tracker/kf_hungarian_tracker/kf_hungarian_node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,15 @@ def callback(self, msg):
204204
arrow.scale.z = 0.05
205205
marker_list.append(arrow)
206206
# add dead obstacles to delete in rviz
207-
for uuid in dead_object_list:
207+
for dead_uuid in dead_object_list:
208208
marker = Marker()
209209
marker.header = msg.header
210-
marker.ns = str(uuid)
210+
marker.ns = str(dead_uuid)
211211
marker.id = 0
212212
marker.action = 2 # delete
213213
arrow = Marker()
214214
arrow.header = msg.header
215-
arrow.ns = str(uuid)
215+
arrow.ns = str(dead_uuid)
216216
arrow.id = 1
217217
arrow.action = 2
218218
marker_list.append(marker)

0 commit comments

Comments
 (0)