Next Article in Journal
ANTIGONE: A Programmable Energy-Efficient Current Digitizer for an ISFET Wearable Sweat Sensing System
Next Article in Special Issue
A Modular Multirotor Unmanned Aerial Vehicle Design Approach for Development of an Engineering Education Platform
Previous Article in Journal
A Method to Compensate for the Errors Caused by Temperature in Structured-Light 3D Cameras
Previous Article in Special Issue
MiniCERNBot Educational Platform: Antimatter Factory Mock-up Missions for Problem-Solving STEM Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

PL-TOON: A Low-Cost Experimental Platform for Teaching and Research on Decentralized Cooperative Control †

1
Faculty of Engineering and Sciences, Universidad Adolfo Ibáñez, Santiago 7941169, Chile
2
Departamento de Electrónica, Universidad Técnica Federico Santa María, Valparaíso 2390123, Chile
*
Author to whom correspondence should be addressed.
This work is an extended version of a paper published in IEEE CHILEAN Conference on Electrical, Electronics Engineering, Information and Communication Technologies (CHILECON 2019), Valparaíso, Chile, 29–31 October 2019.
Sensors 2021, 21(6), 2072; https://doi.org/10.3390/s21062072
Submission received: 24 February 2021 / Revised: 10 March 2021 / Accepted: 13 March 2021 / Published: 16 March 2021
(This article belongs to the Special Issue Mechatronics and Robotics in Future Engineering Education)

Abstract

:
In this paper, we present the development of a low-cost multi-agent system experimental platform for teaching, and research purposes. The platform consists of train-like autonomous agents equipped with local speed estimation, distance sensing to their nearest predecessor, and wireless communications with other agents and a central coordinator. The individual agents can be used for simple PID experiments in a classroom or laboratory setting, while a collection of agents are capable of performing decentralized platooning with cooperative adaptive cruise control in a variety of settings, the latter being the main goal of the platform. The agents are built from low cost components and programmed with open source software, enabling teaching experiences and experimental work with a larger number of agents that would otherwise be possible with other existing solutions. Additionally, we illustrate with experimental results some of the teaching activities that the platform is capable of performing.

1. Introduction

In recent years, advances on control systems and wireless communications technologies have facilitated the implementation of complex multi-agent systems (MAS) applications. Industrial processes, transportation systems, and energy systems, to name a few examples, are among the main areas of impact that can be potentially optimized through the design of control algorithms for systems comprised of several dynamical agents, aiming to work in a coordinated fashion [1,2,3,4,5,6,7]. Given the nature of these type of systems, whose complexity increases with the number of members and interactions, the study of their coordinated behavior is a challenging task, as is the design of appropriate control systems and their implementation. This motivates the development of experimental setups suitable to study such systems and their most relevant aspects, where scalability issues rank as one of the most important.
In this context, scalability refers to the behavior of the MAS when the number of agents increases. A given control system that exhibits an acceptable behavior for a MAS composed of a few agents could cause poor performance for a MAS with a larger number of agents. Scalability is a key aspect in applications such as automated highway systems (AHS), in which a platoon of vehicles are automated to navigate in a highway. In such a scenario, platooning schemes able to achieve a tight formation with a constant speed reference, may suffer from the amplification of disturbances or local errors, as they propagate along the chain of vehicles, inducing performance and safety issues that are intensified as the number of vehicles of the platoon increases [8,9,10]. Such undesirable phenomena is known as string instability.
In this work we are interested in developing an experimental platform for MAS problems where the agents are vehicles that can move in one dimension. Preliminary results in this direction where previously repoted in [11]. In particular we are interested in a platoon of vehicles that autonomously navigates a track in one direction, maintaining a predetermined inter-vehicle distance while traveling at a desired speed. These types of configurations are suitable for modeling AHS where the vehicles will rarely overtake other members of the platoon, unless they are merging or departing from the formation [12,13,14]. The theoretical aspect of such problem has been widely studied, including configurations where string stability is guaranteed. As the study and design of control schemes is of high theoretical complexity, their practical implementation aspects are no less so, and must be considered. Indeed, to achieve the platooning goal, the vehicles must be appropriately equipped with distance sensors, a computing unit that will determine the acceleration or braking actions and a power stage to manipulate the movement. To achieve a string stable configuration with linear control, the agents must posses, at least, either a measurement of their speed or be able to receive the position and/or speed of the platoon leader [15,16,17]. The latter implies the setting up of a communication network to send and receive information among vehicles. Naturally, the implementation costs of real platoons increase as the number of vehicles in the platoon increase.
The implementation aspects of platooning are highly limited due to space and costs restrictions and are normally carried out for a very constrained number of agents. This has motivated the development of lab-scale experimental setups to study the coordinated operation of autonomous agents in higher education institutions and related companies [18]. These setups may vary in their technical capabilities, and also their costs and applicability. For instance, in [19,20], an experimental platform for autonomous multi-agent systems are presented but with no communication capabilities between agents. In [21,22], the agents are not fully autonomous since they are coordinated and controlled by a central processing unit. In [23,24,25] the experimental setups have a high per-agent cost. We find relevant to mention that none of the above works are dedicated to study platooning problems.
In the context of control system laboratories, much effort has been made in recent years to implement robotic kits as tools in aiding with the learning process of secondary and higher educations students (See for instance [26] for a review of modular robotic kits for teachers). A Project-based learning toolkit and Matlab-based applications for teaching, both using quadrotors, were recently explored in [27,28] respectively. The work [29] reports Arduino-based projects for improving automatic control learning. More recently, works such as [30,31] report learning tools that demonstrate fuzzy techniques in a control laboratory project setting.
A large percentage of the works mentioned above are based on low-cost micro-controller units (MCUs), with Arduino boards being the most common; they have become the standard environment in embedded systems development. This is due to their accessibility and the large and active community that has generated a healthy ecosystem for makers and teachers. Within the context of simple autonomous agents, [32] reports an ultra low-cost line follower agent, based on an Arduino board. Basic Arduino boards such as the UNO are easy to use but they usually require extra components to include wireless capabilities or other features. Another widely adopted framework for control laboratories is the one provided by the LEGO®, MINDSTORMS®, kits. In particular, the EV3 ($350 USD for 2 students) [33] is a commercially available product for building agents that could perform platooning tasks (as they include sensing devices and are able to be programmed). They are capable of interfacing with Matlab/Simulink with native support, with a LEGO®, library ready to use. However, this fact does not simplify the implementation of control algorithms. Moreover, their price is not competitive for building a large scale platoon or multi-agent system lab, as it can be attested by the large quantity of similar open platforms developed by researchers and mentioned above. For our platform, we opted for the use of an ESP32 [34] -based MCU that adopts the ubiquitous Arduino UNO footprint, making it familiar for students and compatible with several breakout boards (or Hats) and existing libraries for Arduino boards and similar MCUs. However, when compared to the Arduino UNO, the ESP32 boards at a similar price range offer increased computational power in the shape of a dual core CPU with higher clocks, increased flash memory, and wireless communication capabilities that are fundamental for cooperative platooning schemes.
The contribution of this work is to present a scaled down experimental platform to study platooning. The platform is a train-like setup, where agents are restricted to moving along a rail, and such that each agent is able to measure their own speed, their distance to their immediate predecessor and capable of communicating relevant data to each other, enabling cooperative control schemes. The restricted movement allows focusing on the main issues in platooning problems, while the communication and sensing capabilities allow implementing different control algorithms and interconnection topologies with a decentralized processing [5,35,36]. We also include capabilities such that a third-party device can connect to the platoon agents and perform real-time monitoring of the signals of interest in each agent. The proposed platform is designed with a low budget of less than 30 (usd) per agent, but presenting a high degree of flexibility in its capabilities. This is possible due to recent advances in MCUs, low cost sensors and ad-hoc communication protocols for IoT applications, allowing us to develop low cost embedded systems for non-trivial automated tasks. With the designed platform, we are able to illustrate standard control techniques, such as proportional–integral–derivative (PID) control, in a teaching environment, but also validate theoretical results on the complex aspects of string stability and large platoons problems (such as those in [15,37,38]). A repository with the used MCU codes, scripts for supervision and remote configuration, 3D printed models, figures and videos of the platform in action can be accessed at https://github.com/pl-toon/pl-toon-codes (accessed on 10 March 2021).
The rest of the paper is organized as follows: Section 2 includes the description of the platooning problem that motivates the platform, presenting some theoretical and practical aspects. Materials and methods are in Section 3, which presents the design of the agents that comprise the experimental setup, including technical aspects of their components and capabilities. We also describe here the modules and the functions that the agents are capable of performing and their basic configurations. Section 4 is devoted to the setting up of the platform. In Section 5 we provide comparisons with the most similar platforms to the one presented here. Experimental results are in Section 6, where we propose educational activities that can be performed with the use of the platform. In Section 7 we discuss the scope of the experimental platform and propose research activities to perform. We conclude with some final remarks in Section 8.

2. Motivational Multi-Agent Problem

As mentioned before, the experimental setup that we present is motivated by the study of the scalability properties of autonomous mobile agents. We aim to provide an open and affordable platform for science, technology, engineering and mathematics (STEM) subjects education, which is functional and flexible enough to serve as an alternative to professionally built ones for platooning research. Specifically, we are interested in the case where each agent is capable of autonomously navigate in a one dimensional setting, forming a platoon of agents that moves in a coordinated way. Platooning has relevance in cooperative adaptive cruise control problems in AHS.

2.1. Platooning Setup

Using a framework similar to the ones presented in [9,10], we are interested in the formation control problem for a collection of N vehicles that travel in a one dimensional track with no overtaking. The position of the i-th agent is denoted by x i ( t ) , while the inter-vehicle distance is given by i ( t ) = x i 1 ( t ) x i ( t ) (see Figure 1). To ease the platooning analysis, researchers commonly assume that the vehicles are identical (homogeneous platoon), with no volume, or length. Also each vehicle dynamic is modeled by a Linear Time Invariant (LTI) system, which is controlled by a local LTI controller. This allows us to use the well-known analytical tools of linear control systems. Consequently, we can use in frequency domain analysis (omitting the Laplace transform arguments ( s ) for ease of notation) and write
X i = H ( U i + D i ) for 1 i N ,
where X i is the Laplace transform of x i ( t ) , U i is the Laplace transform of the controller output at the i-th local controller, u i ( t ) , D i is a disturbance at the i-th agent and H denotes the frequency domain dynamics of the LTI model for the vehicles.
The main goal is that each vehicle navigates at the same constant speed, while maintaining a desired inter-vehicle distance respect to its predecessor, and rejecting any possible disturbance. This implicitly requires that the platoon leader implements a type of adaptive cruise control strategy, and that the remaining vehicles reach and maintain the cruise speed within a safe distance.
To achieve such goal, each vehicle uses information of themselves and any other vehicle if available. We assume that each vehicle has access to its instantaneous velocity x ˙ i ( t ) , its position x i ( t ) , and the distance to its immediate predecessor i ( t ) , in addition to other local information as control signals, fuel status, etc. However, when assuming wireless communication capabilities in the platoon, such local information can be transmitted to other vehicles located in any arbitrary position in the chain of vehicles. The shared information among vehicles yields a communication network with a specific topology. The communication topology affects, in general, the performance of the entire platoon. Also, depending on the platoon length, the communication network could be complex and hard to implement, so it is desirable to use a simple network topology but ensuring a reasonable performance.
The platooning problem can be divided in two parts: the single agent tracking problem and the multi-agent scalability problem.

2.2. Single Agent Tracking Problem

To achieve the control objective, each vehicle must reach a given speed while maintaining a predefined desired spacing δ > 0 from its predecessor. For simplicity in the analysis, the same δ is used for every pair of vehicles. The leader ( i = 1 ) travels in an independent fashion at a constant speed whenever possible. If the platoon is adequately designed, the vehicles will reach the speed of the leader in steady state, achieving the desired formation enforced by δ . In other words, under no disturbances we will have that x ˙ i ( t ) = x ˙ 1 ( t ) and i ( t ) = δ for all i > 1 as t . Notice that the position x i ( t ) in steady state should be a ramp signal. The single-agent problem is then to design a controller to achieve such tracking. This of course will depend on the available data at the controller side.
Linear control theory establishes that, if we want to track a ramp signal in a one d.o.f. control loop, two integrators must be placed in the open loop transfer function. Given the vehicle dynamics, the LTI model H has at least one integrator and, thus, the zero steady state error tracking can be achieved requiring local controllers to have integral action. Hence, simple local controllers as PID or PI may be sufficient to design a sensitivity function T = H K / ( 1 + H K ) , where K is the controller, having an acceptable tracking performance. However, depending on the available information and the control scheme, more sophisticated control strategies can be adopted.

2.3. Multi-Agent Scalability Problem

This problem is related to how the whole platoon behaves when more vehicles are added. To illustrate the scalability problem, consider a naive control strategy in which each local controller only uses the positions X i 1 and X i as
U i = C p ( X i 1 X i )
As the vehicles posses mass, integral action is needed for the platooning goal, and each local loop will contain two integrators. According to [39], such closed loop systems will satisfy
0 ln C p ( j ω ) H ( j ω ) 1 + C p ( j ω ) H ( j ω ) d ω ω 2 0 ,
which implies that T = C p H / ( 1 + C p H ) , the complementary sensitivity function of the local closed loops, will satisfy | | T | | > 1 , i.e., there exists ω 0 such that | T ( j ω ) | > 1 . For this simple interconnection topology of the agents, it has been determined that the effect of disturbances at the leader will affect the inter-vehicle spacing of the k-th follower through a transfer function possessing the term T k [9]. Consequently, disturbances affecting any vehicle will be amplified as they propagate along the platoon, which can become unsafe or inefficient if the string size N grows large. This behavior is commonly known as string instability [9].
To avoid string instability, two alternatives are (i) to use predecessor tracking with a constant time-headway spacing policy and (ii) to use a leader-predecessor tracking scheme with a constant spacing policy. In the following we present these two strategies; however, there are other approaches that can also be studied in the proposed experimental platform of this work.

2.3.1. Predecessor Tracking with a Constant Time Headway Spacing Policy

An alternative to achieve a string stable platoon is to set [40]
U i = C p ( X i 1 X i h s X i ) ,
where h > 0 is a parameter and C p is a stabilizing controller for the model H. The parameter h is the time headway constant and this strategy can achieve string stability for all h > h inf by changing the spacing policy δ of the scheme from a constant to a constant time headway. Assuming the vehicles starting at rest in the desired formation, under no disturbances we will have that x ˙ i ( t ) = x ˙ 1 ( t ) and i ( t ) = δ + h x ˙ i ( t ) for all i > 1 as t , where δ is not fixed in advanced but depends on the agent speed.
This control scheme maintains a simple communication topology but reduces some of the potential benefits that traveling with small pre-defined inter-vehicle spacings can yield [14].

2.3.2. Leader-Predecessor Tracking with Constant Spacing Policy

Another alternative to achieve string stability is to use information of the leader. For instance, the output of the local controllers for i > 2 can be chosen to be [10]
U i = C p ( X i 1 X i ) + C v s ( X 1 X i ) ,
where C p and C v are controllers that stabilize H in closed loop. It can be noted that these control outputs are built by using the distance between an agent and its immediate predecessor and comparing the local velocities to the one of the leader.
This strategy enables the use of a constant inter-vehicle spacing policy given by a distance δ ; however it requires the leader to broadcast its velocity to the rest of the platoon, which makes the communication topology more complex (and costly) as the number of agents increases.

2.4. Practical Aspects

Each agent should have several sensing capabilities, in order to apply the previous analytical results in a real setting. An experimental setup capable of replicating the behavior of a string stable control scheme requires local measurements, actuators, and communication and processing capabilities. This imposes practical constraints to study platooning in an experimental platform. Indeed, some of the above assumptions may not be satisfied in a practical scenario. However, some of the assumptions are not critical and others can be satisfied with a proper platform design.
For instance, considering agents with no volume as in the previous subsection does not invalidate the analysis or its application in a practical setting, as the relevant information needed for each agent corresponds to the distance from its frontal part to the rear of the predecessor, which can be measured with ranging sensors. The assumption that the agents travel in a one dimensional track can be satisfied with a suitable design of the workspace. Also, the coordination and automation of an arbitrary large number of agents cannot be implemented due to communication, processing and space constraints. However, a proper design of the experimental platform should allow us to work with sufficiently large platoons that exhibit the desired scalability behaviors of interest.
Remark 1.
Here, we want to remark that for correctly exhibiting the scalability properties of a platooning configuration, a substantial number of agents may be needed. This, together with commonplace budget constraints (within the academic environment and even more so in developing countries) motivate the design of the proposed experimental setup, as acquiring the required number of agents from established vendors and brands is likely to be prohibitive. In the following sections we document the component selection for the agents, adding emphasis on budget reduction, ease of access and configuration, while ensuring that the requirements are met for these simplified platooning architectures of interest.

3. Materials and Methods

To have an experimental setup to study platooning using the control algorithms described in the previous section, it is needed to design the agents and their workspace. The proposed platform is inspired by the dynamics of a train, but assuming that the agents (scale down train carriages) are not physically connected. In the following subsections we specify the technical capabilities, the component selection, functional modules and cost for the experimental platform.

3.1. Required Capabilities

To replicate a platooning scenario previously described, the vehicles should move in a one direction track with no overtaking. For implementing the specific control strategies mentioned in Section 2, every agent must be able to measure their own speed and sense the distance to its immediate predecessor. The leader must be able to broadcast its speed to every follower. The followers in turn, must be able to receive this information and make use of it. This must be done wirelessly, hence, communication capabilities that ensures proper transmissions and receptions on each agent is required. Also, each agent must have processing capabilities in order to autonomously control their own movement, based on the available information. An additional secondary requirement, is the capability for supervision and remote configuration of the agents. These must be implemented wirelessly by an external device. Finally, each agent must be low-cost, which makes increasing the number of agents affordable.

3.2. Platform Components

3.2.1. Workspace of the Agents

Agents must be designed so that they move in one dimension, without overtaking. In our design, this is achieved by using small joinable LEGO® rails to form a track on which agents move. The main track is a straight rail line; however, given the flexibility of the LEGO® rails, the track can be modified adding curved rails sections. With this design, it is not necessary to include control algorithms to keep the agents properly placed and oriented in the track, and the platoon analysis can be focused on the main problems described in Section 2, i.e., longitudinal formation control and string stabilization. Each rail surface has a checkerboard pattern (see Figure 2), which is used for enabling the speed sensing.

3.2.2. Processing Devices

For each agent we chose an Arduino format board including the ESP32 System on a Chip (SoC) micro-controller [34,41], developed by Espressif, as the main computing unit, due to its capabilities (see Figure 3). The ESP32 has a dual core Xtensa LX6 CPU@240 MHz and a wireless communication module integrated in the chipset of the device, allowing the use of WiFi and Bluetooth Low Energy (BLE). It also possesses 34 general-purpose input/output (GPIO) pins for different functions as digital-only, analog-enabled, capacitive-touch-enable, and others. An important reason for this choice is that this is a very low-cost MCU, which is one of the main goals of this project.
For monitoring purposes, an extra processing device is also considered in the platform design. We use a Raspberry Pi 3 model B+ as a coordinator device which generates a WLAN and other capabilities of the platform. However, as the platform is designed and built with open hardware and software, any low range laptop or PC with a wireless adapter should be capable of working as the coordinator device.

3.2.3. Actuation Devices

Each agent is equipped with a LEGO®, 9V DC motor (see Figure 4) controlled by an H-bridge driver. This motor, including wheels, is selected due to its compatibility with the physical design of the rails in the workspace. The used H-bridge corresponds to a TB6612FNG breakout board (see Figure 5), able to deliver an average current of 1.2 [A] and tolerating a peak of 3.2 [A] to two motors. In our design, only one channel of the integrated circuit is used, occupying 3 GPIOs of the micro-controller board: two pins to establish the direction of the rotational movement of the wheels and one pin for the PWM signal generated by the control algorithm within the MCU. The driver is tasked with processing the PWM signal generated by the micro-controller to manipulate the position and/or velocity of the agents through an external power source.

3.2.4. Sensing Devices

Each agent has two sensors, the VL53L0X and ADNS3080 breakout boards, which are in charge of measuring the distance respect to its predecessor and their own velocity respectively.
The VL53L0X [42] device is a Time-of-Flight (ToF) ranging sensor (see Figure 6) which is set in the front part of each agent, and is used to measure the distance to the predecessor agent. These modules measure distance based on the time for emitted photons to be reflected by the nearest object. The sensor uses the I 2 C communication protocol to interact with the MCU and can measure distances up to 200 cm in its fast measurement setting.
On the other hand, to measure the agent velocity we use an approach based on the ADNS3080 optical flow sensor module (see Figure 7), used in optical mice. The sensor is programmed/configured by writing into its registers through an SPI interface, and processes the captured images of the surface. Each optical sensor is able to capture images at a rate up to 6400 frames per second. We locate the sensor in the rear of each agent, capturing images of the pattern on the surface of the track. From there, by knowing the time between measurements and the bi-dimensional displacement provided by the sensor, we can estimate the instantaneous velocity of the agent after a calibration procedure has been performed. We add an LED light located next to the camera to improve the performance of the sensor.
It is worth mentioning that, in our setup, the ADNS3080 sensor can also provide measurements of the agent acceleration, if needed.

3.2.5. Power Supply

Each agent is equipped with a 9 [V], 600 [mAh] rechargeable battery, to supply energy to the micro-controller board (which includes the communication module), the DC motor through the H-bridge circuit, and indirectly to the ToF sensor, the optical sensor and the LED light. With this battery, the agents are able to function autonomously long enough to carry out several experiments with wireless communication enabled.

3.2.6. Chassis: Design and Assembly

The chassis design for a single agent begins with the LEGO®, 9V DC motor. We designed 3D printed pieces that can be attached to the motor and are also capable of carrying and securing the different sensors and needed circuitry (see pieces A-H in Figure 8). The main component of the agents, which is attached over the motor, is the ESP32 micro-controller board, while the driver circuit/power stage (H-bridge), a LED, the 9 [V] DC rechargeable battery, and speed sensing camera are positioned over a secondary wheeled part, joined to the back of the LEGO®, motor with 3D printed pieces (see Figure 8). This joint can rotate with little friction, allowing the extended train to travel over curved tracks with no problems (C in Figure 8). This design choice also permits to lower the center of mass of the train with respect to its length, which provides stability to the agents. At the front of the agents, a small 3D printed connector enables attaching the ranging sensor and to set the angle with respect to the surface to obtain proper measurements of the immediate predecessor or obstacles on the way.
The assembly of each agent is straightforward as the diagram in Figure 8 shows. Firstly, most of the 3D printed pieces are assembled through screws over the motor and the wheeled back cart. These pieces are designed specifically for the components to be used. The micro-controller is then fastened over the piece that fits on the motor (B in Figure 8). The 9V battery and a mini breadboard that holds the H-bridge are fastened over a piece that fits on the back cart (D in Figure 8). The distance sensor is attached to the 3D part designed for this purpose in the front of the carriage and needs to be adjusted to aim correctly at the front of the agent (A in Figure 8). The ADNS3080 sensor is fastened with an LED light to a piece attached to the back of the secondary cart (H in Figure 8). Finally, all the wiring is made according to the diagrams in Figure 3, Figure 4, Figure 5, Figure 6 and Figure 7.

3.2.7. Overall View of the Platform Design and Costs Breakdown

In Figure 9, a block diagram depicts the interaction of the previously described electronic components. All these components are incorporated in the designed chassis as described in the previous section. Figure 10 present the platform design with real components. The software used with the platform is discussed in the next subsection.
Table 1 shows the approximate costs of the components chosen for each agent. The tracks, the coordinator unit (Raspberry Pi) and any other extras will add from $50 to $75 USD to the cost of the platform depending on the size of the workspace and the number of agents to be used.

3.3. Software

3.3.1. Programming Languages and Environments

Within the software development area of the platform we can identify two kinds of programming: internal and external programming of the platoon. The first refers to all the coding needed for the correct functioning of the platform, while the second corresponds to programmed apps that are used to interact with the platform and/or individual agents, but have no effect in their fundamental behavior.
The internal programming considers mainly the MCU coding, which can be easily done using the Arduino IDE. The ESP32 libraries needed for this interaction are mature enough and such that most Arduino functions and peripheral interactions work with little effort. Register configurations of the sensors, and wireless communication initialization are all done in the setup area of the code. More importantly, a calibration stage is performed every time the agents are powered on.
For the agents, we use two communication protocols supported by the MCU: the Message Queuing Telemetry Transport (MQTT - ISO/IEC 20922) and ESP-NOW, a WiFi protocol developed by Espressif. In the case of MQTT, the open source Mosquitto client is used in either a Raspberry Pi, or in a computer connected to the same WLAN as the agents. Additionally, to capture and monitor the data from experiments, a laptop with a wireless adapter capable of monitor mode is required. A program developed in C++ (based on https://github.com/thomasfla/Linux-ESPNOW, accessed on 15 September 2020.) is used to capture the wireless ESP-NOW packets sent by the agents in a Linux machine. With the same program, the distance and velocity measurements from each agents are stored in a CSV file for further analysis or real time plotting with Python or any other method. Internal parameters of the agents such as PID gains, sampling times, etc. can be modified at the corresponding MQTT topic, from any MQTT enabled device (laptops, desktop PCs or handheld devices) given a suitable interface or app. We also design a simple dashboard allowing users to easily interact with the agents. It requires a Python interpreter in a computer and any device that can navigate with a browser will be able to observe a plot of the measured distance by the distance sensor of a single agent, modify the PID parameters or the desired reference distance to an obstacle, modify the frequency of the PWM signal etc., everything in real time. The measurements are also stored in a comma-separated values (csv) file for further manipulation and analysis. Fully functional codes for the agents and external devices, dashboard, 3D printing designs, and audiovisual material of the platform in action are provided in the repository of the platform https://github.com/pl-toon/pl-toon-codes (accessed on 10 March 2021).

3.3.2. Functional Programming Modules

In this section we will present the modules that enable each agent of the platoon to function as an autonomous vehicle. We classify the programming of the platform within 3 functional modules: 1. Communication with an external device, 2. Inter-vehicle communication and 3. Sensing and Control. Their goals are self-explanatory, and we provide a few examples of the algorithms that can be found within them.
Communication with an external device: Communication with a non-agent device is not critical for the fundamental tracking problem and functionality, but it is highly desirable for two main reasons: firstly, to allow the supervision of the internal state of the agents, as they transmit their sensor measurements and control actions to the external device for monitoring and processing; and secondly, to provide remote access for easily setting the controller coefficients, the time-headway constant or any other relevant internal agent parameters.
These tasks are implemented using the MQTT protocol. The publish/subscribe MQTT network protocol is widely used in IoT applications for being lightweight and easy to configure. This protocol requires a dedicated device, acting as a broker, for coordinating the requirements and messages of all the clients (agents). For the current setup, this job can be given to either a Laptop with a wireless adapter, a Raspberry Pi 3 B+ (two alternatives that we tested) or any similar device.
Algorithm 1 is an example of the routine to modify the controller parameters via MQTT. At the start of the main loop, the agents check for updates within the subscriptions. After the topic is matched, the corresponding internal variable of the agent is updated and the code resumes execution.
Algorithm 1 Example of MQTT routine to change PID parameters.
1:
Receive m e s s a g e from t o p i c
2:
Convert the number in m e s s a g e to a floating point v a l u e
3:
if t o p i c = = K p then Set K p to v a l u e
4:
end if
5:
if t o p i c = = K i then Set K i to v a l u e
6:
end if
7:
if t o p i c = = K d then Set K d to v a l u e
8:
end if
Inter-vehicle communication: The platform requires the use of a communication protocol so the agents can interchange their measurements to do control afterwards. We use the protocol ESP-NOW [34], which is a wireless communication protocol developed by the manufacturer of the ESP32 board. Unlike MQTT, ESP-NOW does not require a router to establish a communication link. The protocol uses the 2.4 GHz channel band and the connection is similar to the one used by wireless mice.
The main reason for using this protocol instead of MQTT for the inter-vehicle communication is because ESP-NOW produces significantly smaller latency (less than 1 (ms)), so the transmitted data can arrive at the agents sooner, allowing the controller sample time to be reduced for a better performance and enabling real-time (for the agent dynamics) monitoring.
Algorithm 2 illustrates the ESP-NOW implementation when the leader broadcasts its speed for the followers to use in a cooperative adaptive cruise control implementation. When an ESP-NOW package is received by an agent, a check is performed to confirm if it was sent by the leader using its media access control (MAC) address. If this check is successful, the payload is stored and the leader velocity is extracted to update the corresponding internal variable of the agent, which is now available for updating the control signal.
Algorithm 2 ESP-NOW routine for following agents.
1:
Receive the p a y l o a d and the m a c A d d r e s s from the sender agent
2:
if   m a c A d d r e s s m a c L e a d e r   then return
3:
else
4:
    Copy the p a y l o a d bytes to a data packet structure
5:
    Set the global variable v e l o c i t y _ l e a d e r to the value received from the p a y l o a d
6:
end if
Sensing and Control: In our setup, every agent is capable of measuring its own velocity and the distance to its predecessor. Furthermore, each agent has access to some of the measurements of other agents through the communication capabilities of the MCU. All this information is used to implement a functional module dedicated to control the movement of the agents. We consider that the code for processing the sensor data, the control signals calculation, and signal conditioning for the actuating devices, are all part of the control module.
There are basically two strategies to compute the control signals: centralized and decentralized [43]. In the first strategy the measurements of the whole platoon are used to calculate the control signals for each agent considering the global state of the platoon. This can be done in one processing unit, such as an external processing device. Therefore, once calculated in the external device, the control signals are sent through the communication modules to each agent. Clearly, this strategy undermines the autonomy of the agents. Conversely, in the decentralized strategy the control signals are calculated in the local MCU of the agents but using a subset of the platoon data, commonly data from local sensors and some received broadcasts from other agents. The communication network topology is expected to be simpler in a decentralized approach.
In our setup, the platoon controller is composed of a set of local controllers, implemented in the MCU of each agent that provides local control signals based on the available measurements. We assume a decentralized approach where each agent has access to some of the measurements of other agents, mainly the predecessor (through the ranging sensor) and the leader (through the ESP-NOW protocol).
To illustrate, we now present a routine to implement a PID-based control; however due to the versatility of the platform different control techniques can also be implemented. The particular implemented approach is composed by two PID controllers, and uses the agent velocity, the distance to its predecessor, and the leader velocity. The first PID regulates the difference between the measured and a desired distance, whereas the second PID is set up to maintain the respective agent velocity equal to the leaders velocity.
To implement the controllers we used the Arduino PID Library, which was chosen to its simplicity. To calculate the output value of a PID controller the library requires an error variable, a reference value and the PID gains. We use an additional variable α as a weight, allowing handling the relative importance between the two PID outputs. Algorithm 3 is done in every iteration of the main loop in the MCU:
Algorithm 3 Control routine for following agents.
1:
Calculate the measurements of the distance sensor d and the velocity sensor v
2:
Calculate the errors e d and e v respect to the set-points
3:
if time since last call is bigger than S a m p l e R a t e then
4:
     Compute u d with the distance PID and e d
5:
     Compute u v with the velocity PID and e v
6:
end if
7:
Calculate the motor input as u = u d + α u v
Where e d and u are used later in the motor routine. The PID gains can be easily tuned within the Arduino IDE as well as remotely via MQTT. We should mention that this remote configuration can also be made through handheld devices with appropriate software.

4. Platform and Agents Set Up

Once an agent is assembled and programmed, for instance using the base codes provided in the repository of the platform, the set up of the platform can be done. In the following we summarize the functionality of the agents with the provided codes. At the startup, a self-commissioning is carried out by the agents in an automated fashion with the aid of the sensors, facilitating and speeding up the configuration of the agents for a new user.

4.1. Motor Dead-Zone Identification

The first step of is to detect the width of the motor dead-zone. For this task we use the ADNS3080 sensor. With a simple loop, the MCU slowly increases the duty cycle of the PWM signal applied to the 9V motor starting from rest. Once the optical sensor registers movement, the process is stopped and the corresponding value is stored for a proper implementation of the control algorithm, ensuring that the PID output is always over the dead-zone threshold whenever it requests the agent to move. As several factors can affect this value (such as battery levels, unexpected obstacles on the tracks, etc.) this process is performed each time the agents are switched on.

4.2. Sensor Calibration

To locally estimate the agent’s velocity, a calibration of the optical sensor is done after identifying the dead-zone. First, using the distance sensor as the reference for the calibration, the agent measures the distance to a standing object. Then the train moves forward and measures its distance to the same object again and does a comparison between the distance traveled measured by both the VL53L0X and ADNS3080. This is then used as a scale factor for future measurements of the optical sensor. The calibration process is done every time the MCU is powered on to guarantee consistent measurements between both sensors and also to make them independent of external factors such as the iteration of the experiment, the battery level and luminosity conditions of the environment.

4.3. Communication Initialization

Finally, the agents coordinate within both communication protocols. For the MQTT protocol, each agent subscribes to predefined topics, referring to relevant quantities (PID parameters, sampling rate, desired control scheme, etc.) or topics used for synchronization purposes. For the ESP-NOW protocol in broadcast mode (as for instance when the leader is the only agent sending date, while the followers listen) the setup is simple. A more involved preliminary step would be required for other communication topologies as the agents require the MAC addresses of their peers.

4.4. Remote User Interaction

Once the agent finishes the set up, it will stay on hold waiting for a start command on the MQTT broker. The reference between agents, the PID parameters, and other internal values, can be changed remotely in real time. After the agents start to use the PID control to regulate their distance to their nearest predecessor or obstacle, their measurements, control signals and other values are sent for supervision. The agents can be also stopped remotely through MQTT messages.

5. Comparison with Other Experimental Platforms

Similar platforms for teaching and research activities have been reported in the literature. For instance, the recent work [19] reports the development of an open source differential robot (MONA) possessing proximity sensors but lacking wireless communication capabilities in its most basic version. An expansion module can be used to implement inter-agent communication, taking the cost per agent over the $100 USD mark. In [21] (microMVP) and [44] (Colias), two low cost robotic platforms are reported. They are used for the study of trajectory following and swarm research, respectively. The microMVP platform has a per agent cost of $90 USD and even though the agents posses wireless capabilities through the use of Zigbee modules, vehicles only receive data from a central control computer using a webcam for sensing the positions of the agents on the plane. In such a scenario the agents do not send any data, i.e., there is no inter-agent communication without further modifications. Agents in the Colias platform move on the plane and cost around $35 USD. They posses distance sensors and IR modules enabling communications with neighbors up to a 2 [m] range and are designed for research of large-scale swarming in a lab setting. As the agents are small and use a high gearbox ratio, there is no need to use a dynamic model and the differential-driven kinematics suffice. Other works such as [24] and [22] develop experimental platforms with agents capable of moving in 2 dimensions for implementing decentralized MAS. These platforms are capable of performing trajectory tracking, obstacle avoidance and multi-agent formation control. In both cases, the platforms rely on a hovering camera and a remote PC for supervision and computing of the control signals. The agents used in [24] have a cost over $4500 USD. Table 2 contains a general comparison with the mentioned and other platforms.
The platform proposed in this work considers agents whose dynamic model is easy to identify and also modify. For platooning applications and their development it is relevant to consider this aspect, as properties such as string stability and collision avoidance may only be studied through a thorough mathematical description of the MAS. Moreover, being able to modify the dynamic model of the agents (e.g., by changing the weight of the agents) allows for flexibility of the platform when used in PID control or a system identification lab experience. By simplifying the platform to the 1D case when moving on tracks, we avoid the need for a webcam for supervision and of a remote PC for centralized control. Each agent is fully autonomous and capable of broadcasting its state to any neighbors or central controller, but can be accessed if needed for remote configuration of its parameters in real time. The spatial distribution of the tracks can be made arbitrary large and limited only by the range of the wireless communications and ranging sensors, rather than by the field of view of a camera.

6. Results

In this section we report experimental results in the context of teaching activities to perform with the platform. Research activities are discussed in the next section.
For teaching activities, we consider two types: classroom experiments and lab experiments. In the first case, experiments are not space demanding and can be done in a classroom, where each student or a pair of students, manipulates and studies the movement of one agent. In the second case, more complex experiments can be carried out for a platoon of agents, but this should be done in a lab with appropriate dimensions.

6.1. PID Control Classroom Assignments

Proportional-integrative-derivative (PID) control is one of the most simple but important control techniques. This control mechanism is commonly studied in undergraduate control courses and is widely used in the industry. As stated in previous sections, PID controllers can be implemented in each agent of the platoon to maintain a desired distance between agents. In a classroom environment, single agent experiments can be carried out to teach PID control with minimal set up using the proposed platform of this work.
Below we present a set of laboratory assignments related to the study of PID control and then an specific description of the related activities. This activities are designed for two-students lab groups with the same background, which includes a course in linear systems analysis, and a previous or simultaneous course on control systems in which the theoretical concepts of PID control is studied. The main goal of this activities is to illustrate how an empirical PID tuned controller performs.
With the proposed activities the student should:
  • Assignment 1: Understand the main characteristics and operation of a single agent of platform.
  • Assignment 2: Determine suitable controller parameters applying empirical PID tuning techniques.
  • Assignment 3: Compare the performance of the controller for different PID parameters.

6.1.1. Assignment 1

Students should familiarize themselves with the experimental platform. They must perform a superficial inspection of its components, and then interact with the platform through the monitoring software and dashboard, performing certain basic experiments. For this, students must: (a) Study the dashboard and its functions to obtain the sensor measurements, send control signals to the actuators, store this data and plot it, and to vary the controller parameters. (b) Keep the agent at a fixed distance from an fixed obstacle and plot the measured distance. Repeat this at different distances from the object and verify that the measurements are consistent with the observed distance. (c) Send control signals to the actuators to move the vehicle forwards and backwards, maintaining a certain safety distance from an obstacle. Plot the measurement of the control signal and the measured distance, and check that they are consistent. (d) Obtain the current controller parameters using the software, change them remotely, and then request them again to verify that these parameters were modified successfully.

6.1.2. Assignment 2

Students are required to use the measured distance respect to a static object to run the well known Ziegler-Nichols second method for PID tuning. In Figure 11 we can observe a plot of such an experiment performed with an agent of the platform. The procedure is as follows: (a) Set K i = K d = 0 and increase the parameter K p in the PID controller, and perform step changes on the desired distance to the static object (blue line) until the measured distance by the ranging sensor (orange line), exhibits oscillations in steady state. (b) Specify the critical value for the gain K p , and estimate the frequency of oscillation from the collected data. (c) Use this information to compute a set of values for K p , K i and K d , according to the well-known Ziegler-Nichols gain estimator chart. (d) Test the tuned PID controller using step references and describing the transient and stationary system response.

6.1.3. Assignment 3

The tracking performance of the PID controllers of a single agent can be evaluated running experiments and analyzing the system response. Given the monitoring capabilities within the platform, the rising time, overshoot, tracking errors an other information can be measured quantitatively, allowing for a proper performance evaluation. Additionally, having access to the position and velocity of the agents wirelessly, enables to observe quantitatively in real time how these measurements change in response to varying the PID parameters K p , K i , and K d . Such values can be easily changed wirelessly and we can also evaluate the effect of turning off the derivative and/or integrative parts of the controllers. The plots of Figure 12 show the closed loop step response of a single agent with a PI (first step) and a PID controller (second and third steps) in one experiment, both tuned with the Ziegler-Nichols method. It can be noted that the derivative term provides a smaller overshoot, as it is predicted from classic linear control theory. However, the presence of noise in the output measurements becomes a drawback noticeable in the control action.
Specific activities are: (a) Set in the platform the parameters of a Ziegler-Nichols tuned PID controller and perform a step reference tracking. Store the control action, reference and measured distance. (b) Use the collected data to measure the rise time, overshoot, settling time and tracking error based on an Integral of the Square error (ISE) index. (c) Repeat (a) and (b) for different set of parameters, including the case of k i = 0 , (PD controller), k d = 0 (PI controller). (d) Compare the perfomance of the controllers based on the measured rise time, settling time, overshoot and tracking error.
Remark 2.
We want to highlight that the data to generate Figure 11 and Figure 12 were obtained by Electronic Engineering students in a remote laboratory at UTEM (Chile), using similar procedures as the ones we propose. Student feedback of the sessions was positive and most groups were able to successfully execute the tasks of Assignments 1 to 3 of this section.

6.2. Platooning Lab Experiments

The experimental platform can be used to teach undergraduate and graduate students about string stability. This can be done based on well known results (See Section 2), where some control schemes are not always compatible with string stability.
We propose to use the two control approaches given in Section 2, namely, predecessor tracking with a constant time headway spacing policy and leader-predecessor tracking with a constant spacing policy. In both cases, a proper controller design yields a string stable platoon, but such design differs from one case to the other. In any case, the experimenters should be aware that the agents could collide for string unstable scenarios. Consequently, they should be prepared in case an agent leaves the tracks accidentally.
Below we specify the assignments for a string stability experience and describe the related activities. The experience is designed for 3 students teams with the same background, which includes a course in linear systems analysis, and a course on control systems and a previous or simultaneous course on advanced control systems where the notion of string stability is introduced.
With the proposed activities the students should:
  • Assignment 1: Understand the main characteristics and operation of the platform.
  • Assignment 2: Identify the concept of string instability via experimental results.
  • Assignment 3: Obtain a string stable behavior in a predecessor-tracking setup.
  • Assignment 4: Obtain a string stable behavior in a leader-tracking setup.

6.2.1. Assignment 1

To carry out this assignment, students must perform the same activities as Assignment 1 in the previous subsection but adding wireless inter-vehicle communication. Thus, we add some steps: (e) Set a 4 agents platoon on the track, turn on the wireless inter-vehicle communication using the external device software and set it to send the leader velocity to the remaining vehicles in the platoon. (f) Move the leader, setting 30 % of the duty cycle for the motor. (g) Store and plot the leader speed data received in each vehicle and check whether it is concordant with the speed locally measured in the leader.

6.2.2. Assignment 2

Based on the results in Section 2, one way to observe string instability in a platoon is to consider a simple predecessor-following topology with no time-headway policy. The string unstable behavior can be observed at the beginning of the experiment starting from rest, and also for any abrupt change of the leader speed. An example of what is expected in this type of experiments is depicted in Figure 13, where experimental results were obtained using the proposed experimental platform with platoon of 4 agents. In the upper plot, the tracking error peaks increase along the chain of agents, which is a string unstable behavior.
Steps related to assignment 2 are: (a) Design a PID controller as in the previous subsection and set the corresponding parameters for each local controller. (b) Implement a predecessor-following topology as described in Section 2. This can be achieved using the local ranging sensor measurements. (c) With the platoon at rest, move the leader with a step signal for the speed and stop when the leader reaches the end of the track. During the experiment, collect data from each agent. (d) Plot the collected data and check a string unstable behavior.

6.2.3. Assignment 3

In this assignment, a string stable controller design must be tested, verifying that agent errors are not amplified along the string. One way to do this is to use a constant time headway policy in the predecessor-following strategy. In Figure 13b, a strategy based on a constant time headway policy was implemented, leading to a string stable performance.
The tasks to achieve this assignment are: (a) Design a PID controller, for a given constant time headway h (see Section 2), such that the string stability condition | | T | | < 1 is satisfied for this topology. (b) Implement a predecessor-following topology with constant time headway as described in Section 2. Set the PID parameters and the constant h obtained in the previous task for each local controller. (c) With the platoon at rest, move the leader with a step signal for the speed and stop when the leader reaches the end of the track. During the experiment, collect data from each agent. (d) Plot the collected data and check if string stability is achieved. (e) Repeat points (a) to (d) for a higher value of the leader velocity. (f) Observe that increasing the leader velocity yields an increasing inter-vehicle distance due to the time headway policy.

6.2.4. Assignment 4

For leader-predecessor tracking schemes, similar experiments can be carried out. In this case, however, the desired inter-vehicle distance is a constant value, so the leader speed can be increased or decreased and the steady state inter-vehicle distance must remain unchanged.
Steps to achieve this assignment are: (a) Design a PID controller, for a leader-predecessor tracking (see Section 2) such that the string stability condition | | T | | < 1 is satisfied for this topology. (b) Implement a leader-predecessor tracking setup as described in Section 2. This can be achieved using the local ranging sensor measurements and the leader velocity transmitted wirelessly to each agent. Set the PID parameters obtained in the previous task for each agent controller. (c) With the platoon at rest, move the leader with a step signal for the speed and stop when the leader reaches the end of the track. During the experiment, collect data from each agent. (d) Plot the collected data and check if a string stable behavior is achieved. (e) Repeat points (a) to (d) for a higher value of the leader velocity. (f) Observe that increasing the leader velocity does not affect the inter-vehicle distance, as expected.

7. Discussion

Platooning and string stability have been widely studied in the literature. However, a large majority of the contributions are theoretical- or simulation-based. The proposed platform was used successfully to implement cooperative platooning algorithms with open software and low cost components. Its affordability (in cost per agent) and flexibility allow for validation or easy prototyping of more involved platooning schemes, while enabling experimentation that complements simulation studies of practical implementations. The proposed platform is a well balanced alternative to perform teaching activities as those proposed in the previous section, but also for testing platooning theoretical results considering the effect of practical and technical aspects such as hardware and software limitations. Indeed, in recent years, practical issues in platooning have become relevant research topics. We now discuss some research applications of the platform.

7.1. Communication Network Aspects

Research experiments can be performed putting the communication network topology, and the information shared by the agents as main subjects. The stability and performance should depend on the kind of information shared between agents, such as speed, position, acceleration, control signals, etc. The network topology establishes which agents are transmitting and receiving certain data. There are many different possibilities to test on the platform by modifying the communication setup.
Communication impairments are also a relevant research topic. One can experimentally observe how communication delays, random data-loss, noisy channels and other communication issues affect the platoon performance. Delays and data dropouts can be emulated via coding or observed under certain conditions. A related experiment could be determining how many agents can be added to the platoon until a communication issue arises due to limited channel capacity. Another possibility is to measure how far the leader can broadcast its data to the rest of the platoon and test whether the speed of the agents plays a role.

7.2. Security in Cyberphysical Systems

Security issues are also an important research topic. Since the platoon may rely on a communication network, a critical aspect in a real application is ensuring transmitted data is not corrupted, changed or accessed by external attackers. There are several types of cyber-attacks against which agents must be protected. The platform allows for testing security algorithms and/or protocols that can be used for this needed protection.

7.3. Advanced Control Algorithms

Finally, it is important to highlight that not only PID control can be tested within the micro-controller unit. Indeed, more sophisticated control and estimation algorithms can also be implemented, such as Kalman filtering, linear quadratic regulator (LQR), model predictive control (MPC), etc. Clearly, the computational demand of the MCU must be considered given the unavoidable processing speed limitations. For instance, designing predictive control with long prediction horizon would become infeasible to implement. Nevertheless, the platform is designed to be flexible not only in the communication topology, but also in the control algorithms to be used for both teaching and research.

7.4. Platform Limitations

As the platform is built with low cost components, there exist some limitations on what the agents are capable of achieving. The ToF module VL53L0X can only measure up to 2 (m) with a precision nearing 5 (mm). Moreover, there are some strict timing constraints that limit the fastest sampling time to 20 (ms). Speed measurements with the ADNS3080 can achieve resoultions of 1 (cm/s) and detect speeds up to 100 (cm/s) with the timing constraints imposed by the ranging sensor. Both of these measurements have noticeable amounts of noise that can are managed with simple filtering routines (included in our routines at the repository). Abrupt changes of direction of the agents may lead to wheel slippage.

8. Conclusions and Further Platform Development

We presented an experimental multi-agent system platform for teaching of control labs and platooning. The design of the platform is open, low-cost, flexible and capable enough for the verification of cooperative platooning schemes.
The individual agents of the platform are also well suited for teaching of PID control labs (and embedded systems). Moreover, the agents can be accessed and supervised remotely, enabling remote experiences for very low costs, complexity and assembly time.
The platform was used as a teaching tool for remote laboratory modules, mitigating the effects of the 2020 pandemic at the Faculty of Engineering of Universidad Tecnológica Metropolitana, in Santiago de Chile.
Future works with the platform will include the development of an easy to use Graphical User Interface for remote labs and verification of other platooning control schemes. Novel research directions aided by the platform will consider the proposal of new control schemes with different spacing policies and interconnection topologies, and the study of the effects of lossy communications on the scalability properties of multi-agent systems.
We conclude by mentioning that it is reasonable to assume that more powerful MCU and better sensors in similar formats will be available in the future. Given the open design of the agents, updating the MCU or any other part, maintaining the basic functionality, should be possible, allowing extending the lifespan and improving the capabilities of the agents and the platform.

Author Contributions

Conceptualization, A.A.P.; methodology, A.A.P. and F.J.V.; software, A.A.P., C.G., C.A. and F.V.; validation, A.A.P., C.G., C.A. and F.V.; formal analysis, A.A.P., C.G., C.A. and F.V.; investigation, A.A.P., F.J.V., C.G., C.A. and F.V.; resources, A.A.P. and F.J.V.; data curation, F.V.; writing—original draft preparation, A.A.P., F.J.V., C.G., C.A. and F.V.; writing—review and editing, A.A.P. and F.J.V.; visualization, F.J.V., C.G. and C.A.; supervision, A.A.P. and F.J.V.; project administration, A.A.P. and F.J.V.; funding acquisition, A.A.P. and F.J.V. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been funded by AC3E, Basal Project FB0008 and UTFSM internal project PI-LII-2020-38.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available in https://github.com/pl-toon/pl-toon-codes (accessed on 10 March 2021).

Acknowledgments

The authors would like to thank Fabián Adasme, Cristofher Almuna and Julio Castro of UTEM for their valuable technical support.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Oh, K.K.; Park, M.C.; Ahn, H.S. A survey of multi-agent formation control. Automatica 2015, 53, 424–440. [Google Scholar] [CrossRef]
  2. Egerstedt, M.; Hu, X. Formation constrained multi-agent control. IEEE Trans. Robot. Autom. 2001, 17, 947–951. [Google Scholar] [CrossRef] [Green Version]
  3. Chen, C.P.; Yu, D.; Liu, L. Automatic leader-follower persistent formation control for autonomous surface vehicles. IEEE Access 2018, 7, 12146–12155. [Google Scholar] [CrossRef]
  4. Lawton, J.R.; Beard, R.W.; Young, B.J. A decentralized approach to formation maneuvers. IEEE Trans. Robot. Autom. 2003, 19, 933–941. [Google Scholar] [CrossRef] [Green Version]
  5. Shao, J.; Xie, G.; Wang, L. Leader-following formation control of multiple mobile vehicles. IET Control Theory Appl. 2007, 1, 545–552. [Google Scholar] [CrossRef]
  6. Loria, A.; Dasdemir, J.; Jarquin, N.A. Leader–follower formation and tracking control of mobile robots along straight paths. IEEE Trans. Control Syst. Technol. 2015, 24, 727–732. [Google Scholar] [CrossRef] [Green Version]
  7. Dorri, A.; Kanhere, S.S.; Jurdak, R. Multi-agent systems: A survey. IEEE Access 2018, 6, 28573–28593. [Google Scholar] [CrossRef]
  8. Middleton, R.H.; Braslavsky, J.H. String instability in classes of linear time invariant formation control with limited communication range. IEEE Trans. Autom. Control 2010, 55, 1519–1530. [Google Scholar] [CrossRef] [Green Version]
  9. Seiler, P.; Pant, A.; Hedrick, K. Disturbance propagation in vehicle strings. IEEE Trans. Autom. Control 2004, 49, 1835–1842. [Google Scholar] [CrossRef]
  10. Peters, A.A.; Middleton, R.H.; Mason, O. Leader tracking in homogeneous vehicle platoons with broadcast delays. Automatica 2014, 50, 64–74. [Google Scholar] [CrossRef]
  11. Andrade, C.; Garrido, C.; Peters, A.; Vargas, F. A low cost experimental platform for the study of scalability issues in multi-agent systems. In Proceedings of the 2019 IEEE CHILEAN Conference on Electrical, Electronics Engineering, Information and Communication Technologies (CHILECON), Valparaiso, Chile, 13–27 November 2019; pp. 1–6. [Google Scholar]
  12. Liu, X.; Goldsmith, A.; Mahal, S.; Hedrick, J. Effects of communication delay on string stability in vehicle platoons. In Proceedings of the ITSC 2001, 2001 IEEE Intelligent Transportation Systems, Proceedings (Cat. No.01TH8585), Oakland, CA, USA, 25–29 August 2001; pp. 625–630. [Google Scholar] [CrossRef]
  13. Seshadhri, S.; Ayyagari, R. Platooning over packet-dropping links. Int. J. Veh. Auton. Syst. 2011, 9, 46. [Google Scholar] [CrossRef]
  14. Muratori, M.; Holden, J.; Lammert, M.; Duran, A.; Young, S.; Gonder, J. Potentials for Platooning in US Highway Freight Transport; Technical Report; National Renewable Energy Lab (NREL): Golden, CO, USA, 2017.
  15. Dunbar, W.B.; Caveney, D.S. Distributed receding horizon control of vehicle platoons: Stability and string stability. IEEE Trans. Autom. Control 2012, 57, 620–633. [Google Scholar] [CrossRef]
  16. Girard, A.R.; De Sousa, J.B.; Hedrick, J.K. An overview of emerging results in networked multi-vehicle systems. In Proceedings of the 40th IEEE Conference on Decision and Control, Orlando, FL, USA, 4–7 December 2001; Volume 2, pp. 1485–1490. [Google Scholar]
  17. Shao, J.; Xie, G.; Yu, J.; Wang, L. Leader-following formation control of multiple mobile robots. In Proceedings of the 2005 IEEE International Symposium on Mediterrean Conference on Control and Automation Intelligent Control, Limassol, Cyprus, 27–29 June 2005; pp. 808–813. [Google Scholar]
  18. Cruz, D.; McClintock, J.; Perteet, B.; Orqueda, O.A.A.; Cao, Y.; Fierro, R. Decentralized cooperative control—A multivehicle platform for research in networked embedded systems. IEEE Control Syst. Mag. 2007, 27, 58–78. [Google Scholar] [CrossRef]
  19. Arvin, F.; Espinosa, J.; Bird, B.; West, A.; Watson, S.; Lennox, B. Mona: An affordable open-source mobile robot for education and research. J. Intell. Robot. Syst. 2019, 94, 761–775. [Google Scholar] [CrossRef] [Green Version]
  20. Bonani, M.; Longchamp, V.; Magnenat, S.; Rétornaz, P.; Burnier, D.; Roulet, G.; Vaussard, F.; Bleuler, H.; Mondada, F. The marXbot, a miniature mobile robot opening new perspectives for the collective-robotic research. In Proceedings of the 2010 IEEE/RSJ International Conference on Intelligent Robots and Systems, Taipei, Taiwan, 18–22 October 2010; pp. 4187–4193. [Google Scholar]
  21. Yu, J.; Han, S.D.; Tang, W.N.; Rus, D. A portable, 3D-printing enabled multi-vehicle platform for robotics research and education. In Proceedings of the 2017 IEEE International Conference on Robotics and Automation (ICRA), Singapore, 29 May–3 June 2017; pp. 1475–1480. [Google Scholar]
  22. Guinaldo, M.; Fábregas, E.; Farias, G.; Dormido-Canto, S.; Chaos, D.; Sánchez, J.; Dormido, S. A mobile robots experimental environment with event-based wireless communication. Sensors 2013, 13, 9396–9413. [Google Scholar] [CrossRef] [Green Version]
  23. Scheffe, P.; Maczijewski, J.; Kloock, M.; Kampmann, A.; Derks, A.; Kowalewski, S.; Alrifaee, B. Networked and autonomous model-scale vehicles for experiments in research and education. arXiv 2020, arXiv:2004.08364. [Google Scholar]
  24. Farias, G.; Fabregas, E.; Peralta, E.; Vargas, H.; Dormido-Canto, S.; Dormido, S. Development of an easy-to-use multi-agent platform for teaching mobile robotics. IEEE Access 2019, 7, 55885–55897. [Google Scholar] [CrossRef]
  25. Paull, L.; Tani, J.; Ahn, H.; Alonso-Mora, J.; Carlone, L.; Cap, M.; Chen, Y.F.; Choi, C.; Dusek, J.; Fang, Y.; et al. Duckietown: An open, inexpensive and flexible platform for autonomy education and research. In Proceedings of the 2017 IEEE International Conference on Robotics and Automation (ICRA), Singapore, 29 May–3 June 2017; pp. 1497–1504. [Google Scholar]
  26. Takacs, A.; Eigner, G.; Kovács, L.; Rudas, I.J.; Haidegger, T. Teacher’s kit: Development, usability, and communities of modular robotic kits for classroom education. IEEE Robot. Autom. Mag. 2016, 23, 30–39. [Google Scholar] [CrossRef]
  27. Zapata García, D.F.; Garzón Oviedo, M.A.; Pereira Valente, J.R.; Barrientos, A. QuadLab. J. Intell. Robot. Syst. 2016, 81, 97–116. [Google Scholar] [CrossRef] [Green Version]
  28. Khan, S.; Jaffery, M.H.; Hanif, A.; Asif, M.R. Teaching tool for a control systems laboratory using a quadrotor as a plant in MATLAB. IEEE Trans. Educ. 2017, 60, 249–256. [Google Scholar] [CrossRef]
  29. Omar, H.M. Enhancing automatic control learning through Arduino-based projects. Eur. J. Eng. Educ. 2018, 43, 652–663. [Google Scholar] [CrossRef]
  30. Torres-Salinas, H.; Rodríguez-Reséndiz, J.; Estévez-Bén, A.A.; Pérez, C.; Sevilla-Camacho, P.; Perez-Soto, G.I. A Hands-On Laboratory for Intelligent Control Courses. Appl. Sci. 2020, 10, 9070. [Google Scholar] [CrossRef]
  31. Odry, Á.; Fullér, R.; Rudas, I.J.; Odry, P. Fuzzy control of self-balancing robots: A control laboratory project. Comput. Appl. Eng. Educ. 2020, 28, 512–535. [Google Scholar] [CrossRef]
  32. Serrano Pérez, E.; Juárez López, F. An ultra-low cost line follower robot as educational tool for teaching programming and circuit’s foundations. Comput. Appl. Eng. Educ. 2019, 27, 288–302. [Google Scholar] [CrossRef]
  33. Montes, N.; Rosillo, N.; Mora, M.C.; Hilario, L. A Novel Real-Time MATLAB/Simulink/LEGO EV3 Platform for Academic Use in Robotics and Computer Science. Sensors 2021, 21, 1006. [Google Scholar] [CrossRef] [PubMed]
  34. Espressif Systems. ESP32, Datasheet Rev. 3.5. 2021. Available online: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf (accessed on 16 February 2021).
  35. Chu, K.C. Decentralized Control of High-Speed Vehicular Strings. Transp. Sci. 1974, 8, 361–384. [Google Scholar] [CrossRef]
  36. Lád, M.; Herman, I.; Hurák, Z. Vehicular platooning experiments using autonomous slot cars. IFAC-PapersOnLine 2017, 50, 12596–12603. [Google Scholar] [CrossRef]
  37. Salvi, A.; Santini, S.; Valente, A.S. Design, analysis and performance evaluation of a third order distributed protocol for platooning in the presence of time-varying delays and switching topologies. Transp. Res. Part C Emerg. Technol. 2017, 80, 360–383. [Google Scholar] [CrossRef]
  38. Barooah, P.; Hespanha, J.P. Error amplification and disturbance propagation in vehicle strings with decentralized linear control. In Proceedings of the 44th IEEE Conference on Decision and Control, 2005 and 2005 European Control Conference (CDC-ECC’05), Seville, Spain, 15 December 2005; pp. 4964–4969. [Google Scholar]
  39. Middleton, R. Trade-offs in linear control system design. Automatica 1991, 27, 281–292. [Google Scholar] [CrossRef]
  40. Klinge, S.; Middleton, R. Time headway requirements for string stability of homogeneous linear unidirectionally connected systems. In Proceedings of the 48th IEEE Conference on Decision and Control (CDC) held jointly with 2009 28th Chinese Control Conference, Shanghai, China, 15–18 December 2009; pp. 1992–1997. [Google Scholar] [CrossRef] [Green Version]
  41. Maier, A.; Sharp, A.; Vagapov, Y. Comparative analysis and practical implementation of the ESP32 microcontroller module for the internet of things. In Proceedings of the IEEE 2017 Internet Technologies and Applications (ITA), Wrexham, UK, 15–17 September 2017; pp. 143–148. [Google Scholar]
  42. STMicroelectronics. World’s Smallest Time-of-Flight (ToF) Laser Ranging Sensor, Data brief, Rev. 3. 2016. Available online: https://www.st.com/resource/en/data_brief/vl53l0x.pdf (accessed on 14 March 2021).
  43. Xuan, P.; Lesser, V. Multi-agent policies: From centralized ones to decentralized ones. In Proceedings of the AAMAS02: The First International Joint Conference on Autonomous Agents and Multi-Agent Systems: Part 3, Bologna, Italy, 15–19 July 2002; pp. 1098–1105. [Google Scholar]
  44. Arvin, F.; Murray, J.C.; Shi, L.; Zhang, C.; Yue, S. Development of an autonomous micro robot for swarm robotics. In Proceedings of the 2014 IEEE International Conference on Mechatronics and Automation, Tianjin, China, 3–6 August 2014; pp. 635–640. [Google Scholar] [CrossRef]
  45. Chovanec, M.; Čechovič, L.; Mandák, L. Aeris—Robots Laboratory with Dynamic Environment. In Robotics in Education; Springer: Cham, Switzerland, 2017; pp. 169–180. [Google Scholar]
  46. López-Rodríguez, F.M.; Cuesta, F. Andruino-a1: Low-cost educational mobile robot based on android and arduino. J. Intell. Robot. Syst. 2016, 81, 63–76. [Google Scholar] [CrossRef]
  47. McLurkin, J.; Rykowski, J.; John, M.; Kaseman, Q.; Lynch, A.J. Using multi-robot systems for engineering education: Teaching and outreach with large numbers of an advanced, low-cost robot. IEEE Trans. Educ. 2012, 56, 24–33. [Google Scholar] [CrossRef]
  48. Riedo, F.; Chevalier, M.; Magnenat, S.; Mondada, F. Thymio II, a robot that grows wiser with children. In Proceedings of the 2013 IEEE Workshop on Advanced Robotics and Its Social Impacts, Tokyo, Japan, 7–9 November 2013; pp. 187–193. [Google Scholar]
Figure 1. Platoon of vehicles with wireless capabilities.
Figure 1. Platoon of vehicles with wireless capabilities.
Sensors 21 02072 g001
Figure 2. Tracks for the trains with checkerboard pattern for speed sensing.
Figure 2. Tracks for the trains with checkerboard pattern for speed sensing.
Sensors 21 02072 g002
Figure 3. Arduino format ESP32 MCU board.
Figure 3. Arduino format ESP32 MCU board.
Sensors 21 02072 g003
Figure 4. LEGO®, Motor wiring diagram.
Figure 4. LEGO®, Motor wiring diagram.
Sensors 21 02072 g004
Figure 5. H-Bridge wiring diagram.
Figure 5. H-Bridge wiring diagram.
Sensors 21 02072 g005
Figure 6. Distance sensor wiring diagram.
Figure 6. Distance sensor wiring diagram.
Sensors 21 02072 g006
Figure 7. Velocity sensor ADNS3080 wiring diagram.
Figure 7. Velocity sensor ADNS3080 wiring diagram.
Sensors 21 02072 g007
Figure 8. Disassembled PL-toon agent.
Figure 8. Disassembled PL-toon agent.
Sensors 21 02072 g008
Figure 9. Block diagram of a single agent. Every agent is composed of the same modules and sensors.
Figure 9. Block diagram of a single agent. Every agent is composed of the same modules and sensors.
Sensors 21 02072 g009
Figure 10. PL-Toon experimental platform.
Figure 10. PL-Toon experimental platform.
Sensors 21 02072 g010
Figure 11. Plots for the Ziegler-Nichols second method experiments with a single PL-TOON agent.
Figure 11. Plots for the Ziegler-Nichols second method experiments with a single PL-TOON agent.
Sensors 21 02072 g011
Figure 12. Experimental closed loop response of a single agent for step changes on the desired spacing to an obstacle using PI (the first 30 s) and PID control (the remaining time). (a) Distance reference and agent response. (b) Tracking error. (c) Control signal in terms of the duty cycle in percentage of the PWM signal (the sign defines the direction of movement).
Figure 12. Experimental closed loop response of a single agent for step changes on the desired spacing to an obstacle using PI (the first 30 s) and PID control (the remaining time). (a) Distance reference and agent response. (b) Tracking error. (c) Control signal in terms of the duty cycle in percentage of the PWM signal (the sign defines the direction of movement).
Sensors 21 02072 g012
Figure 13. Experimental results for a four agents platoon, starting from rest to a constant speed. (a) Followers tracking errors for a string unstable scenario. (b) Followers tracking errors for a string stable scenario with time-headway constant.
Figure 13. Experimental results for a four agents platoon, starting from rest to a constant speed. (a) Followers tracking errors for a string unstable scenario. (b) Followers tracking errors for a string stable scenario with time-headway constant.
Sensors 21 02072 g013aSensors 21 02072 g013b
Table 1. Component costs for an agent.
Table 1. Component costs for an agent.
ComponentCost (USD)
ESP32$4
LEGO®, Motor$5
VL53L0X$1.5
ADNS3080$8
Mini Breadboard$0.25
Battery$4.5
Extras$5
Total$28.25
Table 2. Comparison of other non-commercial experimental platforms.
Table 2. Comparison of other non-commercial experimental platforms.
RobotRelease DateCostResearch EducationInter-Agent CommunicationMovement Coordination
Aeris [45]2017UnknownBothUnknownUnknown
Andruino-A1 [46]201639 USDEducationYesDecentralized
Colias [44]201435 USDResearchYesDecentralized
MarXbot [20]2009UnknownResearchNoDecentralized
μ Car [23]2020480 USDBothYesDecentralized
microMVP [21]201790 USDBothNoCentralized
MONA [19]2018100 USDBothNo (add-on)Decentralized
Rice r-one [47]2013250 USDBothYesCentralized
Thymio II [48]2010135 USDEducationNoDecentralized
PL-Toon202130 USDBothYesBoth
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Peters, A.A.; Vargas, F.J.; Garrido, C.; Andrade, C.; Villenas, F. PL-TOON: A Low-Cost Experimental Platform for Teaching and Research on Decentralized Cooperative Control. Sensors 2021, 21, 2072. https://doi.org/10.3390/s21062072

AMA Style

Peters AA, Vargas FJ, Garrido C, Andrade C, Villenas F. PL-TOON: A Low-Cost Experimental Platform for Teaching and Research on Decentralized Cooperative Control. Sensors. 2021; 21(6):2072. https://doi.org/10.3390/s21062072

Chicago/Turabian Style

Peters, Andrés A., Francisco J. Vargas, Cristóbal Garrido, Cristóbal Andrade, and Felipe Villenas. 2021. "PL-TOON: A Low-Cost Experimental Platform for Teaching and Research on Decentralized Cooperative Control" Sensors 21, no. 6: 2072. https://doi.org/10.3390/s21062072

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop