ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

In my case, I have a robot which automatically launches everything it needs for a basic behavior. Like Delb said in his answer, I have a launch file that will run all the nodes I need. Then, I launch that file from my .bashrc in one of the tty terminals.

In the launch file you can either define your nodes, or include other launch files that would start the nodes.

For the startup running of the launch file, here's the code I have on my .bashrc file:

TERMINAL = `tty`
case $TERMINAL in
       "/dev/tty2") roslaunch your_master_file.launch;
       sleep 2;;
esac

I chose tty2 but you can launch wherever you want. That would launch your file everytime you boot up your robot computer.