
PRO
UweP
Germany
Asked
— Edited
Digital Clone Rover Roli
maybe someone can use it....
can be used with the standard project of Roli, just create an EZ-Script and run it:
$go=true
repeatwhile($go)
$strSend = "D9@" + GetServo(d9) + ";D10@" + GetServo(d10)
$strSend = $strSend + ";D19@" + GetServo(d19) + ";D18@" + GetServo(d18) + ";D17@" + GetServo(d17) + ";D16@" + GetServo(d16)
$strSend = $strSend + ";D15@" + GetServo(d15) + ";D14@" + GetServo(d14) + ";D13@" + GetServo(d13) + ";D12@" + GetServo(d12)
SendUDP("127.0.0.1", 11000, $strSend)
Sleep(100)
endrepeatwhile
Here is the program for download: digitalCloneRoverRoli.zip and here the Unity project data to tinker around with yourself: Unity.zip
Have fun ...
24.07.22 Update in Post #17 - Version with moving Rover ....
.
You are doing so well with Unity! I'm incredibly impressed. I always thought it would be neat to have a virtual robot app like that where you could program a robot without actually owning the robot. And you did it! Imagine how awesome it would be if someone could design their robot with the ez-bit parts! Have you thought of making something like that? I'd sell it for you!
thanks, I really appreciate it. Exactly this is the point, i made it exclusively with the stl fils from here, nothing is made by myself. I'm also a complete novice with unity but it's so easy. I've been thinking about doing a tutorial, are you interested? In short, assemble the stl files in tinkercad and export them as obj, import them into unity .... Whereby my c# and also e.g. the string in EZ-Script with UDP are definitely not what they should be, I am aware of this but it works :-)
A tutorial would be neat! I think it would be really useful for schools that can’t afford robot hardware. They could program a robot without the high cost.
i guess you could also put the robot in a 3D world and have it move too? That’s so neat!
hmm, I have to think about how to get that visualized, e.g. what if the robot reaches the limits of the world etc... I'm trying to create a tutorial, as a start, based on what I've done so far. this would be my first ever created tutorial :-)
Edit1: quick search has shown, should also be easily possible, keyword "infinite world" https://www.youtube.com/watch?v=f9uueg_AUZs https://www.youtube.com/watch?v=cUAprBYS_0Q
Edit2: hmm, another idea that just occurred to me, how about a free asset in unity with all ez-bit parts.... .
Oh a free asset with ezbits is brilliant. And then some code attached which allows moving the parts like you did.
I can write a class that acts as an ezb. So you actually connect ARC to it as an ezb! Wow that would be so cool.
I think by making the objects rigid that the works could have walls. Or a room. Or what ever the world is. Because there’s a number of free 3D world assets that can be downloaded from the unity store
Exactly, this should all be possible with relatively little effort.
I still have a problem that I haven't been able to solve so far, so you can certainly contribute a solution with your knowledge.
The "servo models" in Unity are at 90 degrees but the axes in Unity are of course at different degree positions, also in Unity you sometimes have negative values. I need a function that transforms the servo positions from ARC into the Unity world, here is the code from Unity, I calculated it with a try, but there should be a function for it:
This Parts:
right Elbow in Unity
right Shoulder in Unity
Do you understand what I mean ?
The UDP part would also have to be rewritten or replaced in Unity, I found something on the Internet and used it, but this is definitely too much of what we actually need, but you already have everything ready anyway Server/Client Code,
I uploaded the two unity scripts: Scripts.zip
.
A mapping function is useful for that.
You can therefore do something like...
That will map the value 70 (within the range of 1-180) to a relative value within the range of -1 to +1
perfect, exactly what I mean. I didn't know what to look for (keyword). Works great, one step further...
.