You have to either load certain specific programs in NAO and trigger them with a “key” word that you would have determined in your own program OR there are few existing programs that are in the public domain that you can download and transfer in your NAO, then you trigger each specific program with the “key” word ….you can also trigger these programs by clicking the program in “Choregraphe” then “play”….hope this will help you !!
I learned a lot when I downloaded the SoftBank Robotics documentation. I think if you go at: aldebaran.com and search for “LEARN IT NAO6 - DO IT NAO6”…that should allow you to download the doc. called NAO6 Learn IT - The Basics……that is about 85 pages. There is also: NAO6 Do IT - Creative Project Ideas….this is about 140 pages. These will help you big time creating programs and/or write/copy from these books other existing small projects. I think if you do that you will learn a lot. Let me know if that helps you Greg