Skip to content

Commit

Permalink
changed kill behavior button name to kill onboard engine
Browse files Browse the repository at this point in the history
  • Loading branch information
TakashiSato committed Nov 12, 2023
1 parent c7b0bc0 commit c180d4c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ui/ui_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ UI.Menu = new (function() {
],
[
["Check Behavior", "check", function() { UI.Menu.checkBehaviorClicked(); }],
["Kill Behavior", "cross", function() { UI.Menu.killBehaviorClicked(); }]
["Kill Onboard Engine", "cross", function() { UI.Menu.killOnboardEngineClicked(); }]
]
];
var button_config_sm = [
Expand Down Expand Up @@ -63,13 +63,13 @@ UI.Menu = new (function() {
var button_config_rc = [
[
["Show Terminal", "title_terminal", function() { UI.Menu.terminalClicked(); }, undefined],
["Kill Behavior", "cross", function() { UI.Menu.killBehaviorClicked(); }]
["Kill Onboard Engine", "cross", function() { UI.Menu.killOnboardEngineClicked(); }]
]
];
var button_config_se = [
[
["Show Terminal", "title_terminal", function() { UI.Menu.terminalClicked(); }, undefined],
["Kill Behavior", "cross", function() { UI.Menu.killBehaviorClicked(); }]
["Kill Onboard Engine", "cross", function() { UI.Menu.killOnboardEngineClicked(); }]
],
[
["Import Configuration", "settings_import", function() { UI.Settings.importConfiguration(); }],
Expand Down Expand Up @@ -286,7 +286,7 @@ UI.Menu = new (function() {
UI.Panels.Terminal.show();
}

this.killBehaviorClicked = function() {
this.killOnboardEngineClicked = function() {
try {
var rosnodeList = spawn("rosnode", ["list"]);

Expand Down Expand Up @@ -325,6 +325,7 @@ UI.Menu = new (function() {
rosnodeKill.on('close', () => {
T.logInfo(`killed behavior node: ${behaviorNodeName}`);
UI.Panels.Terminal.hide();
UI.RuntimeControl.displayBehaviorFeedback(3, "Onboard engine killed.");
})
});
} catch (err) {
Expand Down

0 comments on commit c180d4c

Please sign in to comment.