Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Making "Cy" Say Hello

So, I was thinking, I would like my robot to be able to say a greeting (like hello,how are you?,nice to meet you,etc) when its using the camera face tracking. I know how to be able to get "Cy" to respond with a single word, but would like him to be able to give different greetings randomly. Any ideas? I really wasn't able to find what I am looking for anywhere in the learning section. Thanks!


Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

This should do what you want;


$response = GetRandomUnique(0,4)
if($response = 0)
Sayezb(" hello")

Elseif($response = 1)
Sayezb("How are you")

Elseif($response = 2)
Sayezb("i hope you are having a good day")

Elseif($response = 3)

Also, there are activities in the learn section which can give you the basics. For example, i would recommend following this tutorial: http://www.ez-robot.com/Tutorials/Lesson/64?courseId=6

Use the learn section to find tutorials. Here's a direct link to the tutorials: http://www.ez-robot.com/Tutorials/Course/6

Lastly, there is a question mark on every control. If you press that question mark, it will bring you to help of that control. Since you wish to use the camera, i would suggest pressing the question mark on the camera control. There are a dozen tutorials for the camera control.

The tutorials will demonstrate a very simple place to enter a script when the camera detects an object. It's in the camera Config menu and it's called Tracking Start. You will find it in the Scripts tab of the Camera Config menu. Simply insert something like


SayEZB("Hello, i see your face")

and that code will execute every time the camera detects something. You will have to enable Face tracking type. Also, read the disclaimers in the camera's manual page to understand the tracking types. Face tracking returns many face positives in a visually noisy environment.
Awesome, thank you both! I looked thru the tutorials but wasn't sure I was getting the right info, and was sure someone might have already done something simular that could help :D