Learning Roborealm

Hello everyone,

Out of curiosity, I would like to know how to use roborealm. I wanted to start with something basic. for example, a P&T that can track a ball of a certain color. But my question is, where do i start? I tried messing around with it, but there’s so many functions it becomes quite confusing. I took a look at the tutorials on the roborealm website, and I can’t really learn much from them.

Also, regarding programming. from what I have heard roborealm uses vbscript? If it does, I’m wondering if its much different than the regular Visual basic that I know.

Thanks.

You have to use the below script and the ssc-32 module. the servos have to be put on the right channels and in the ssc-32 module you need to select the servo_position variable on the channel you want to use. I cant remember the details beyond that. If you follow the tutorial using the script file below you should be able to get something to work.

[code]’ first check that something moving is in view
if GetVariable(“COG_BOX_SIZE”) > 10 then

’ get the current screen width so we can calibrate movement
width = GetVariable(“IMAGE_WIDTH”)

’ get the current center of movement
x = GetVariable(“COG_X”)

’ scale the image space into the servo space
x = CInt(((x/width)*2000))+500

’ set the variable for use in the servo controller
SetVariable “servo_position”, x

end if
[/code]

I’m sorry. I think you don’t understand…

I am a COMPLETE NOOB, I have never used roborealm before. I don’t know where to put the code, I don’t know VB script, I pretty much just don’t know anything about this software. :open_mouth:

So I appreciate the help, but its not that simple for me.

The Roborealm website does have a “Getting Started” document - did you look at it?
roborealm.com/help/Getting%20Started.php

There’s tons of information in the Documentation section:
roborealm.com/help/index.php

No i didn’t look there. thanks!

But I have another problem. I can’t get the SSC-32 example I found on the page you linked me to to work. It says something like “Cannot find ScriptSite.dll” and tells me to place it in my C:\Windows\System32 folder (which I tried). Is this a compatibility issue? I’m running Windows 7 beta.

That, uh, sounds like a good question for the Roborealm people. I’ve no idea, sorry.

Edit: Check out the FAQ. Seriously, take some time to read over the information on their website - it might answer some of your questions.

roborealm.com/FAQ.php#q13
roborealm.com/FAQ.php#q16

Thank you Snailkeeper! I figured out whats wrong and I can tell you that it really stinks. The “ScriptSite.dll” file isn’t compatible with x64 Operating systems. :frowning: I gonna have to put another OS on my PC just so I can use RoboRealm. I thought about using a vitual PC for it, but the Virtual video hardware probably isn’t enough to drive a webcam…

No problem, glad I could help.

Might be a good idea to shoot an email over to the folks at Roborealm, to find out if they will be making an x64-compatible .dll file anytime soon. That’d be the best solution, after all.

Done! :slight_smile:

I’ll post there response when they E-Mail me back.

I have setup in roborealm a blue ball tracking eg COG etc and now i want my H3R bot to walk up to the ball or away depending on position of ball.

I think i have established everything but control of the robot.
Can anyone help me connect to my robot
I am on COM port 7
6 legged hexapod
Successfully connected serially to my robot and used powerpod to move the robot

Open to suggestions please

Thanks in advance

I just received a reply from Roborealm.

Time to run XP x86…

In the serial communications console area i am sending the code

\x10\xff\xef\x80\x80\x80\x80

This simulates a triangle button, works correct.

I have created a mini vBscript

size=GetVariable(“COG_X”)
if size < 100 then
SetVariable “Left”, “\xe7\xff\xf8\x80\x80\x60\x80”
else
SetVariable “Left”, “\x20\xff\xff\x80\x80\xa0\x80”
end if

This changes the variable Left when i move the blue ball in front of camera so all good there

In the sequence window of the serial i add my variable Left and it doesnt send out either of the strings above, totally different data.

I presume this is a conversion issue but i have tried differnet formats of the data and i am struggling to get the correct sequence data to output.

Any help please??

It’s been a while since i’ve tried using Roborealm. Now that I have Windows XP installed I thought I’d give it another go. But sigh Unfortunately, Now roborealm is crashing when I load the SSC-32 Example into the program. It takes a couple of seconds but about 3 seconds after I load the example, roborealm crashes.

http://www.majhost.com/gallery/DarthToa/Computers/roborealm1.png

As you can see, this is what happens upon opening the file…

http://www.majhost.com/gallery/DarthToa/Computers/roborealm2.png

If it’s crashing when Roborealm tries to access your camera, they have some info here:
roborealm.com/FAQ.php#q21

If it’s crashing for some other reason or the FAQ doesn’t help, I’ve no idea. You’ll likely have to check out their forum.

No, it’s not the camera. It only crashes when I load the example.
I guess I have no other choice but to check out there forum.

Older saved routines quite often don’t work properly with the later versions of RR and need to be tweaked a little.

As mentioned by Snailkeeper, best to pop a post on their forum and pester a little.

Orac

That’s very true. RR crashes for many things and I usually recreate a new project from scratch with each new release as needed.

Do you have the SSC-32 card connected? is it turned on? are all the SSC-32 modules settings correct? If you dont know, then I suggest holding Ctrl when opening RR and starting over.

Yeah i have everything turned on. It’s not just the example itself though. Wen i double click the Control->Servos->Lynxmotion_SSC RR still crashes. Basically I can’t create a new project with the SSC-32.

I really don’t understand what the problem could be. I just downloaded Roborealm and expected it to work.

When I have time this weekend, I’ll hook up my 'Ole 32 to RR and see If I can get it to work. If it works, then Ill tell you what settings I used.