473,237 Members | 1,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,237 software developers and data experts.

Using Python To Change The World :)

Hello, I'm a teen trying to do my part in improving the world, and me
and my pal came up with some concepts to improve the transportation
system.

I have googled up and down for examples of using python to create a
city street but I can not find any.

my objective is to replicate a section of los angeles using python,
and program the street lights and cars and whatnot. Should I be
looking towards 3D to do this?

so here is MY question:
how would you replicate a street intersection in python? and
furthermore, how would you do you have the cars move up and down those
"streets".

my question to YOU is:
can you point me in the right direction? I will search on my own, but
I would greatly appreciate any help :)

and if anyone is interested in learning more about this project (we've
got some nifty things planned), or if you wanna help, give a shout ;]

Nov 14 '07 #1
9 1878
2007/11/14, do****************@gmail.com <do****************@gmail.com>:
Hello, I'm a teen trying to do my part in improving the world, and me
and my pal came up with some concepts to improve the transportation
system.

I have googled up and down for examples of using python to create a
city street but I can not find any.

my objective is to replicate a section of los angeles using python,
and program the street lights and cars and whatnot. Should I be
looking towards 3D to do this?

so here is MY question:
how would you replicate a street intersection in python? and
furthermore, how would you do you have the cars move up and down those
"streets".

my question to YOU is:
can you point me in the right direction? I will search on my own, but
I would greatly appreciate any help :)

and if anyone is interested in learning more about this project (we've
got some nifty things planned), or if you wanna help, give a shout ;]

--
http://mail.python.org/mailman/listinfo/python-list
It seems you are looking something to build an user interface. You
could do such thing in tkinter, for example. You would "move" cars by
redrawing them in other positions after time.

But besides doing these drawings, you will be doing a lot of math to
improve the transportation system. The drawings will be just a
representation of what you calculate, I dont see why it would be
important to do it in 3d right now.

--
-- Guilherme H. Polo Goncalves
Nov 14 '07 #2
do****************@gmail.com wrote:
Hello, I'm a teen trying to do my part in improving the world, and me
and my pal came up with some concepts to improve the transportation
system.

I have googled up and down for examples of using python to create a
city street but I can not find any.

my objective is to replicate a section of los angeles using python,
and program the street lights and cars and whatnot. Should I be
looking towards 3D to do this?

so here is MY question:
how would you replicate a street intersection in python? and
furthermore, how would you do you have the cars move up and down those
"streets".

my question to YOU is:
can you point me in the right direction? I will search on my own, but
I would greatly appreciate any help :)

and if anyone is interested in learning more about this project (we've
got some nifty things planned), or if you wanna help, give a shout ;]
It's hard to tell you what to do with so sparse information about what you
try to accomplish in the end.

Of course if you want to have more or less realistic imaging for whatever
purpose, 3D is the way to go. If you are after traffic-simulations, it's
unneeded complexity.

Regarding the "moving cars": you can also go from simply defining paths cars
can take and parametrize these to full-blown physics - depending on what
you want.

Diez
Nov 14 '07 #3
On Nov 14, 4:09 am, dominiquevalent...@gmail.com wrote:
my question to YOU is:
can you point me in the right direction? I will search on my own, but
I would greatly appreciate any help :)
have a look at http://simpy.sourceforge.net/ for the simulation part

Nov 14 '07 #4
On Wed, 14 Nov 2007 11:01:40 +0100, Diez B. Roggisch wrote:
do****************@gmail.com wrote:
>Hello, I'm a teen trying to do my part in improving the world, and me
and my pal came up with some concepts to improve the transportation
system.

[…]

Of course if you want to have more or less realistic imaging for whatever
purpose, 3D is the way to go. If you are after traffic-simulations, it's
unneeded complexity.
Not if their solution includes flying buses and taxis. Or this pneumatic
delivery system for people from `Futurama`. ;-)

Ciao,
Marc 'BlackJack' Rintsch
Nov 14 '07 #5
Ant
On Nov 14, 3:09 am, dominiquevalent...@gmail.com wrote:
....
so here is MY question:
how would you replicate a street intersection in python? and
furthermore, how would you do you have the cars move up and down those
"streets".
I've never used it, but I'd have thought that pygame would satisfy the
graphical side of things.

--
Ant

Nov 14 '07 #6
do****************@gmail.com wrote:
Hello, I'm a teen trying to do my part in improving the world, and me
and my pal came up with some concepts to improve the transportation
system.

I have googled up and down for examples of using python to create a
city street but I can not find any.
http://www.gis.usu.edu/~sanduku/publ...ne/node23.html

"""Automobile traffic has a very extensive body of literature involving
simulation. Most people in the industrialized world deal with automobile traffic
on a daily basis, and many studies are funded annually to alleviate existing or
potential traffic problems. Several academic journals are dedicated exclusively
to automobile traffic dynamics, new textbooks on the subject are published
regularly, and the number of articles published each year dealing with
automobile traffic number in the hundreds.
"""

while they may not be in Python, I'm sure you can find modeling systems to do a
you want to do for far less effort than it would take to re-create them from
scratch.
--
Speech-recognition in use. It makes mistakes, I correct some.
Nov 14 '07 #7
do****************@gmail.com wrote:
my objective is to replicate a section of los angeles using python,
and program the street lights and cars and whatnot. Should I be
looking towards 3D to do this?

so here is MY question:
how would you replicate a street intersection in python? and
furthermore, how would you do you have the cars move up and down those
"streets".

my question to YOU is:
can you point me in the right direction? I will search on my own, but
I would greatly appreciate any help :)
If you do want to do this in 3-D, try out VPython. More than any other
3-D system I've seen, it allows you to concentrate more on your problem,
and let it handle most of the 3-D rendering calculations as you are
learning how to use it.

-Scott David Daniels
Sc***********@Acm.Org

Nov 14 '07 #8
On Nov 14, 7:42 am, Scott David Daniels <Scott.Dani...@Acm.Orgwrote:
dominiquevalent...@gmail.com wrote:
my objective is to replicate a section of los angeles using python,
and program the street lights and cars and whatnot. Should I be
looking towards 3D to do this?
so here is MY question:
how would you replicate a street intersection in python? and
furthermore, how would you do you have the cars move up and down those
"streets".
my question to YOU is:
can you point me in the right direction? I will search on my own, but
I would greatly appreciate any help :)

If you do want to do this in 3-D, try out VPython. More than any other
3-D system I've seen, it allows you to concentrate more on your problem,
and let it handle most of the 3-D rendering calculations as you are
learning how to use it.

-Scott David Daniels
Scott.Dani...@Acm.Org
Although, i am quite the python noob, pygame would be the way to go

Nov 14 '07 #9
On Nov 14, 5:38 am, "Sells, Fred" <fred.se...@adventistcare.org>
wrote:
It sounds as if this project is a major task based on your current level of experience. That being said, all we "pythonistas" encourage and support anyone who is trying to learn/apply python.

Break the problem into 2 parts:
--simulation math of what you're trying to do
--cool visual display (2D is sufficient) to make it interesting and so others can grasp what you did

Then the math drives the display, but you can build and test the math using text output.

pygame and pysim are good candidates. There is alsowww.vpython.org. Make sure you find some tutorial on object oriented programming "OOP" because that's the way to build this critter.

I'm assuming you have a fairly powerful PC, if so you need a decent development environment. google for python IDE or check at python.org. I use Eclipse + PyDev (both free) although there is a wide difference of opinion on IDE's.

Remember to eat the elephant one byte at a time. i.e. small steps.
-----Original Message-----
From: python-list-bounces+frsells=adventistcare....@python.org
[mailto:python-list-bounces+frsells=adventistcare....@python.org]On
Behalf Of Ant
Sent: Wednesday, November 14, 2007 6:48 AM
To: python-l...@python.org
Subject: Re: Using Python To Change The World :)
On Nov 14, 3:09 am, dominiquevalent...@gmail.com wrote:
...
so here is MY question:
how would you replicate a street intersection in python? and
furthermore, how would you do you have the cars move up and
down those
"streets".
I've never used it, but I'd have thought that pygame would satisfy the
graphical side of things.
--
Ant
--
http://mail.python.org/mailman/listinfo/python-list
ah, great advice. thanks very much.

thank you to everyone for helping :)

Nov 14 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
4
by: Michael Sparks | last post by:
Anyway... At Europython Guido discussed with everyone the outstanding issue with decorators and there was a clear majority in favour of having them, which was good. From where I was sitting it...
0
by: Peter Otten | last post by:
QOTW: "try...except and try...finally are really two completely different statements with different purposes." - Carl Banks "Zope and ZODB do incredibly complex stuff as side effects in what...
10
by: FLChamp | last post by:
SOrry if this message is a little confused, it most probably reflects the state of the author! I have made a small program that plots the orbit of a planet in visual python using visual.vector...
29
by: 63q2o4i02 | last post by:
Hi, I'm interested in using python to start writing a CAD program for electrical design. I just got done reading Steven Rubin's book, I've used "real" EDA tools, and I have an MSEE, so I know what...
112
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
1
by: Gabriel Genelli | last post by:
QOTW: "A java class full of static methods translates to a python module populated with functions in general." - Arnaud Delobelle "Neurons are far more valuable than disk space, screen lines, or...
20
by: Jimmy | last post by:
Hi to all python now has grown to a versatile language that can accomplish tasks for many different purposes. However, AFAIK, little is known about its ability of kernel coding. So I am...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.