Published May 20, 2022 | Version v2
Software Open

Modelling the Turtle Python library in CSP

Description

Software verification is an important tool in establishing the reliability of critical systems. One
potential area of application is in the field of robotics, as robots take on more tasks in both day-to-
day areas and highly specialised domains. Robots are usually given a plan to follow, if there are
errors in this plan it will have negative consequences for the robot’s performance. The capability
to check plans for errors in advance could prevent this. Python is a popular programming language
in the robotics domain, through the use of the Robot Operating System (ROS) and various other
libraries. Python’s Turtle package provides a simple robotic-style agent, which we formally model
here using Communicating Sequential Processes (CSP). Our interactive toolchain CSP2Turtle with
CSP model and Python components, enables Turtle plans to be verified in CSP before being executed
in Python. This means that certain classes of errors can be avoided, and provides a starting point for
more detailed verification of Turtle programs and more complex robotic systems. We illustrate our
approach with examples of robot navigation and obstacle avoidance in a 2D grid-world.

Files

README.md

Files (6.0 kB)

Name Size Download all
md5:27cb61b61c0d97e5c2ee60c5339ab893
1.5 kB Download
md5:5b3f94d1d06127e63cf32000c4417d29
2.7 kB Download
md5:438a7717bf613882aaf4284c0a9ea86f
1.8 kB Preview Download