MCPcopy Create free account

hub / github.com/avisingh599/imitation-dagger / functions

Functions29 in github.com/avisingh599/imitation-dagger

↓ 13 callersFunctionbargraph
Draws a simple asciiart bar graph. Very handy for visualizing what's going on with the data. x= Value from sensor, mn= minimum plottable value
snakeoil3_gym.py:86
↓ 4 callersFunctionclip
(v,lo,hi)
snakeoil3_gym.py:81
↓ 4 callersMethodrespond_to_server
(self)
snakeoil3_gym.py:270
↓ 3 callersMethodget_servers_input
Server's input is stored in a ServerState object
snakeoil3_gym.py:233
↓ 3 callersFunctionimg_reshape
(input_img)
dagger.py:15
↓ 3 callersMethodshutdown
(self)
snakeoil3_gym.py:282
↓ 2 callersMethodend
(self)
gym_torcs.py:197
↓ 2 callersMethodfancyout
Specialty output for useful ServerState monitoring.
snakeoil3_gym.py:317
↓ 2 callersMethodget_obs
(self)
gym_torcs.py:200
↓ 2 callersFunctionget_teacher_action
(ob)
dagger.py:10
↓ 2 callersMethodmake_observaton
(self, raw_obs)
gym_torcs.py:239
↓ 2 callersMethodreset
(self, relaunch=False)
gym_torcs.py:168
↓ 2 callersMethodstep
(self, u)
gym_torcs.py:64
↓ 1 callersMethodagent_to_torcs
(self, u)
gym_torcs.py:215
↓ 1 callersMethodclip_to_limits
There pretty much is never a reason to send the server something like (steer 9483.323). This comes up all the time and it's probably j
snakeoil3_gym.py:461
↓ 1 callersFunctiondestringify
makes a string into a value or a list of strings into a list of values (if possible)
snakeoil3_gym.py:513
↓ 1 callersFunctiondrive_example
This is only an example. It will get around the track but the correct thing to do is write your own `drive()` function.
snakeoil3_gym.py:529
↓ 1 callersMethodobs_vision_to_image_rgb
(self, obs_image_vec)
gym_torcs.py:227
↓ 1 callersMethodparse_server_str
Parse the server string.
snakeoil3_gym.py:296
↓ 1 callersMethodparse_the_command_line
(self)
snakeoil3_gym.py:192
↓ 1 callersMethodreset_torcs
(self)
gym_torcs.py:203
↓ 1 callersMethodsetup_connection
(self)
snakeoil3_gym.py:143
Method__init__
(self, vision=False, throttle=False, gear_change=False)
gym_torcs.py:21
Method__init__
(self,H=None,p=None,i=None,e=None,t=None,s=None,d=None,vision=False)
snakeoil3_gym.py:119
Method__init__
(self)
snakeoil3_gym.py:292
Method__init__
(self)
snakeoil3_gym.py:449
Method__repr__
(self)
snakeoil3_gym.py:304
Method__repr__
(self)
snakeoil3_gym.py:480
Methodfancyout
Specialty output for useful monitoring of bot's effectors.
snakeoil3_gym.py:494