Skip to content

Commit

Permalink
fix(static_centerline_generator): save_map only once (autowarefoundat…
Browse files Browse the repository at this point in the history
…ion#7770)

Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Jul 1, 2024
1 parent 470ebba commit 222d319
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 222d319

Please sign in to comment.