Skip to content

Commit 222d319

Browse files
committed
fix(static_centerline_generator): save_map only once (autowarefoundation#7770)
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
1 parent 470ebba commit 222d319

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

planning/autoware_static_centerline_generator/scripts/centerline_updater_helper.py

+7
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ def onSaveMapButtonPushed(self, event):
162162
msg = Empty()
163163
self.pub_save_map.publish(msg)
164164

165+
# NOTE: After saving the map, the generated centerline is written
166+
# in original_map_ptr_ in static_centerline_generator_node.
167+
# When saving the map again, another centerline is written without
168+
# removing the previous centerline.
169+
# Therefore, saving the map can be called only once.
170+
self.widget.save_map_button.setEnabled(False)
171+
165172
def onValidateButtonPushed(self, event):
166173
msg = Empty()
167174
self.pub_validate.publish(msg)

0 commit comments

Comments
 (0)