Making a desktop user program to roslaunch and kill nodes
Hello everyone.
I have this problem about making a desktop user program. I hope you can help me:
I would like to create a program for users which could launch different .launch files depending on user's choice. I would like to make it the easiest as possible for them (eg: users would double-click an icon in the desktop and the program would give them the opportunity to roslaunch one .launch or another making users to write simple commands).
Also, this program would recognize when it needs to kill automatically several nodes after a roslaunch (eg: I roslaunch a .launch which shows a turtle moving from initial position to its destiny. When this turtle reaches its destiny, some nodes must be killed automatically, like node which manages to move the turtle).
Problem: I don't know how to do this automatically. I was able to do it manually, but it needs user's interaction. I don't want this to happen.
And the main question is: How would you do this program?
I tried doing that with this structure:
1. .desktop file which executes by double-click the compiled C program I created.
2. C program which make user interaction and call shell scripts (system(call_shell_script);) in order to do roslaunch depending on the command that user writes.
3. One shell script which I use to roslaunch the .launch files.
4. One shell script which manages to kill several nodes.
The best options I want to have are the next (First is the best, last is the worst):
1. Making all of that in just one C or C++ program (no shell scripts, only a .desktop and a GUI).
2. Making all of that using rqt_launch or some tool like that.
3. The structure I used.
4. Making all of that in just one shell script, no C/C++ programs.
5. Others.
Thank you in advance.
perhaps you could extend this https://github.com/gaug-cns/ros-contr...