Page 1 of 1

Using TaskSector to play sounds

PostPosted: Wed Sep 17, 2014 11:31 am
by planigan
I would like to have the robot loop a sound file while within a sector, and only while within that sector.

I added a TaskSector to my map and then added a playBackgroundSound task under the "Enter sector" subheading. The sound (a simple chime) plays and repeats while in the sector, but I can't get it to stop playing when the robot exits the sector.

This seems like something you should be able to do. Is it possible? Am I just missing something?

Edit: My use case is rounding corners in a hallway safely. I want the robot to play a chime while it is approaching and rounding corners, in order to alert people rounding the corner from the opposite direction of its presence.