Shop OBEX P1 Docs P2 Docs Learn Events
4D Motion Tracking — Parallax Forums

4D Motion Tracking

rjo_rjo_ Posts: 1,825
edited 2010-02-14 18:22 in Propeller 1
I'll be detailing this project over the next week or so. All of the pieces are working... now it is just a matter of getting the mechanics right and crunching numbers[noparse]:)[/noparse]

The concept is to use stereo line scanned images, which are exactly synchronized, to acquire motion data over time and store that data to an SD card.

Getting the two TSL1401's synchronized turned out to be a piece of cake. Both TSL's are controlled with the same pins coming from the Prop.
The two analog signals (from each TSL1401) then go into channels 0 and 1 of the MCP3208.

I have room for a 3rd Prop... so I expect that I'll be using that for near time analysis and display.

Since I'm a stereo buff... I'll also be taking stereo pictures with this same basic setup.

AND since we are all robotics enthusiasts... I will be adding a laser to get object distances in a quick and dirty way.

Notice the noise in the upper left hand corner of the TSL1401 scans... handy evidence that it is time to disgorge your code!-[noparse]:)[/noparse]

ILMP

Rich
640 x 480 - 64K
640 x 480 - 46K
720 x 480 - 13K

Comments

  • ElectricAyeElectricAye Posts: 4,561
    edited 2010-02-12 00:35
    Looks cool. What exactly are you tracking with it?
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-12 02:20
    Hadn't really thought about it[noparse]:)[/noparse]

    Just wanted to see if I could make it work. But now that you mention it ... that little dog driving my car has been poo-ing in my ex's basement.

    I think it is her fault... She swears it is my fault. This could settle the argument.

    Propellers to the rescue!!!!

    Seriously, I am expecting a Propeller paintball contest... and I want to be ready.

    Rich
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-12 02:28
    Or LaserTag perhaps?

    $3 Walmart
    640 x 480 - 18K
  • VIRANDVIRAND Posts: 656
    edited 2010-02-12 04:57
    What is 4D? It can't be time or all motion pictures would be 3D. Linear CCDs are 1-D.

    Oh, this is like google earth streetview?
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-12 05:37
    Good point from a fellow traveller.

    4D is one more than 3D[noparse]:)[/noparse]

    When you come to OTTAWA for Oldbit's meeting... remind me to take you to the Roxy Theater across the street. It seems like every movie that comes along is advertised as being in 3D these days. Hopefully, one of these will be playing. You will swear that a 3D movie at the Roxy is exactly like every other movie... no funny glasses, nothing jumping off the screen... nothing at all. So, I think that Hollywood might have caught on to your idea that time is the third dimension and that all movies are 3D... since that seems to be the way they are advertising them, and they don't look any different to me... what other conclusion can we conclude?

    So, if time is the 3rd dimension... then the Z-axis would be the 4th dimension.

    Since I am using "linear" arrays, I wondered whether I was cheating. I considered calling it 3 1/2D, but I'm not really sure that half a dimension is allowed in physics... I wouldn't want to break any laws[noparse]:)[/noparse]

    I also considered calling it "Diachronic Motion Analysis in 3D," but that sounded a little too snooty and a little redundant since all motion happens over some increment of time[noparse]:)[/noparse]

    Rich

    Post Edited (rjo_) : 2/12/2010 5:53:11 AM GMT
  • VIRANDVIRAND Posts: 656
    edited 2010-02-12 09:18
    rjo_ said...
    Since I am using "linear" arrays, I wondered whether I was cheating. I considered calling it 3 1/2D, but I'm not really sure that half a dimension is allowed in physics... I wouldn't want to break any laws[noparse]:)[/noparse]

    By definition, Fractals can have fractional dimensions. That includes coastlines, but I am not sure
    if a coastline (of an island) has more or less than 1 or 2 dimensions. My guess is, a 1 plus some loose change.
    I think it is something like the maximum (limit) amount of space it can occupy over the minimum
    amount of space and dimensions it can fit in, but that's not the exact definition of fractal dimensions.
    The fractal that's all triangles has around 1+1/2 dimensions. So my rough math definition seems inverse.
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-12 14:36
    Virano,

    You have again put your finger on the crux of it.

    Is it a dimension simply because we decide that it is a dimension?

    Should we have real dimensions and imaginary dimensions? What is a universe described by an imaginary dimensions?
    Does time actually exist, or can we just define it any way we like? (Just because we have double vision does not mean that for a brief moment, everything exists in pairs. Just because we sense time does not mean that it exists in the way that we experience it or even that it exists at all.) Clocks exist... maybe the 3D dimension should be a master clock, which allows the serial representation of the entire universe of events?

    And most importantly... what is currently the absolute fastest way to write to an SDCard with a Prop? Who holds the current record? how did he achieve this record?

    I am getting 128 bytes from a TSL1401 in around 3 milliseconds.... in SPIN... and I am about to code it in PASM, but my write times to the SD card are glacial. What is the best I can do?


    Rich
  • VIRANDVIRAND Posts: 656
    edited 2010-02-12 16:40
    Philosophy is a runaway train and the looney bin is the last stop. LOL Or something like that.

    Um... a few people are working on speeding up the SD, I'm not sure who is fastest,
    I don't think all the bugs are out of the latest versions of fsrw, maybe someone else knows.
    Kye has an advanced version being debugged lately, but I don't know how fast it is.

    Maybe the recent WAV player has a fast SD object? I've been looking too, but I don't know all the details.
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-12 17:01
    I think I'll post the question in it's own thread. Lot's of people are interested that might not make it to this thread[noparse]:)[/noparse]

    Thanks again,

    Rich
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-13 15:39
    This is just a status update with preliminary code... all in Spin. There are two archives, one for the user interface... which isn't much of an interface yet ... and one for the camera, which includes a graphic display of the output.

    Thanks to the help of rokiki and lonesock, I have achieved orbital momentum and am now walking on clouds[noparse]:)[/noparse]

    I haven't made an effort to document this yet, because I intend to immediately change it. This is a proof of concept to my brain... that what I think can be done... can in fact be done. It can... now it is time to do it right.

    As proof to your brain, please see the stereo self portraits included. These were obtained by slowly rotating the imaging board around the long axis... manually.... while holding down the save to SD button. In the first I look like an alien... in the second I am clearly human, but nothing you would invite to dinner. If I had been wearing a tux in the third, you would have been able to see it in the third image. I wasn't and you can't... but not bad for a hand held stereo pair!!!

    These are 8 bit images... in the next version, they will be 16 bit images acquired by automatically rotating the TSL1401 camera. This version uses two Props... the next will use 3. One for acquisition, one for display and one for control. Lots of buttons and knobs!!!!

    No motion tracking or ranging data yet... that comes next.

    I would like to note that working with the TSL1401 is not only fun... it might improve your bowling. Last night at Special Bowling league, I scored a 40 year high series of 450!!!.

    I'll be out til late tonight.

    Thanks guys.

    Rich
    256 x 256 - 3K
    256 x 256 - 3K
    256 x 256 - 4K
  • CannibalRoboticsCannibalRobotics Posts: 535
    edited 2010-02-13 16:45
    rjo_ said...
    4D is one more than 3D[noparse]:)[/noparse]

    "... but this one goes to 11"

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Signature space for rent!
    Send $1 to CannibalRobotics.com.


    338 x 400 - 64K
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-14 02:31
    I haven't made a secret of the fact that I'm pushing 80... well maybe not 80... but old enough that I don't have a clue who that picture is... is that you?

    By the way, I went to your web site... and it is wonderful. And as far as I know, it is actually a new concept... free hosting... well almost free... for bot people only. That is fabulous. I'm new to building robots, so I am trying to sneak up on one and see if I can get it do my bidding. The other premise on your site... is that there should be somewhere for people to go... to find all of those little parts that you can't find anywhere else.

    Take a look through Parallax's store... notice all of the nuts and little tiny bolts that aren't there. Where are the little gears for the little motors?.... This might not be an issue for other people... but it is starting to aggravate me.

    flat plastic with holes drilled to meet the form factor of every blessed product... nothing. If you want it... you have to do it yourself and if you can't do it... you are SOL.

    So... it isn't fully formed. But it is certainly something that the guys around here should support.

    Regards,

    Rich

    Post Edited (rjo_) : 2/14/2010 2:39:15 AM GMT
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-14 03:56
    Phil

    I would follow you anywhere... just point the direction[noparse]:)[/noparse]

    Rich
  • localrogerlocalroger Posts: 3,452
    edited 2010-02-14 14:39
    VIRAND and rjo_, here is a nice explanation of dimensionality, including fractal fractional dimensionality...

    math.rice.edu/~lanius/fractals/dim.html
  • CannibalRoboticsCannibalRobotics Posts: 535
    edited 2010-02-14 16:44
    rjo_ he's a character from the movie 'This is Spinal Tap'. Totally convinced that his amplifier was louder just because the volume knob had an 11 at the top of the scale.

    On the websites, don't forget:
    http://www.mcmaster.com/ ' for everything bigger than 1/4" and the best website ever
    http://www.grainger.com/Grainger/wwg/start.shtml ' for stuff at McMaster Carr at a slightly better price sometimes
    http://www.digikey.com/ ' all things electronic and a data sheet wonderland
    http://allelectronics.com/ ' the robotic internet version of that dusty old ham radio shop full of the coolest stuff - "Where do you get this junk?"
    http://www.npcrobotics.com/ ' National Power Chair for rebuilt motors and transmissions

    I'd bet erco has a great collection of links too!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Signature space for rent!
    Send $1 to CannibalRobotics.com.
  • rjo_rjo_ Posts: 1,825
    edited 2010-02-14 18:18
    Thanks for the explanation... that is hilarious[noparse]:)[/noparse]
    Thanks for the links.
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2010-02-14 18:22
    This is looking really interesting Rich, can't wait to see more.

    To see the spinal tap moment in all its glory see: www.youtube.com/watch?v=EbVKWCpNFhY

    The last two seconds are the best.

    Graham
Sign In or Register to comment.