Multiple Python-Scripts (Turtlebot2 / Kobuki) in kobuki_node
Hi guys,
I have multiple python scripts for several tasks. Let's assume: The first one is for driving a certain distance with a given speed. Another one is for image processing purpose (marker detection). A third could be used to find a docking station and so on...
Everything is running on a Jetson TK1 (ubuntu 14.04 - Linux4Tegra) => ros indigo with a poor Turtlebot2 setup (I don't use the depth camera). On the Jetson TK1 I copied the kobuki_node to my catkin workspace and added a camera node to the kobuki nodelet (gscam) via launchfile. For running I start minimal.launch and call python scrips by command: rosrun kobuki_node mypython.py. It's possible to call "driveDistance.py" and then in parallel run the image processing routine and so on.
Now I want to put everything together like a state machine. For this I tried to write a nohup bash script, starting each script in the background till it ends by itself or killing by process id. But hey, I think with some help I can find a better solution. Can we?