Hello.
I'm trying to get the variable "AREA" from Geometric statics in the pipeline using the python API. What I'm trying to do is a variant of the "Wave Hello" example of the delta frequency feature. Instead of speaking "Hello" by using the Speak feature in the pipeline, I want to use the python API to say a list of different greetings using the python random module and TTS.
My problem right now is I can't seem to get the "AREA" variable from Geometric Statistics. It prints as a blank line in my script. I'm trying to get it like so:
area = rr.GetVariable("AREA")
print area
I tried printing a list of all variables in a test python script, and I got the variables in the roborealm pipeline, but the Geometric Statistics variables weren't listed.
How would I successfully accomplish this. Eventually, I'd like to do something like:
area = rr.GetVariable("AREA")
if area >= 200:
say(random.choice(["Hello", "Hi", "Greetings"]))
I also notice that right now, whenever I run the script like so in the pipeline through the API, the random greeting is stated automatically without me waving my hand in front of the camera, but after that, nothing happens.
|
|