Ask Your Question

Revision history [back]

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

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

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" echo foo maps.launch; exit"

echo "Waiting 30s left" left"

sleep 30 echo

echo "Launching: planned_prediction.launch" planning.launch"

gnome-terminal -x sh -c "roslaunch planned_prediction.launch; "roslaunch foo planning.launch; exit" echo

echo "Waiting 1m left" left"

sleep 30 echo "Waiting 30s left" sleep 30 echo 60

"Launching: sim_riskrrt.launch" movement.launch"

gnome-terminal -x sh -c "roslaunch planned_prediction.launch; "roslaunch foo movement.launch; exit" `

Regards