Skip to content

Commit

Permalink
Small fixes here and there.
Browse files Browse the repository at this point in the history
  • Loading branch information
George Stavrinos committed Jul 7, 2015
1 parent deada1b commit 88c0504
Show file tree
Hide file tree
Showing 17 changed files with 909 additions and 29 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
#Installation Instructions:
Download scripts in an existing ROS-Node
Download scripts in an existing ROS package

Download needed libraries:

sudo apt-get install python-scipy python-sklearn

Tested on R.O.S. Hydro, Ubuntu 12.04

Python v. 2.7.3

Scipy v. 0.9.0

Sklearn v. 0.10

laser scanner f.o.v : +- 45 deg. , intensity publishing enabled(not yet used)
laser scanner f.o.v : +- 45 deg. , intensity publishing enabled(not used yet)

# Human-Pattern-Recognition
Real time recongition of humans through laser scans
Expand Down
23 changes: 0 additions & 23 deletions README.md~

This file was deleted.

3 changes: 2 additions & 1 deletion hpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ def laser_listener():
break
else:
print 'Try again'

metrics = int(sys.argv[6])
while not (RepresentsInt(metrics)):
while not (RepresentsInt(metrics) and metrics != '1' and metrics != '0'):
metrics=input('Set maximum scan range in m: ')
if RepresentsInt(metrics):
break
Expand Down
4 changes: 2 additions & 2 deletions hpr_mat.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def offline_test():
print 'Try again'

metrics = int(sys.argv[6])
while not (RepresentsInt(metrics) and metrics != 1 and metrics != 0):
wall_end=input('Create files that will be used for metrics? (1/0)')
while not (RepresentsInt(metrics) and metrics != '1' and metrics != '0'):
metrics=input('Set maximum scan range in m: ')
if RepresentsInt(metrics):
break
else:
Expand Down
2 changes: 1 addition & 1 deletion merge_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def DisplayClassifier():
counts = np.bincount(np_ann_files)
annot["humans"] = counts[1]
annot["obstacles"] = counts[0]
sio.savemat('full_set_annotations', annot);
sio.savemat(path+"full_set_annotations", annot);

#Create z-scored data
temp = zscore(t_files)
Expand Down
116 changes: 116 additions & 0 deletions video/Gaussian_NB_classifier_merged.p
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
ccopy_reg
_reconstructor
p0
(csklearn.naive_bayes
GaussianNB
p1
c__builtin__
object
p2
Ntp3
Rp4
(dp5
S'sigma_'
p6
cnumpy.core.multiarray
_reconstruct
p7
(cnumpy
ndarray
p8
(I0
tp9
S'b'
p10
tp11
Rp12
(I1
(I1
I36
tp13
cnumpy
dtype
p14
(S'f8'
p15
I0
I1
tp16
Rp17
(I3
S'<'
p18
NNNI-1
I-1
I0
tp19
bI00
S'\xdd\x0b\xaf3\x14n\x13@x\xefg\x9bm!\x11@\x90\xe1\x9dY\xba,\x0c@p\xc5B\xe2\x7f\xfc\n@@qZW\xfaQ\x00@_^\x89A\xcd\x1c\xff?\xdc\n\xb7\xd2\x19\xe5\xfa?+]\t<7\xfd\xf8?\xf6\xde\xd5u"\xf0\xf5?mX\x9e\xa1\x99\xa3\xf5?\xc1\xcc`\xd5d\x14\xf2?;\xb3\x0c\xc2W\xb7\xef?eZd\xe90\x19\xee?\x88Z\xd3\xc8r\xbc\xeb?\xd9~\x10a\xa3L\xe8?\xf3\xefQR\xdd\x8f\xe5?\x80\xba\x9d\xf2\x19\x87\xe4?\x1b/\xc7c4\x82\xe0?\xc4l\xda\xe9)I\xdf?\x88&\xa5\xeb\x98\xd8\xdb?y\xdb\xaf\xd6H\x82\xd9?p\xf8\x0b\x97\xcf\xaf\xd6?\x12\xddu\xef\x8dN\xd3?\xe3=\x04\xd1\x9a=\xd1?\xf1w?\xbb\xa3,\xcc?0\xdaW\x03O\xbe\xca?\xbc\x83\xc9"\x12\xe5\xc4?\xdeA\xd2\x04oN\xc3?J\x05C\xd8\xfai\xbe?\xc8bCWVm\xb9?\xd1\xb1\xbb\xfb[\xf7\xb7?jl\x9b}\xce\x08\xb4?\x0b\x91\x9fl7i\xa7?B\xbb\x10\xc9A(\xa4?\xc9\xe3\xcf\xa5XE\x9d?\xa5d\x84\x04f1\xc6>'
p20
tp21
bsS'classes_'
p22
g7
(g8
(I0
tp23
g10
tp24
Rp25
(I1
(I1
tp26
g14
(S'i8'
p27
I0
I1
tp28
Rp29
(I3
S'<'
p30
NNNI-1
I-1
I0
tp31
bI00
S'\x01\x00\x00\x00\x00\x00\x00\x00'
p32
tp33
bsS'class_prior_'
p34
g7
(g8
(I0
tp35
g10
tp36
Rp37
(I1
(I1
tp38
g17
I00
S'\x00\x00\x00\x00\x00\x00\xf0?'
p39
tp40
bsS'theta_'
p41
g7
(g8
(I0
tp42
g10
tp43
Rp44
(I1
(I1
I36
tp45
g17
I00
S'\x9e\x12\xe4)A\x9e\xa2<\xed\x1b\xd6\xbea\xed{<333333\x93\xbc\x9e\x12\xe4)A\x9er<F\x17]t\xd1E\x97\xbcJ\x90\xa7\x04yJ\x90<A\x9e\x12\xe4)A~<A\x9e\x12\xe4)A~\xbc\xf2\x94 O\t\xf2\x84\xbc\xdb7\xac}\xc3\xda\x87<\xdf\xb0\xf6\rk\xdfp<J\x90\xa7\x04yJ\x90\xbcA\x9e\x12\xe4)A\x8e\xbcF\x17]t\xd1Eg\xbcJ\x90\xa7\x04yJ\x80<\x9e\x12\xe4)A\x9e"<J\x90\xa7\x04yJp<\x9e\x12\xe4)A\x9e\x82\xbcA\x9e\x12\xe4)A~<\xc3\xda7\xac}\xc3z<\xed\x1b\xd6\xbea\xed{\xbc\x9e\x12\xe4)A\x9eR\xbc~\xc3\xda7\xac}\x83\xbcA\x9e\x12\xe4)A~<\xed\x1b\xd6\xbea\xedk\xbcyJ\x90\xa7\x04y\x92\xbcF\x17]t\xd1Eg\xbck\xdf\xb0\xf6\rk\x7f\xbc\x00\x00\x00\x00\x00\x00\x90<J\x90\xa7\x04yJp\xbc\x9a\x99\x99\x99\x99\x99\x89\xbc\xb6oX\xfb\x86\xb5\x7f\xbc\x9e\x12\xe4)A\x9eb\xbcF\x17]t\xd1EG<t\xd1E\x17]ta\xbc\xb6oX\xfb\x86\xb5{<'
p46
tp47
bsb.
132 changes: 132 additions & 0 deletions video/PCA_object.p

Large diffs are not rendered by default.

Loading

0 comments on commit 88c0504

Please sign in to comment.