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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTE0OTIsIm5iZiI6MTczOTY5MTE5MiwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MjUtYWMxMTViZmQtYjk3MS00OGU1LTlkNjMtODcwYjczNmIzMTA3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3MzMxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIyOGNkOGJmMzA0YzZhZjM5M2ZkOTIxOGE3MDc3OTI4ZDUzY2E5ZmYzNDIwNjEwMDdlNDVmODE3MjJhZjlmZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2QwOWNB6S-jvvokeXgM9gqvDx075mzoTAxHyva9qGNc)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTE0OTIsIm5iZiI6MTczOTY5MTE5MiwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzQ5MzItNTM3NzY2ODUtOWFhYy00NzJlLWIxZDYtNDBkN2Q3NWIzMDZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3MzMxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjZGI0YzJmMGI0YjllMGYxZDkwNjZmYmZmOTc5MWNhMWNmYTU4N2YyNWJhOGRhYmY4NGMxYTQ2ZmY3YzY3MDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WhkguZZLgOjBNmbVV2ILEirzH4uzmYRBnOqJ5Fxn7oY)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTE0OTIsIm5iZiI6MTczOTY5MTE5MiwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MTktN2YzZDgzMTEtMTQwNC00YTczLWI4ZTUtZjE4YTYxZDgyZTMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3MzMxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhOTE5N2I3ZTdjMmZiZGI5ZGYwMmVhNTMyYjVlZWE0YmZkYTdkMDA3YzEyNGEzYmUyOThlN2NlYjI3OTE4NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.vkH6BlooMr34cnhS8G7OiVJSgjbQ3ooDGXHyohAalxA)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTE0OTIsIm5iZiI6MTczOTY5MTE5MiwicGF0aCI6Ii84NzU5NTI2Ni8zMDI3MzU5MjctZmQ1NGM3NzQtZGMzNi00ZmNiLThhN2EtMWFhZGU5NzRkYzZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3MzMxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1NzY5MmY4MDdmOGRhMjNhZjA3NmI1NjM1OTQxZmVmYTEyY2MwNmE5MWFkODcxNzY2ZDIxNDc5NDIzMmQzMzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._P4trtoHwU5DtEt_cC6yD5I1nUC7rESmOwPVxsIbbZI)