Rosrun in a cpp program
I have a program that publish in a topic that my arduino is subscribed. I am using kinetic in an Ubuntu distribution. Right now to make it work I have to write in two different command prompts the following:
rosrun rosserial_python serial_node.py _port:=/dev/ttyArduino _baud:=500000 //This is to start connexion with the arduino rosrun sigue_lineas camera_sigue_lineas //This is the program that I want to run
Is there a way to avoid writing the rosrun rosserial_python command by adding it to the C++ program? Is it possible to run any rosrun in a C++ program?
If the issue is to write two command prompts, you could use a launch file.