If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #72
Joined: Thu Feb 09 2006, 08:29AM
Location: UK St. Albans
Posts: 1659
Patrick wrote ...
... but am I creating a mesh in x and y like a grid, or as a polar system? the lidar is polar, but the navigation doesn't have to be one or the other.
That's the beauty of the system, the coordinates can be in any system you like. Navigation will always avoid crashing, though a path of true least cost requires that the model costs represent the true real world costs. So if you implemented a log-polar model with uniform resistors, you would find that the chosen path always avoided the origin. Angle cosines work well for robot arms.
Polar lidar results are probably too low level to be using directly in a higher level planning tool like this. I agree with Steve's layered approach. When you develop, you will want to work on very low level, or higher level seperately, and will need a well thought out API to be able to swap modules in and out. The natural coordinate system for the higher level map data will be cartesian, whatever the robot eyes see in.
Registered Member #3414
Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
The robot arm and the 'copter are fundamentally different in one respect.
The robot arm is controlled by hydraulics/steppers and can 'freeze' while a decision is made.
The 'copter' can't 'freeze', it is 'dynamic' all the time.
As Steve has explained, any form of AI should have 'self preservation' as it's priority (subject to the 'Three Laws', of course). Mapping surroundings should be second order priority, and the 'Mission' should be third order priority, in my opinion.
Registered Member #2431
Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
Steve, im still thinking on the memory problem.
as for the lidar, ill convert it to Cartesian, and the navigation grid too. Ill have immeadiate interrupts for self preservation if some minimum distance is violated.
im not sure how to code blocks of functions and then have them run as needed though, and yet still keep the PID flight controller up and given the highest priority. im looking through my book now. im not as good at this coding bit as you guys, im mostly a fabrication and electrical guy...
Registered Member #30
Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Interrupts are your friends in this kind of situation. Typically you would set up a timer interrupt to run the flight controller tens of times per second as an interrupt service routine (ISR). Whenever the interrupt fires, the processor puts its current task to one side, executes the ISR, then resumes the original task where it left off.
Matters often come unstuck when trying to communicate between the ISR and the rest of the program. It is all too easy to bodge up some ad-hoc system of flags and variables that seems to work but actually has a hidden race condition. (I believe most of Windows 3.1 through to ME was written like this ) For all but the simplest communication tasks, you should use synchronisation objects like critical sections and semaphores, and then you have to watch out for deadlock.
My favourite method nowadays is a STL queue protected by critical sections. The critical sections protect the queue from race conditions (needed as the STL is not thread safe) and the queue protects the critical sections from deadlock (operations on a queue never block) so it "just works".
Registered Member #3414
Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
Steve Conner wrote ...
Interrupts are your friends in this kind of situation. Typically you would set up a timer interrupt to run the flight controller tens of times per second as an interrupt service routine (ISR). Whenever the interrupt fires, the processor puts its current task to one side, executes the ISR, then resumes the original task where it left off.
Registered Member #2431
Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
im laying up carbon and glass composite right now. im putting together a more capable tri-copter, just for path planning demonstration. it will have a 2 kg lift capability and the ability to fly through human doorways and halls.
im not abandoning my bi-copter, but that tech isn't capable or mature enough yet.
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.