{"id":11840,"date":"2022-09-16T08:37:35","date_gmt":"2022-09-16T05:37:35","guid":{"rendered":"https:\/\/atostek.com\/?p=11840"},"modified":"2022-09-16T08:37:35","modified_gmt":"2022-09-16T05:37:35","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\/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<\/h2>\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 as a tool<\/h2>\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 straddle 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>\n

\"Gazebo
Screenshot of the Gazebo simulator.<\/figcaption><\/figure>\n

Since the machine controller software is dependent on many hardware devices and actuators found in the physical vehicle, a requirement for a functional software-only environment was to implement a virtual device layer that imitates the functionality and communication interface of each device.\u00a0<\/span><\/p>\n

In practice, this means understanding the structure of the incoming and outgoing data for each connected device, and how it is expected to be handled in a way that the machine control system will believe it is communicating with real hardware.<\/span><\/p>\n


\n
\n
\"\"<\/div>\n
\n

Toni H\u00e4rk\u00f6nen<\/strong><\/p>\n

Software Designer<\/em><\/p>\n

Toni H\u00e4rk\u00f6nen is a software designer and has been working at Atostek since 2019. He is a fresh MSc in Information Technology graduate from Tampere University. During his Atostek career he has worked on multiple different projects ranging from Linux driver development to industrial automation.<\/p>\n<\/div>\n

<\/div>\n<\/div>\n","protected":false},"excerpt":{"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…<\/p>\n","protected":false},"author":24,"featured_media":11855,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"inline_featured_image":false,"footnotes":""},"categories":[104],"tags":[285,465,466],"class_list":["post-11840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogi","tag-agv","tag-gazebo","tag-simulation-2","entry","has-media"],"_links":{"self":[{"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/posts\/11840"}],"collection":[{"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/comments?post=11840"}],"version-history":[{"count":10,"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/posts\/11840\/revisions"}],"predecessor-version":[{"id":11859,"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/posts\/11840\/revisions\/11859"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/media\/11855"}],"wp:attachment":[{"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/media?parent=11840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/categories?post=11840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atostek.com\/wp-json\/wp\/v2\/tags?post=11840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}