UBCSailbot / raye-global-pathfinding

UBC Sailbot's Global Pathfinding Repository: A* pathfinding that creates sailing paths with minimized length and desirable wind speeds throughout.
MIT License
5 stars 1 forks source link

Tyler ros #21

Closed tylerlum closed 4 years ago

tylerlum commented 4 years ago

The purpose of this PR is to add functionality to have the global pathfinding module publish and subscribe to ROS. This PR adds a new C++ file called pathfinder_loop, which is exactly the same as pathfinder_cli, but has hardcoded command options and has a ROS publish/subscribe loop (publish path, subscribe to boat position).

How to run:

As of right now, the usual workflow should still work (eg. ./configure ./build/bin/pathfinder_cli <args>.

Note: I commented out gtest because it was causing build issues. May only be my system. Need to confirm.

Note 2: I commented out catkin_package part from CMakeLists.txt and it seems to be working fine, but need to confirm. Having this uncommented makes the old workflow with configure not work, as the executables are generated in a different location.

Note 3: Currently hardcoded the start and end latlons, as well as the planet size in projects/utilities/pathfinder_loop/main.cpp. Compare projects/utilities/pathfinder_loop/main.cpp and projects/utilities/pathfinder_cli/main.cpp in a text diff to see the difference made