ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org

# Revision history [back]

Your code is slightly different from that one of the tutorial. The tutorial says:

(top-level
(par
(format t "First~%")
(seq
(sleep 2)
(format t "Third~%"))
(seq
(sleep 1)
(format t "Second~%"))))


Please note the sleeps. What happens in your case is that all three forms terminate very quickly and pursue doesn't have a chance to evaporate any of the tasks. With the sleeps, you force Third and Second to take long enough to be evaporated.

Your code is slightly different from that one of the tutorial. The tutorial says:

(top-level
(par
(pursue
(format t "First~%")
(seq
(sleep 2)
(format t "Third~%"))
(seq
(sleep 1)
(format t "Second~%"))))


Please note the sleeps. What happens in your case is that all three forms terminate very quickly and pursue doesn't have a chance to evaporate any of the tasks. With the sleeps, you force Third and Second to take long enough to be evaporated.