tmux roslaunch (bash or sh?)
I was trying to use gdb, tmux and roslaunch together and followed the explanation here: http://wiki.ros.org/action/login/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB
I couldn't make it work using this :
launch-prefix="/path/to/run_tmux": run your node in a new tmux window; you'll need to create /path/to/run_tmux with the contents:
#!/bin/sh
tmux new-window "gdb --args $*"
I had to replace #!/bin/sh
by #!/bin/bash
. My .bahrc is empty, I use zsh by default. I was about to edit the wiki, but could does it work for anyone with sh
? If so, why?
Thanks
Asked by Dben on 2018-02-20 03:48:49 UTC
Comments
I tried with both sh and bash, and for me the node crashes with a message [my_node] process has died ... Is it working for you now ?
Asked by Cyril Jourdan on 2018-04-20 10:18:12 UTC
using bash works for me
Asked by Dben on 2018-04-20 10:34:22 UTC
Sorry my bad, it works with sh, I wasn't launching from a tmux session, just from a terminal, I thought it would create it for me, but it just create a new window.
Asked by Cyril Jourdan on 2018-04-20 10:41:08 UTC
mmh okay, maybe some environment issue. gonna close it
Asked by Dben on 2018-04-30 04:32:52 UTC