By order of joining the team:
This project aims to integrate different components of autonomous driving onto a ROS platform that can be installed on a specific vehicle (a Lincoln HKZ sedan) and would, in the absence of any obstacles, achieve single-lane navigation that obeys traffic lights.
ROS provides a platform and framework, with a vast library of hardware integrations, for building software-controlled robotics systems, including self-driving cars, drones, personal home robots etc. Though it is not the only platform available for such purposes, it has wide research adoption and is gaining commercial use as well.
The platform operates as a collection of processes ('nodes'), that utilize the ROS platform for message-based event-driven asynchronous communication, through an abstraction called a 'topic', to which these nodes can attach themselves as subscribers (observers) and publishers (observables).
Here is an architectural illustration of the components:
There are 4 high-level subsystems generally found in a self-driving system:
Below we discuss our implementation, as it relates to the components above.
We labeled images manually with labelImg.
We had three classes: 1 - Green, 2 - Yellow, 3 - Red.
We chose the transfer learning technique to solve traffic light classification. We fine-tuned the ssd_mobilenet_v2 model from the Tensorflow model zoo. We made the following significant changes:
The model was trained on Google Cloud ML and locally as well with the following configuration:
Batch Size | Steps | Learning Rate | Anchors Min Scale | Anchors Max Scale | Anchors Aspect Ratio |
---|---|---|---|---|---|
24 | 20000 | 0.004 | 0.1 | 0.5 | 0.33 |
The used scripts for traning are located in utils folder
Results for Udacity sumlation
Results for training bag
This is where the autonomy is implemented. Though there are numerous components that would fall in this category, the scope of this document will be limited only to the components implemented in this particular project. These components are as discussed below.
Waypoint updater provides the waypoints, starting from the car to some points ahead, that the car will follow. The updater will replan at every time step to update the waypoint but also gracefully decelerate the car incase of traffic light is red or there are obstacles ahead.
This node receives map information, localization (car's current location in the map) and traffic light status (by traffic waypoint) and decelerrates the car to a stop if the traffic light is red.
waypoint_updater node subscribes to following:
/base_waypoints
(styx_msgs/Lane)/current_pose
(geometry_msgs/PoseStamped)/traffic_waypoint
(std_msgs/Int32)and publishes the following topics:
/final_waypoints
(styx_msgs/Lane)The deceleration relation w.r.t distance from the lane end is roughly following:
No changes were made to this component for this project. However, at a high leve, this piece implements Path Planning by determining the trajectory that the car needs to take, split into time-steps, which then dictates the controls that would get sent to the control subsystem for steering and throttle.