📍 Waypoint server ROS package with Google Maps integration.
Clone the repository
git cloneInstall Geographic Library
pip install geopy- Use catkin to build the ROS package.
- Inside the launch file set the following parameters:
- Threshold distance (meters)
- GPS topic:
gps_topic - Odometry topic:
odom_topic - Generate Google Maps waypoints: Enable this to generate waypoint using Google Maps
- Run the rosnode
roslaunch waypoint_server waypoint_server.launchThe waypoint server also implements service calls.
- Pose Waypoint
Service call on the topicpose_waypointsets pose waypoint with respect to the map frame. This accepts waypoint as aPoseStampedmessage type. - Geo Waypoint
Service call on the topicgeo_waypointsets geo waypoint with respect to the map frame. This accepts waypoint as aNavSatFixmessage type.
The service calls return 1 is the waypoint was successfully published. Refer the srv files for more info.
Create a Google Maps Developer account and generate an API Key with Maps and Places options selected.
Inside the repository type the following:
echo "YOUR_API_KEY" > waypoint_viewer/api_key.txtInstall Google Maps API for python
pip install googlemaps