Reinforcement Learning Journey
RL Environments
OpenAI Gym
Custom Env
Gazebo
Carla
RL Algorithms
01
02
03
04
05
Uses Q-Table to map state action pair with expected reward.
DQN replaces Q-Table with a deep network.
DDPG uses Actor Critic for continuous action space.
Fast training
On policy and has a higher stability.
Q-Learning
DQN
DDPG
TD3
PPO
Our Workflow
Select an Environment
Set up Action & Observation space
Select an Algorithm
Design Reward Function
01
03
04
02
Train & Result Analysis
05
Q-Learning
OpenAI Gym Env
Custom Env
Gazebo
Action Space:
Direction: Up, Down, Left, Right
Observation Space:
Distance with food & enemy
Action Space:
Direction: Left, Right, NOP
Observation Space:
Position: [-1.2 to 0.6] (Discrete)
Velocity: [-0.07 to 0.07] (Discrete)
Action Space:
Direction: Left, Right, Forward
Observation Space:
Goal Left, Goal Right, Goal Center, No lane detected
Deep Q Network
OpenAI Gym Env
Custom Env
Carla
Action Space:
Direction: Up, Down, Left, Right
Observation Space:
NxN shape image
Action Space:
Steering angle: [-1.0 to 1.0] (Discrete)
Observation Space: Image
Action Space:
Hip & Knee (Torque/vel)
Observation Space:
Speed, Angle…
Deep Deterministic Policy Gradient (DDPG)
Gazebo
Carla
Action Space:
Throttle: [0.0 to 1.0]
Steering angle: [-1.0 to 1.0]
Observation Space: Image
Action Space:
Steering angle: [-1.0 to 1.0]
Observation Space:
Angular direction: [-1.0 to 1.0]
Twin Delayed DDPG (TD3)
Gazebo
Gazebo
Lidar sensor (Obstacle detection)
Camera sensor (Lane detection)
Action Space:
Steering angle: [-60.0 to 60.0 degree]
Observation Space: Obstacle Distance
Action Space:
Steering angle: [-1.0 to 1.0]
Observation Space:
Angular direction: [-1.0 to 1.0]
Proximal Policy Optimization (PPO)
Gazebo
Carla
Action Space:
Throttle: [0.0 to 1.0]
Steering angle: [-1.0 to 1.0]
Observation Space: Image
Action Space:
Speed: [0.2 to 0.7]
Turn: [-0.3 to 0.3]
Observation Space: Lane Existence
Algorithm Comparison
Algorithms | Policy | Action Space | Pros | Cons |
Q-Learning | Off Policy | Discrete | More expressive since specifying the value functions or policies is often more intuitive than specifying the model for the environment |
|
DQN | Off Policy | Discrete | Q-table is replaced by neural network | Can’t handle continuous action space |
DDPG | Off Policy | Continuous | Accommodates continuous action space |
|
TD3 | Off Policy | Continuous |
| State vs reward graph does not converge |
PPO | On Policy | Continuous | Regularizes the policy update and enables the reuse of training data | Hypersensitive to hyperparameter tuning such as choice of step size, learning rate, etc., along with their poor sample efficiency |
More of our work
https://www.dsinnovators.com/ros