Saturday, August 11, 2007

A bridge too far. It's over.

As hinted on several blogs, we are not semi-finalist to the urban Challenge. We did not make that bridge. Thank you for all the good wishers. At some time, we'll try to write and talk more about our system of ominidirectional cameras using compressed sensing and dimensionality reduction in policies to accomplish what we intended to accomplish during the site visit.

Tuesday, June 12, 2007

hold pattern


FYI, We are not reporting much as we are preparing for the site visit and trying to make some innovative use of light bulbs :-)
[update June 21: they will be on the rooftop]

Saturday, June 02, 2007

Site visit


Our site visit will take place on the afternoon of June 27th at the the Southwest Research Institute. As for the technical report, I am going to hold onto it for a little while since we are still investigating some of the final algorithms/hardware to be implemented for the site visit. I thought we would be done by then but day-jobs and other considerations are making this a little optimistic.

Thursday, May 10, 2007

Technical Paper

The technical paper will be submitted to DARPA before June 1st at 5:00 ET. We will make it available on this site at that time. It consists of 25% of the grade given to the entry for a spot to the semi-finals.

Site visit announcement tomorrow

We just received this:

An email with the site visit announcement and press release will be emailed on Friday, May 11 at 1100 AM ET.

DARPA Urban Challenge


on a different note, we were featured on robots.net

Wednesday, April 25, 2007

Site visit course RDNF and our algorithm presentation

The folks at Southwest Research Institute have done a great job at defining the course for the site visit. CP#6 is where the obstacle (yellow car lies). With respect to unveiling our algorithm, we are in the middle of devising a lot of things (a lot of us have finals) for the time being but we have given an outline on the basics needed to a implement a GPS waypoint following vehicle by pointing out to the effort of a vehicle prepared by a large University next door (disclaimer: we have no connection what so ever with this effort) which eventually did not enter the Grand Challenge. Most entries on the subject will be at http://nuit-blanche.blogspot.com/search/label/darpa%20urban%20challenge
.

Monday, April 16, 2007

Unveiling our algorithm, trade-offs and implementation

It is still a work in progress for some parts, but we are going to unveil the algorithm driving our vehicle: Pegasus Bridge 1, as we go along. We are still gathering data and evaluating them against different algorithms. We expect to talk about the implementation as well as the general concepts from GPS waypoint following, road following, situational awareness and learning rules. We hope to be able to do this in a timely manner, but as we are under-manned, between reporting on the algorithm and making it better we will always go for the latter. The reporting will take place here.

Saturday, April 14, 2007

Part 4 Video submission completed.


We sent our video to DARPA yesterday. Next stop San Antonio at the Southwest Research Institute.

Saturday, April 07, 2007

Visit of the Southwest Research Institute and our Strategy

As usual the visit at Southwest Research Institute went very smoothly. We are working on our video for the part 4 of the application. Because our approach is truely innovative and we expect no other team to go our route, we are unveiling our algorithm/software strategy in several excerpts here as we go along.

Friday, March 16, 2007

Site visit will take place at Southwest Research Institute


Since we liked it so much last year, we have decided to come back to SouthWest Research Institute for the DARPA site visit. Photos of the site can be found here.

Thursday, November 09, 2006

Tuesday, October 17, 2006

Application time

Our application was sent and received by DARPA. They will decide whether or not we are selected for Track B on October 18th.

Tuesday, May 02, 2006

A New Race

We have decided to enter DARPA's Urban Grand Challenge race (in french)

On a totally unrelated note: the location of the historical Pegasus Bridge is here.

Saturday, October 08, 2005

Stanford Racing Team is the winner of the DARPA Grand Challenge



Outstanding, three contestants arrived within 10 minutes of each other!

Wednesday, October 05, 2005

National Qualification Event


There are interesting videos from the NQE before selection is made on Thursday. They can be found on the CarTV site. In this video, Stanford provides insight in the vision system of their entry. Stanford has their own stock of videos.

Friday, September 30, 2005

DARPA Grand Challenge NQE underway.


The DARPA Grand Challenge National Qualification Event has taken place for the past several days, more information can be found on this brochure. A good blog on the event can be found here. Meanwhile, since we have been eliminated for this year's event, we are playing with Google Maps technology and are evaluating how it can be applied to our display of engineering data. John Wiseman did a great job of displaying last year's DARPA race through Google Maps. We just used it to display places on the Paris map for the "Nuit Blanche" event. We feel it has a good potential when applied to the data we are making freely available from our test runs.

Wednesday, June 08, 2005

Result of DARPA selection to NQE

On Monday, June 6th, DARPA announced a list of teams that would participate to the NQE (National Qualifying Event.) Unfortunately, we are currently not on that list.

Monday, May 30, 2005

How do you drive-by-wire a car using Python ?

In the previous entry, we made the comment that using Python was very nice because of the small learning curve. Here is an example below that should help anybody who has ever written a program understand our point. To the first time reader, it may even look like pseudo-code.

Our vehicle used to use this program to be driven around through a laptop installed in the car. Someone located in the vehicle would punch keys on the keyboard and would be able to accelerate/brake and turn right/left. The commands would then go through the parallel port of the laptop to a controller which would in the end command several electrical steppers motors doing the manual job. We left the GPS thread in the code so that one can see how to use threads. In effect in the real program, we also use other threads to monitor cameras and other inertial information coming from the IMU but we left them out of this code for the sake of clarity. It runs under Windows and is fast enough for the purpose at hand. The drive-by-wire code enables us to drive the vehicle around and allows the gathering of data on maneuverability and collision avoidance. The sentences said by the program through the TTS module may look like a gimmick, but they are in fact very helpful when only one person drives around and collects data at the same time.

The program starts two threads. One is watching the keyboard for instruction. The other one is recording data from the GPS sensor.

# This code is released
# under the General
# Public Licence (GPL),
# DISCLAIMER : if you do not know
# what you are doing
# do not use this program on a
# motorized vehicle or any machinery
# for that matter. Even if you know
# what you are doing, we absolutely
# cannot be held responsible for your
# use of this program under ANY circumstances.
# The program is
# released for programming education
# purposes only i.e. reading
# the code will allow students
# to understand the flow of the program.
# We do not advocate nor condone
# the use of this program in
# any robotic systems. If you are thinking
# about including this software
# in a machinery of any sort, please don't do it.
#
# This program was written by
# Pedro Davalos, Shravan Shashikant,
# Tejas Shah, Ramon Rivera and Igor Carron
#
# Light version of the Drive-by-wire program
# for Pegasus Bridge 1 - DARPA GC 2005
#
import sys, traceback, os.path, string
import thread, time, serial, parallel
import re
import struct
import msvcrt
import pyTTS

rootSaveDir = "C:\\PegasusBridgeOne\\"
gpsSaveDir = os.path.join(rootSaveDir,"gps")
ctlSaveDir = os.path.join(rootSaveDir,"control")
stopProcessingFlag = 0
printMessagesFlag = 1
p = None
tts = pyTTS.pyTTS()
gps_data = list()
imu_data = list()

def runnow():
print "Drive-by-wire program running now"
#launch controller thread
t = thread.start_new_thread(control_sensors,())
#launch gps sensor thread
t1 = thread.start_new_thread(read_gps_data,())

def control_sensors():
global stopProcessingFlag
global ctlSaveDir
global p
printMessage("Control thread has started")
p=parallel.Parallel()
p.ctrlReg = 9 #x&y axis
p.setDataStrobe(0)
sleep = .01
while (stopProcessingFlag != 1):
key = msvcrt.getch()
length = len(key)
if length != 0:
if key == " ": # check for quit event
stopProcessingFlag = 1
else:
if key == '\x00' or key == '\xe0':
key = msvcrt.getch()
print ord(key)
strsteps = 5
accelsteps=1
if key == 'H':
move_fwd(accelsteps, sleep)
if key == 'M':
move_rte(strsteps, sleep)
if key == 'K':
move_lft(strsteps, sleep)
if key == 'P':
move_bak(accelsteps, sleep)
print "shutting down"
ctl_ofile.close()

def read_gps_data():
global gpsSaveDir
global stopProcessingFlag
global gps_data
printMessage("GPS thread starting.")
#Open Serial Port with baud 4800 on port 5 (Com6)
ser = None
try:
gps_ofile = open(''.join( \
[gpsSaveDir,'\\',time.strftime**
**("%Y%m%d--%H-%M-%S-"),**
** "-gps_output.txt"]),"w")
ser = serial.Serial(5, 38400, timeout=2)
while (stopProcessingFlag != 1):
resultx = ser.readline()
# if re.search('GPRMC|GPGGA|GPZDA', resultx):
splt = re.compile(',')
ary = splt.split(resultx)
gps_ofile.write(str(get_time() + ', '+resultx))
gps_data.append([get_time(), resultx])
if (len(gps_data)> 100): gps_data.pop(0)
ser.close()
gps_ofile.close()
except:
write_errorlog("GPS Read method " )
if ser != None:
ser.close()

def write_errorlog(optional_msg=None,whichlog='master'):
if optional_msg!=None:
writelog(whichlog,"\nERROR : "+ optional_msg)
type_of_error = str(sys.exc_info()[0])
value_of_error = str(sys.exc_info()[1])
tb = traceback.extract_tb(sys.exc_info()[2])
tb_str = ''
# error printing code goes here

def get_time(format=0):
stamp = '%1.6f' % (time.clock())
if format == 0:
return time.strftime('%m%d%Y %H:%M:%S-', \
time.localtime(time.time())) +str(stamp)
elif format == 1:
return time.strftime('%m%d%Y_%H%M', \
time.localtime(time.time()))

def if_none_empty_char(arg):
if arg == None:
return ''
else:
return str(arg)

def writelog(whichlog,message):
global rootSaveDir
logfile = open(os.path.join(rootSaveDir, \
whichlog+".log"),'a')
logfile.write(message)
logfile.close()
printMessage(message)

def printMessage(message):
global printMessagesFlag
if printMessagesFlag == 1:
print message

def move_fwd(steps, sleep):
global p
for i in range (0,steps):
p.setData(32)
p.setData(0)
time.sleep(sleep)

def move_bak(steps, sleep):
global p
for i in range (0,steps):
p.setData(48)
p.setData(0)
time.sleep(sleep)

def move_lft(steps, sleep):
global p
for i in range (0,steps):
p.setData(12)
p.setData(0)
time.sleep(sleep)

def move_rte(steps, sleep):
global p
for i in range (0,steps):
p.setData(8)
p.setData(0)
time.sleep(sleep)


print 'Hello'
tts.Speak("Hello, I am Starting the control**
**Program for Pegasus Bridge One")
time.sleep(4)
runnow()
while (stopProcessingFlag != 1):
time.sleep(5)
print 'Bye now'
tts.Speak("Destination reached, Control Program**
**Aborting, Good Bye, have a nice day")
time.sleep(4)