Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Add script to start new gui from tmux #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion gui/start/procmon.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ monitor = [
"pidp" : "cat ~/.ros/navigation.pid",
"deps" : ["roscore_local"]
},
{
"name" : "owr_gui",
"startup": "bash start_gui.sh",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely it makes more sense to use Ros launch?

"pidp" : "cat ~/.ros/owr_gui.pid",
"deps" : []
},
{
"name" : "wifi_montior",
"startup": "roslaunch --pid=~/.ros/wif_montior.pid owr_wifi_data wifi.launch",
Expand All @@ -39,7 +45,7 @@ monitor = [
"name" : "local_joysticks",
"startup": "roslaunch --pid=~/.ros/local_joysticks.pid ../../gui/joysticks.launch",
"pidp" : "cat ~/.ros/local_joysticks.pid",
"deps" : ["roscore_local"]
"deps" : []
},
]

4 changes: 4 additions & 0 deletions gui/start/start_gui.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

source ~/owr-qtgui/devel/setup.bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than doing this which can cause problems do this:

Basically those setup.bash files don't stack. The one you've sourced most recently will be the one it uses.
To get them to stack what you have to do is source the first workspace before building the second workspace (which will add the first one to its path) then source the second workspace

rosrun gui gui