roslaunch using tmux for large project [solved]
Hello,
I have a project with a launch file that includes other launch files and many nodes. I would like to run it in a tmux session in a specific way with various windows and panes, some nodes running with gdb or valgrind.
For now I'm testing a simple script that would take the window name as a first argument, so something like this in the launch file in a node tag:
launch-prefix="$(find my_package)/script/tmux.sh window_name"
And with the script (set with chmod +x) :
#!/bin/sh
tmux new-window -n $1 "gdb --args ${*:2}"
So the command should create a new window named as the first argument, and forward everything else to gdb. But the node crashes with "process has died".
Has anybody done something similar, or am I missing something ?
Thanks!