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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODUyNDksIm5iZiI6MTczOTk4NDk0OSwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MjUtYWMxMTViZmQtYjk3MS00OGU1LTlkNjMtODcwYjczNmIzMTA3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE3MDkwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxYTFmYmJhMzFlOWVjOWUwMTQ1ZDNmOTBmMDE3ODM4NDI4ZDdiODM4NDg1NWFmMWM3OTcxNTU1ZDFlNjA5NTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.FjlDAc4UArodTw_2MGwwoKWHGxME52U_Y-xao7kz14k)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODUyNDksIm5iZiI6MTczOTk4NDk0OSwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzQ5MzItNTM3NzY2ODUtOWFhYy00NzJlLWIxZDYtNDBkN2Q3NWIzMDZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE3MDkwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0Y2NjNjQ2ZWE5NGEwZWI4NzI1OTZiMTU5YjAyMmZlNzNmMzM5ZjA1ODliZjc2MzFkOTg0ZWU2NGM0M2UyOWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZZLHXbrG7oIVALkHQf1maOLCJQYHaivR8q7lsntTnHU)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODUyNDksIm5iZiI6MTczOTk4NDk0OSwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MTktN2YzZDgzMTEtMTQwNC00YTczLWI4ZTUtZjE4YTYxZDgyZTMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE3MDkwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiODNkYzZmYjUzYzc0NWQ2ZGVjMGNiYjlhNGQ4NjRhYmVmN2VkNTY4NzAwNzQ5NTg3YjcyYmMzZDMzZjFmNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zvYs9pjoLfvw4RfIeWfE31d3ISBrxp1RsEmOSNeXgVE)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODUyNDksIm5iZiI6MTczOTk4NDk0OSwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MjctZmQ1NGM3NzQtZGMzNi00ZmNiLThhN2EtMWFhZGU5NzRkYzZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE3MDkwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0MjNhOTNjYWI4NWJmOTA1MTliNjU5ZGU0ODZkNjgxMTE4YjZmNTE0MmFiYmRhNWE3MDE5N2FjMTgyM2E5NzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xmpZ_NPUg4RkobHUbxq_97zFT9OPkdlIU3hEdxrDjSs)