Start or stop the ROS node in another node
I want to start or stop some ros nodes remotely. As I want to control a robot by my Android mobile phone through WIFI, and the robot maybe has no keyboard or displayer, so I cannot start the ros node by input "rosrun" or "roslaunch" in the terminal, and I want to use the smart phone to control some ros nodes, like start or stop them. For example, I want to let the robot to draw a map by GMapping node, so I press a button on my smart phone, and the Gmapping node run, then I press another button on my smart phone, the Gmapping node stops. And I have writed a node that could communicate with the smart phone.
I have been looking for the methods for a long time, and I cannot find a perfect method. I find this method link text that proposed by DimitriProsser is really good, however he only tell us the way to start.
So I want to know, are there other methods to achieve my goal? Thank you a lot!
How do you connect your smart phone to the robot?
I've done it using rosbridge and a webbrowser. I'm sure there are several ways.
But the mods are going to give you a hard time for asking a question using an answer on an unrelated topic. : (
@AutoCar please don't use an answer to ask a question. This isn't a forum. You can ask a new question and reference this question instead.