United Kingdom
Asked — Edited
Resolved Resolved by CochranRobotics!

Help With Roborealm Saying Detected Objects

Hey guys.

I need a little help with some script. As the title suggests, I'm trying to get an ARC script to speak an identified object using RoboRealm. It is all set up and passing variables to ARC, and I have a couple of objects trained, but I'm having trouble writing a correct script. Here's what I've got so far...

if($RR_NV_ARR_OBJ_NAME[0])
say("Steve")
elseif($RR_NV_ARR_OBJ_NAME[1])
say("control")
endif

I would be grateful for any help with this to get me started.

Thanks.


ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

#25  

do you have Team Viewer installed? If so, I can connect to your computer and see what is happening. If not, I will get something working here and post it for you.

#26  

I do have it on my main computer but not the robot which has a onboard computer.

#27  

okay, let me slap together a project real quick. I will post a link shortly.

#28  

Actually, I just tested the script and it is working. Can you send me a screenshot of your ARC with the variable list being displayed?

This is the code that I am running without any issue. This will say the value of the first item in the array. Roborealm can identify a lot of objects so it is possible to have more items than just the one in position 0. These would be 1 and up. Can you see the value of the variable changing as you show the camera different objects? If the original object is in the view of the camera, it will hold position 0 and the new object will get position 1. if the old object is not in the view of the camera any longer, the new object will be in position 0. It would be possible to modify the code to say the name of multiple objects but we need to get it saying the name of one of them first.


:StartOfLoop
WaitForChange($RR_NV_ARR_OBJ_NAME[0])
say("I see " + $RR_NV_ARR_OBJ_NAME[0]+ ".")
Goto(StartOfLoop)

Another option is to connect to your robot from your main machine, but my assumption is that roborealm isnt installed on this computer so it wouldnt work. If it is on your main computer, I could connect and check it out from start to finish for you.

#32  

Look at 1 of the tutorials see if they have information. I do have a code.