ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi,
You can add a .bash to the roslaunch in order to delay the launch. There is a previous answer with an example on how to do this. http://answers.ros.org/question/51474/can-i-run-a-bash-script-using-roslaunch/
The other option is to call the roslaunch from a .bash file, and simply add pauses in the .bash
Regards
2 | No.2 Revision |
Hi,
You can add a .bash to the roslaunch in order to delay the launch. There is a previous answer with an example on how to do this. http://answers.ros.org/question/51474/can-i-run-a-bash-script-using-roslaunch/
The other option is to call the roslaunch from a .bash file, and simply add pauses in the .bash
Here is an example: `
echo "Run simulation full system"
echo "Launching: stage_and_maps.launch" gnome-terminal -x sh -c "roslaunch stage_and_maps.launch; exit" echo "Waiting 30s left" sleep 30 echo "Launching: planned_prediction.launch" gnome-terminal -x sh -c "roslaunch planned_prediction.launch; exit" echo "Waiting 1m left" sleep 30 echo "Waiting 30s left" sleep 30 echo "Launching: sim_riskrrt.launch" gnome-terminal -x sh -c "roslaunch planned_prediction.launch; exit" `
Regards
3 | No.3 Revision |
Hi,
You can add a .bash to the roslaunch in order to delay the launch. There is a previous answer with an example on how to do this. http://answers.ros.org/question/51474/can-i-run-a-bash-script-using-roslaunch/
The other option is to call the roslaunch from a .bash file, and simply add pauses in the .bash
Here is an example:
`example:
echo "Run simulation full system"
echo
"Launching: stage_and_maps.launch" gnome-terminal"Launching: maps.launch"gnome-terminal -x sh -c "roslaunch
stage_and_maps.launch; exit" echofoo maps.launch; exit"echo "Waiting 30s
left"left"sleep 30
echoecho "Launching:
planned_prediction.launch"planning.launch"gnome-terminal -x sh -c
"roslaunch planned_prediction.launch;"roslaunch foo planning.launch; exit"echoecho "Waiting 1m
left"left"sleep
30 echo "Waiting 30s left" sleep 30 echo60"Launching:
sim_riskrrt.launch"movement.launch"gnome-terminal -x sh -c
"roslaunch planned_prediction.launch;"roslaunch foo movement.launch; exit" `
Regards