|
-
Apr 21st, 2001, 08:33 AM
#1
Thread Starter
transcendental analytic
I need a set of classes that can describe
1 a path as a
a) set of timestamps and acceleration vectors.
b) ellipse
c) set of waypoints
2 a waypoint as a
reference to a path and a specific time
The important thing i want to do is to cast a path as a c) to a a).
The reason i want to do this is to calculate the fastest path for a rocket which should be able to have waypoints as planets (b) and other rockets(a). The rockets themselves defy gravity and obey classical kinetics.
i know an analytical solution would be too complex so i can accept a reasonable approximation.
Anyone know where i can find something like this?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 1st, 2001, 08:41 PM
#2
Thread Starter
transcendental analytic
just dropped out of sight, up!
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 2nd, 2001, 11:18 PM
#3
Addicted Member
Originally posted by kedaman
I need a set of classes that ....
What do you mean by that ? can you explain in detail ?
-
May 3rd, 2001, 01:55 AM
#4
Thread Starter
transcendental analytic
classes? The fundamentals of object orientation? Maybe you ask me to describe what kind of classes i need?
I'm actually looking only for this functionality, but as a sample set of classes:
abstract class path
class waypoint
class waypointset: public path
class vectorset: public path
Then when casting from waypointset to vectorset, the approximation is done, in another thread
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 3rd, 2001, 05:16 AM
#5
Addicted Member
LOL ! You mean the one We code in vb and save with a cls extension ?? 
Actually I thought you were asking about Classes,instructors who
teach the subject !
-
May 3rd, 2001, 05:53 AM
#6
Thread Starter
transcendental analytic
HEHEHEHE
yeah actually c++
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 3rd, 2001, 04:32 PM
#7
Thread Starter
transcendental analytic
I am sure the guesses can be used to aproximate fast, but when it comes to several paths crossing each other i begin to feel inconfident. Depending from case to case i might get uncomfortable amounts of course alternatives due to permutations. Imagine Two rockets are travelling a set of courses, the first needs to intercept the second once, and both courses needs to be changed in favour for the general amount of time needed per rocket, if rocket 2 has to intercept other rockets on its way, the permutations problem becomes a fact.
The guesswork needs to be able to try a reasonable amount of alternatives, so that if some obvious solution would be present, it would probably also be choosen.
The user is not suppose to interact either.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 3rd, 2001, 11:55 PM
#8
May I suggest you consider looking at algorithms in FORTRAN (sorry). VB it ain't.
Specifically netbun.f and some others in fishpak
http://www.netlib.org/fishpack/
This is assuming I understand what you want: to figure elliptical orbit points that intersect given loci starting with an intial vector set (waypoints?). You will iterate thru large numbers of secomdary midpoint vector choices to optimize the path, ie., fastest arrival time with the slowest arrival velocity.... Elliptical PDE's I believe are worth considering. I haven't messed with this since 1996, so please take that as a caveat. Also, celestial objects move ala n-body problems. This problem is ignored for this exercise, I gather.
-
May 4th, 2001, 08:43 AM
#9
Thread Starter
transcendental analytic
FORTRAN looks a bit too alien to me, thanks for the suggestion though
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 4th, 2001, 08:58 PM
#10
Addicted Member
FORTRAN looks a bit too alien to me, thanks for the suggestion though
Hehehe...
-
May 4th, 2001, 09:42 PM
#11
Frenzied Member
It ain't gonna happen.
Kedaman: The general problem you have described looks overwhelming. I do not think you are going to be able to solve it.
Even if you work on a particular case with more than 4 intercepts, I do not think you are going to find a solution if you do not allow human interaction with computational programs. I am not sure you could solve a particular case with as many as four intercepts.
If I really had to solve this problem, I would first try solving a simple case requiring one intercept. Then see if I could use the technique in some fashion to solve a problem with two intercepts. Then try three. Then see if I could generalize the approach.
If I discovered that I could not find a general method applicable to any problem involving two intercepts, I would just give up.
Why not try solving a simple example of this type of problem? We should learn to walk before we try running.
Live long & prosper.
The Dinosaur from prehistoric era prior to computers.
Eschew obfuscation!
If a billion people believe a foolish idea, it is still a foolish idea!
VB.net 2010 Express
64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.
-
May 5th, 2001, 06:42 AM
#12
Thread Starter
transcendental analytic
I know, i made an algoritm for a single intercept with a lineary accelerating object, which was analytical, that was my first step, so the next is bigger than the highest mountain on mars. I wasn't even looking for trying to solve this myself, i just wondered if someone had done a similar aproach and if there was any libraries out there that i could have use of.
If not then i could either simplify this idea radically/ have the user interact by setting the course manually while the computer does the interception calculations, but that causes poor AI, or i could replace the whole idea and use either a warp or hyperspace model for travelling.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|