How to run behaviors on NAO robot without PC? - nao-robot

I've just started working with NAO on Choreographe and I would like to know if there is a possible way to run behaviors without PC. Can I upload some behaviors to NAO and start running without pressing the run button on Choreographe?

Sure you can !
In Choreographe, find the "robot application" widget and then you can upload your program and define it as a "start at boot" program.
Here's a video showing that:
https://www.youtube.com/watch?v=w9RFkpI4vjo

Related

Strange Posture of NAO Robot

The Aldebaran NAO robot suddenly stop moving. It boots properly, and can be accessed webpage and Choregraphe.
However, it shows the strange posture as attached photo, and never moves it's motors.
Tried hard reset, and re-install naoqi, but no luck yet.
Any recommendation for resolving this strange issue?
It seems your robot is decalibrated.
You will need to contact to the support.

Synchronizing Nao Robots Via Choregraphe

Is it possible to synchronize 2 Nao robots without using Python? We want to avoid using python as much as possible, but if its the only way to get them synchronized we will switch
In choregraphe, using embedded connection, you can only connect to one robot at a time.
However it's easy to connect to another robot from a box in choregraphe, by typing only two python code line.
Here's an example:
1. Connect to your NAO as usual, and make a simple program to make it say "hello".
2. Then we will create another box to ask the other robot to speak, for that: Create an empty box (right click on the central area) then double click on it, to show the code, and on the onStart Method, add this line:
tts = ALProxy("ALTextToSpeech", "ip of the other robot", 9559)
tts.say("hello")
And tadaa, both of your robot are speaking, in parallel or sequentially depending how you connect the two boxes...

How do I send simulated keystroke to steam games on Windows 10?

I want to create a simple game controller/bot inside of a steam game similar to the one done here on gtaV to try out machine learning techniques. I've tried everything from pyautogui package, pyinput, and this go to method that was also used in the previous link and all of them work on the desktop apps and browsers but none of them work once I start the game.
I've also tried making and compiling this C code that I'm guessing the python is wrapping around but it's the same issue where it works until I enter the game screen.
I'm guessing the issue is something with the method of input as in the previous case, it had to be changed from ScanCodes instead of VKs but I have no idea on how to even figure out which input method must be used.
My current setup is python3 on windows10 home edition.

Flash/AS3 - Saving a File without Prompt

I need to save a file in Flash without a prompt; what my program does is it gets all the frames from the stage and then it saves them as png files, along with a text file that has the name of the object, and some other properties about it. The code that I have does save it without any problems, but I need it to not prompt me, because I have lots of frames to do this with.
Is there a way to do this with Flash the program or actionscript?
No, unless you're using Adobe AIR. The reason for this is Flash Player and its programs are generally run through a browser over the Internet, and if people could use Flash Player to just start saving files on other people's computers, there would be some very serious security issues. AIR, on the other hand, is generally run on a desktop, laptop, or mobile device, and its programs are run directly off the same, having been pre-installed. So whereas a website can suddenly just start running a script with Flash Player without asking you first, AIR requires you to have already installed the script/program on your computer, meaning that it should be there intentionally. So security restrictions are lighter, enabling the use of the File class in your programs.
The only way to save a local file with the Flash Player (in the browser) is with FileReference and it will always prompt the user.
However, using AIR (desktop or mobile app) you can save to the local file system without user input, using File and FileStream. You can create an AIR app using Flash Pro, usually without any code changes other than the AIR APIs you need (flash.filesystem in this case).
Another idea, if you must use Flash Player and not AIR, is to first zip all the PNGs and only save to file after they are all packaged. This way there's only one file and prompt to save.

Opening Windows console programs in Full Screen Mode

I am developing a C program that prints out a message. The problem with it is that when I run its .exe file, it does not run in fullscreen (until I press alt+enter to force it to full screen). I want the program to run in fullscreen itself when I run it. Is there any way I can do it?
Thanks in advance.
You could call SetConsoleDisplayMode() to force CONSOLE_FULLSCREEN_MODE. Beware that support for this has been disappearing. The last machine I owned that could still do this has been gathering dust for quite a while already. Along with the memory of the loud relay clicking sound, mixed with the high-pitched wail of the flyback transformer in the CRT.

Resources