#NEWLINE# def __init__( self , env ) : #NEWLINE# #INDENT# WalkTask . __init__ ( self , self ) #NEWLINE# self . rewardSensor = [ 'Target' ] #NEWLINE# self . obsSensors . append ( 'Target' ) #NEWLINE# self . inDim = len ( self . getObservation ( ) ) #NEWLINE# self . plotString = [ 'World Interactions' , 'Distance' , 'Reward on Target Approach Task' ] #NEWLINE# self . env . mySensors = sensors . Sensors ( self . obsSensors ) #NEWLINE# self . env . mySensors . sensors [ 4 ] . targetList = [ array ( [ 160.0 , 0.0 , 0.0 ] ) ] #NEWLINE# if self . env . hasRenderInterface ( ) : #NEWLINE# #INDENT# self . env . getRenderInterface ( ) . target = self . env . mySensors . sensors [ 4 ] . targetList [ 0 ] #NEWLINE# #UNINDENT# self . epiLen = 2000