Unit 5. Demo/simulation in the browser using JavaScript and Canvas

6
2

He-hey!

I've made Unit 5 demo again in JS. Which you can play with in your browser. Play with it here!

You can:

  1. Add/remove (With selected node and del button)/move nodes
  2. Change smoothing parameters
  3. Start / Stop robot
  4. See it's trail =)
  5. Change PID parameters

You can change everything on the fly!

Video with me playing some is here.

p.s.
The sad part is that I didn't get to finish all HW assignments. =(( I was so tried ti finish my demo, that I hadn't time to do HW properly.

This is third demo of mine. I had one for Unit 4 and for Unit 3

asked 26 Mar '12, 20:15

Aleksandr%20Motsjonov-2's gravatar image

Aleksandr Mo...
1.9k131822
accept rate: 20%

edited 26 Mar '12, 20:21


One Answer:

I have an issue with robot fall into making circles if it looses the track. When it far away from track it keep turning forever.

I guess it's because of how I calculate CTE. Currently my CTE is minimal distance to ANY point on the path. It wasn't covered in the class (how to do it well in the wild) so I did the first what came to my mind.

I guess I need to use perpendicular line or even something like described in this paper. Or maybe I missed something from lecture.

I guess if I put robot far away from y-line in class's code, than it also start going around, isn't? I'll try.

Any suggestions how to fix that?

link

answered 27 Mar '12, 04:48

Aleksandr%20Motsjonov-2's gravatar image

Aleksandr Mo...
1.9k131822

Your answer
Question text:

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5,185
×133
×101
×36
×12

Asked: 26 Mar '12, 20:15

Seen: 332 times

Last updated: 27 Mar '12, 04:48