Here a small note about an Objective-C waste-of-time mistake on NSUInter (or C types) and NSNumber use, and confusion in lldb commands which doesn’t helped me to find the solution because of misusing it. This is a post for me to remember later, but it is for you if you arrived here in googling about a similar problem. The problem Today I had a strange problem with the following code:
In this second part, we will create a small library in C++ with a simple method which call ALTextToSeech to make Nao speak a sentence giving in argument. Its a first step to a more usefull library! I will call my extension of Nao’s API NaoChallengeGeoloc. First, create a new project with qibuild. If you don’t know how, look at [my first post]()! I will call it NaoChallengeGeoloc too. Overwrite the CMakeLists.
In this serie of a few post, I will explain the mains steps needed to program Nao with C++. In the full project, this C++ part will be only a service which will be called from Python code. It aimed to allow Nao to follow a line and read datamatrices on the walls of Aldebaran Nao Challenge’s room. We will use OpenCV for video stream analysis. We will see how to cross-compile from Mac for the GNU/Linux’s head of the Nao.
This week, I had to implement a genetic algorithm in Python programming language to solve a Mastermind game. I will explain here two solutions I found (which could be not the bests, but at least they work!) The Problem The problem I had to solve was a Mastermind game. If you don’t know what it is, you can check the rules at Wikipedia. In fact, the algorithm doesn’t solve the game following the rules… With that algorithm there is not any chance (or it is the power of random()!