Assembly - Traffic Light
Contents
Assembly - Traffic Light#
What you will need
Traffic light components (Duckietown project shop)
An appropriately configured SD-card.
Tools: (strong) wood glue or hot glue gun, tape, double-sided tape.
What you will get
An assembled traffic light in configuration
DT21-TL
(latest) or previous legacy versions.
This section describes the physical assembly and installation of traffic lights.
Overview#
Traffic lights are crucial elements of modern cities as city dwellers rely on them to have well-organized traffic. In Duckietown, traffic lights serve the same purpose.
Traffic lights can be used as centralized coordinators of traffic at three or four way intersections in Duckietown, or as elements of a Duckietown Autolab watchtower network.
Attention
For Duckiebots to know traffic lights are governing a certain intersection, appropriate signage must be placed at the intersection (traffic light traffic sign instead of stop sign).
Hardware wise, traffic lights are essentially “Duckiebots without wheels”, and a beautiful, different chassis.
They are composed of two supports connected by an overhanging tube.
They are intended to be placed on the diagonal direction of an intersection.
One of the supports is equipped with the computational stack and an overseeing camera.
Hardware Assembly#
For traffic lights of the latest configuration, please refer to this for the assembly instructions.
For legacy build, the assembly instructions for configurations prior to
TL21
can be found in
SD-card Image Preparation#
Even at software level, traffic lights are essentially Duckiebots without wheels. In initializing the SD-card of your traffic light, follow the instructions here, with the extra step of using the option --type traffic_light
.
Also, Wi-Fi configuration for traffic lights by default is not set. You can add it using the --wifi
option as specified in the instructions.
An example flashing command for a Wi-Fi connected traffic light can be:
dts init_sd_card --hostname watchtower![XX] --country ![COUNTRY] --type traffic_light --configuration TL21
Note
For Autolab users: since traffic lights will work as watchtowers adopt the convention:
hostname : `watchtowerXX`
where XX
are, e.g., increasing numbers.
However, if you just want to use it as a traffic light, use the traffic light setup:
hostname :
trafficlightXX
The default username and password are all the same:
Username:
duckie
Password:
quackquack
Warning
For Autolab users, do not change the username and password.
Launch Traffic Lights#
By choosing the robot_type
to be traffic_light
, the blinking behaviour should happen as soon as you boot your device.
If you need to manually restart the behaviour inside the duckiebot-interface
container, you can restart the traffic light behaviour by running, inside the container:
roslaunch duckiebot_interface all_drivers.launch veh:=![NAME] robot_type:=traffic_light