Skip to content

Commit

Permalink
fix(static_centerline_generator): save_map only once (#7770)
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
  • Loading branch information
takayuki5168 authored Jul 1, 2024
1 parent 84ddac6 commit a25cc17
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ def onSaveMapButtonPushed(self, event):
msg = Empty()
self.pub_save_map.publish(msg)

# NOTE: After saving the map, the generated centerline is written
# in original_map_ptr_ in static_centerline_generator_node.
# When saving the map again, another centerline is written without
# removing the previous centerline.
# Therefore, saving the map can be called only once.
self.widget.save_map_button.setEnabled(False)

def onValidateButtonPushed(self, event):
msg = Empty()
self.pub_validate.publish(msg)
Expand Down

0 comments on commit a25cc17

Please sign in to comment.