Browse Search Popular Register Upload Rules User list Login:
Robot with radar avoids moving obstacles

screenshot of the scene

Author: matto

Group: Default

Filesize: 1.32 MB

Date added: 2020-09-22

Rating: 6.1

Downloads: 2590

Views: 248

Comments: 11

Ratings: 3

Times favored: 0

Made with: Algodoo v2.1.3


Scene tag

Want to see the construction of this scene?
Watch the video!!
Thank you!

Do you want to see more?
Many other videos?
Check out this playlist !!!

Last edited at 2020/09/23 20:06:30 by matto
Please log in to rate this scene
Similar scenes
Title: Doppler Radar demonstration
Rating: 5
Filesize: 6.91 kB
Downloads: 111
Comments: 0
Ratings: 1
Date added: 2019/06/21 19:16:37
Made with: Algodoo v2.1.0
Rating: rated 5
Title: Radar V2
Rating: 7.2647
Filesize: 31.05 kB
Downloads: 906
Comments: 6
Ratings: 11
Date added: 2010/01/05 04:51:58
Made with: Algodoo before v1.8.5
Rating: rated 7.3
Title: Radar 3.0
Rating: 5.8889
Filesize: 204.44 kB
Downloads: 810
Comments: 1
Ratings: 3
Date added: 2014/03/02 04:51:32
Made with: Algodoo v2.1.0
Rating: rated 5.9
Title: Real - Time - Radar
Rating: 5
Filesize: 44.74 kB
Downloads: 339
Comments: 2
Ratings: 1
Date added: 2014/02/27 04:09:32
Made with: Algodoo v2.1.0
Rating: rated 5
Title: Radar =)
Rating: 4.5
Filesize: 286.43 kB
Downloads: 504
Comments: 1
Ratings: 2
Date added: 2009/07/20 15:37:38
Made with: Phun
Rating: rated 4.5
Rating: 5
Filesize: 468.09 kB
Downloads: 381
Comments: 0
Ratings: 1
Date added: 2009/01/31 03:38:44
Made with: Phun
Rating: rated 5
Need instructions for how to control the Robot. Arrow keys do nothing!
I probably made a mistake !!
The robot should control itself!
Oh, Okay. But I downloaded the scene again after you made a change to it, and it still doesn't seem to be working. The Robot just floats around like a balloon and doesn't seem to be moving in a controlled manner.

Also, that smaller version of the scene on the right-hand side of the main playfied that has those yellow and red arrows pointing in and out of it is very confusing. I don't understand what that is telling me. At first I thought it was telling me to move the Robot with my arrow keys, but then you said that the Robot moves by itself. So, I don't understand what those arrows are telling me. I'm sorry, but like I said before, this scene is very confusing because I don't understand any of it. I watched your YT video and became even more confused!
Xray thanks for the comment!!

I wanted to create a robot that avoids obstacles using a radar.
The main robot on the left has a rotating laser.
This laser has the Scene.addCircle script on "on.laser.hit".
The position of the generated circles is with scaled and translated coordinates, this is the pos: = [(e.pos (0) / 8) + 56, e.pos (1) / 8];

The circles appear in the smaller version of the scene on the right side of the main playfied and reproduce what the robot on the left "sees".

The small yellow circle with 7 lasers on the right also follows the position and angle of the main robot, but reduced and scaled.
this is the script on postStep:
(e) => {
x =; // x main robot
y =; // y main robot
a =; // angle main robot
pos = [(x / 8) + 56, y / 8];
angle = a

Obstacle detection occurs in the right square.
The 7 lasers on the yellow circle act as distance meters.
The 7 lasers are connected with the thrusters of the main robot with
In doing so, the main robot deviates and avoids obstacles indirectly.

I hope I have explained my idea well.

The yellow and red arrows pointing in and out were for decoration only.

Maybe short-term memory can be confusing, I changed the title.

I uploaded the scene to another computer (a little older), and the scene works very badly.
It goes slow and the main robot's laser hits objects many more times, generates many more circles in the right square and slows down the scene again.
I don't know why, if the scene lags, the laser hits several times ..
On my computer the scene runs smoothly and I hadn't noticed this problem.
I have tried reducing the simulation frequency to 10, and it works better.

If you want, try downloading it again to see if it works.
Thank you!!!
Wow, that's a lot of good information, matto! The scene does run much better now, but on my computer, it still seems to not work quite right. The robot moves sort of like a submarine under water. That is, it move rather sluggishly, and it doesn't seem to always make the correct moves. For example, it will see an object in front of itself, and then tries to steer away from it, but because of its very sluggish moves, it will sometimes hit the object and bounce off of it. My computer is not weak or slow, but on the other hand, it's not a high speed gaming computer. It runs Windows 10 with 6GB memory, and a 500MB solid state hard drive. It does run most Algodoo scenes quite easily (except for kilinich's 3D scenes which are very complex).

Also, you said: "The yellow and red arrows pointing in and out were for decoration only." Well, I didn't know that until you told me. So, in some cases (like this one) adding "decoration" to a scene can cause confusion, like it did for me.

I hope that you know your scenes impress me very much! I think they are awesome, and that you are a very talented engineer. And I give you the same friendly advice that I give every other talented Algodoo scene makers: "Just because YOU understand how your scene is supposed to function, doesn't mean that everyone who plays them can understand them too!" That's why I believe that it's essential to give plenty of instructions to people for scenes that are complex or have a lot of buttons or keys to press. ;)

Nice job so far! :tup:
Thanks so much!!
I'm glad we understood each other ..
I will follow your advice, I will be careful to specify the functioning of the scenes !!
Keep up the excellent work! _o_
The scene works fine for me
It's pretty cool
Oh, thank you, I'm happy!
Last edited at 2020/10/18 20:55:38 by matto
rating 10 just on principle. hats off!