Skip to content

Commit ee248ed

Browse files
committed
add compute button
1 parent d0027e9 commit ee248ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Motion Planning generator.lua

+10
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ function generate()
186186
appendLine(" destroyTask()")
187187
appendLine("end")
188188
appendLine("")
189+
appendLine("function sysCall_userConfig()")
190+
appendLine(" simUI = require 'simUI'")
191+
appendLine(" if simUI.msgbox_result.yes ~= simUI.msgBox(simUI.msgbox_type.question, simUI.msgbox_buttons.yesno, 'OMPL', 'Compute new path?') then return end")
192+
appendLine(' local ui = simUI.create[[<ui closeable="false" modal="true" title="">')
193+
appendLine(' <label text="Please wait..." />')
194+
appendLine(" </ui>]]")
195+
appendLine(" compute()")
196+
appendLine(" simUI.destroy(ui)")
197+
appendLine("end")
198+
appendLine("")
189199
appendLine("function compute()")
190200
appendLine(" setStartState(startState:getConfig())")
191201
appendLine(" setGoalState(goalState:getConfig())")

0 commit comments

Comments
 (0)