Hi,
One question and some informations about our project.
Question:
I’d like to modify chatscript variable with robot data. For exemple:
* robot see a face with camera and face recognition algorithm
* We set $username
* We can use it without asking his name to user.
In c++ i made:
#include "src/variableSystem.h"
SetUserVariable("$username",output_from_facerecognition);
and in simplecontrol.top we have
$username = "nobody"
in a topic we can have
u:(do you recognize me)
if ($username != "nobody")
{
sure, you are $username
}
The problem is SetUserVariable doesn’t modify $username (value is always “nobody”)
i tried to debug, we enter in function WORDP StoreWord(char* word, uint64 properties)
StoreWord found the variable $username here
if (fullhash == D->hash)
{
AddProperty(D,properties);
return D;
}
but in static WORDP CreateUserVariable(char* var)
if (!(D->systemFlags & VAR_CHANGED)) // not current
is true (all pointers of D seems invalid) and variable is not modified.
I still investigate but may be you have an idea ?
I work on windows with last version.
Information about nao robot:
We progress in dialog with a real robot. We already done:
- Create a little french dictionnary
- Create some topic with most common sentense (100 input).
- Create a script that generate a Nuance Speech recognition file.
For exemple we can say:
- move
- tell me a story
- or like siri: remember me i have a meeting tomorow at 2 o’clock.
- what is your name….
I’ll try to make a video.
best regards,
David