The implementation of the A* pathfinding algorithm encompasses applications for robotic path planning in various environments, including 3D, 2.5D, and different spatial contexts.
This file contains the pure implementation of the A* algorithm. In the context of a matrix consisting of 0s representing pathways and 1s representing obstacles, the algorithm navigates through the matrix to find the optimal path.
start = (0,0) and goal = (5,5)
![](https://private-user-images.githubusercontent.com/87595266/302735925-ac115bfd-b971-48e5-9d63-870b736b3107.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mzg0MjUsIm5iZiI6MTczODkzODEyNSwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MjUtYWMxMTViZmQtYjk3MS00OGU1LTlkNjMtODcwYjczNmIzMTA3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE0MjIwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0YTkzNDdkZTE0NDM2ZmEwOGE3OTIzOGU1NDZiYWNkYzkwNzdhYmZhZmZiOWJhZmUxNTg2NGMzNDgzMzFiODgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BKXtUSPx52YBJe2hFLbFgCysFmQRsDyJhe7JO5I_cgI)
This file contains a modified implementation of the A* algorithm. In contrast to the standard behavior where the A* algorithm returns FALSE
when it cannot find a direct path to the goal, this modified version returns the path to the nearest accessible point to the goal.
start = (0,0) and goal = (9,9)
![](https://private-user-images.githubusercontent.com/87595266/302734932-53776685-9aac-472e-b1d6-40d7d75b306c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mzg0MjUsIm5iZiI6MTczODkzODEyNSwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzQ5MzItNTM3NzY2ODUtOWFhYy00NzJlLWIxZDYtNDBkN2Q3NWIzMDZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE0MjIwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkyZWM3MWRkZWRmNjRkNzRjMTQwMmEwYmUzMTI2NDg4MzA2ZDIyZmMzZjBlZDZmMTczMzRiMzAwNzQ4YjFkMDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.VIo8wyx-_CICKPIJjw29H989yn4wGS6Imf3FMfvfbqg)
This file contains a modified implementation of the A* algorithm tailored for robotic applications in a 2.5D map, where the matrix values represent height information in a given area. The algorithm introduces a parameter K, representing the maximum allowable height difference between two adjacent cells. In other words, a path is considered viable between two cells if the height difference between them is less than or equal to the specified K value. This modification is specifically designed for navigating a 2.5D environment, where the algorithm adapts to the terrain's vertical variations while considering the user-defined threshold K.
start = (0,0) and goal = (4,8)
![](https://private-user-images.githubusercontent.com/87595266/302735919-7f3d8311-1404-4a73-b8e5-f18a61d82e31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mzg0MjUsIm5iZiI6MTczODkzODEyNSwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MTktN2YzZDgzMTEtMTQwNC00YTczLWI4ZTUtZjE4YTYxZDgyZTMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE0MjIwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0ZTE3MWM2ZjNkNzA5NTM5ZGI5MDY1MTZmNTc4ZWFmNmRlYjRlM2E5ZTE1MzlhOGE3Y2UzZmU1ZTZjNThiOTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Kwu0wv6GAcctFg8C5XvGB_qvxIrgw8Xnup3RmI77XWo)
This file encapsulates an application of the A* algorithm in a three-dimensional environment. The algorithm navigates through a 3D matrix using 26 different directions and considers cells with a value of 0 as the path and cells with a value of 1 as obstacles.
start = (0,0,0) and goal = (8,8,8)
![](https://private-user-images.githubusercontent.com/87595266/302735927-fd54c774-dc36-4fcb-8a7a-1aade974dc6c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mzg0MjUsIm5iZiI6MTczODkzODEyNSwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MjctZmQ1NGM3NzQtZGMzNi00ZmNiLThhN2EtMWFhZGU5NzRkYzZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE0MjIwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhZjgzN2UyYTYzZThhNzVmNjgzOTljZjE3N2M1ZTAyZTRjMmE2ODM2ZmE2NzRmYmMzMGVhZDBhMWQ1NjNmMTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.DhcWOdFIA5EuDJMnl1Go8b3WcFGYLaE550G7Gov0LpU)