{"id":11835,"date":"2022-09-16T08:36:02","date_gmt":"2022-09-16T05:36:02","guid":{"rendered":"https:\/\/atostek.com\/?p=11835"},"modified":"2022-09-16T08:36:02","modified_gmt":"2022-09-16T05:36:02","slug":"how-software-only-simulation-can-make-testing-of-agv-control-software-more-cost-effective-and-efficient","status":"publish","type":"post","link":"https:\/\/atostek.com\/en\/how-software-only-simulation-can-make-testing-of-agv-control-software-more-cost-effective-and-efficient\/","title":{"rendered":"How software-only simulation can make testing of AGV control software more cost-effective and efficient"},"content":{"rendered":"
Automating complex tasks with software is not easy in the industrial world \u2013 mistakes can lead to accidents that endanger valuable property or even the safety of people. Therefore, rigorous testing is required to avoid failures in the system. When testing software that controls expensive machinery, availability of physical equipment can become a bottleneck. What kind of solutions could software-only simulations enable?<\/b><\/p>\n
In the field of industry, AGV<\/strong> (Automated Guided Vehicle) software testing can be difficult, as it is often dependent on expensive hardware, which is not always readily available. A reliable way of testing in a software-only environment saves both time and money, as there is no need to involve the heavy machinery for smoothing out the rough edges in the software.<\/p>\n In my master\u2019s thesis, I examined the implementation of a lightweight simulation environment for the evaluation of software used to control automated guided straddle carriers. The simulator is based on Gazebo<\/strong>, an open-source robotics simulation software with support for multiple physics engines, which allows for advanced and flexible physics simulation.<\/span><\/p>\n Software-only simulation is an environment that utilizes the actual onboard navigation and control system, and implements a virtual device layer that communicates with the machine control system \u2013 just like real-world devices would.<\/span><\/p>\n For the software-only testing, all the existing onboard software and end-user interfaces can be used with the simulator without further modification. Test cases used for real-world machine testing can also be used for its virtual counterpart.<\/span><\/p>\n Gazebo is an open-source robotics simulator that supports many different physics engines and has a wide variety of different expandable sensor and controller implementations. Gazebo is able to react to the commands given by the machine control system and produce credible data.<\/span><\/p>\n If, for example, the control system issues the staddle carrier to drive forward and turn right, the command is propagated to Gazebo through the virtual device layer, which is used as a mediator between the two systems. Following this, the simulated machine does the work according to the instructions and at the same time continuously returns data from the simulated sensors. The data tells what is happening to the machine at that moment \u2013 for example, tire angle, velocity and so on.<\/p>\n Such data can be imported from Gazebo in a format that is understandable to humans, but not to the machine control system. For this reason, the obtained data is sent back to the virtual device layer, which converts the data into a format identical to what would be obtained from a real-life sensor.<\/p>\nSoftware-only simulation<\/h2>\n
Gazebo as a tool<\/h2>\n