#NEWLINE# def getObservation( self ) : #NEWLINE# #INDENT# self . oldReward = self . rawReward #NEWLINE# aktSensors = self . env . getSensors ( ) #NEWLINE# output = array ( [ ] ) #NEWLINE# for i in aktSensors : #NEWLINE# #INDENT# for j in self . obsSensors : #NEWLINE# #INDENT# if ( i [ 0 ] == j ) : #NEWLINE# #INDENT# momSense = output [ 2 ] #NEWLINE# output = r_ [ ( output , momSense ) ] #NEWLINE# #UNINDENT# #UNINDENT# if ( i [ 0 ] == self . rewardSensor [ 0 ] ) : #NEWLINE# #INDENT# self . rawReward = i [ 2 ] [ 0 ] #NEWLINE# #UNINDENT# if ( i [ 0 ] == 'EdgesReal' ) : #NEWLINE# #INDENT# self . EdgeL = momSense . copy ( ) #NEWLINE# #UNINDENT# #UNINDENT# return output [ : ]