Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/avisingh599/imitation-dagger
/ functions
Functions
29 in github.com/avisingh599/imitation-dagger
⨍
Functions
29
◇
Types & classes
4
↓ 13 callers
Function
bargraph
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 callers
Function
clip
(v,lo,hi)
snakeoil3_gym.py:81
↓ 4 callers
Method
respond_to_server
(self)
snakeoil3_gym.py:270
↓ 3 callers
Method
get_servers_input
Server's input is stored in a ServerState object
snakeoil3_gym.py:233
↓ 3 callers
Function
img_reshape
(input_img)
dagger.py:15
↓ 3 callers
Method
shutdown
(self)
snakeoil3_gym.py:282
↓ 2 callers
Method
end
(self)
gym_torcs.py:197
↓ 2 callers
Method
fancyout
Specialty output for useful ServerState monitoring.
snakeoil3_gym.py:317
↓ 2 callers
Method
get_obs
(self)
gym_torcs.py:200
↓ 2 callers
Function
get_teacher_action
(ob)
dagger.py:10
↓ 2 callers
Method
make_observaton
(self, raw_obs)
gym_torcs.py:239
↓ 2 callers
Method
reset
(self, relaunch=False)
gym_torcs.py:168
↓ 2 callers
Method
step
(self, u)
gym_torcs.py:64
↓ 1 callers
Method
agent_to_torcs
(self, u)
gym_torcs.py:215
↓ 1 callers
Method
clip_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 callers
Function
destringify
makes a string into a value or a list of strings into a list of values (if possible)
snakeoil3_gym.py:513
↓ 1 callers
Function
drive_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 callers
Method
obs_vision_to_image_rgb
(self, obs_image_vec)
gym_torcs.py:227
↓ 1 callers
Method
parse_server_str
Parse the server string.
snakeoil3_gym.py:296
↓ 1 callers
Method
parse_the_command_line
(self)
snakeoil3_gym.py:192
↓ 1 callers
Method
reset_torcs
(self)
gym_torcs.py:203
↓ 1 callers
Method
setup_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
Method
fancyout
Specialty output for useful monitoring of bot's effectors.
snakeoil3_gym.py:494