ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.
2 | No.2 Revision |
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.