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.
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
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.
So I appreciate the help, but its not that simple for me.
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.
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. 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…
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.
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
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.
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.
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.