Asked — Edited

Using The Camera To Detect Multiple Objects With A Different Script Execution Fo

Has anyone been able to teach their robot to recognize multiple objects while executing specific scripts per object? I have trained my robot to react to an object but it appears there is only one script allowed to trigger.

Thank you!

Douglas


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
Synthiam
#1  

Check the variable that holds the name of the object. Use the variable list to see what it is. Use an IF condition to compare the name.

Programming allows things called IF conditions. You can use those to perform different actions based on the value of variable.

Check out Blockly to visually see how an IF condition looks.

I believe you're not using a revolution robot. This means you're using just the ezb or IoTiny. There are courses that explain how to program in ARC, with examples. Here's a link to the course for the ezb programming: https://synthiam.com/Tutorials/Lesson/-1?courseId=4&sectionId=256

User-inserted image

#2  

Thank you DJ! I'll check it out. I want to train R2 to react to different costumes; scared when he sees a red Imperial Guard, annoyed when he sees a Stormtrooper, happy when he sees a Jedi, etc.

Here's my first attempt....

Thank you for the help!

Doug