This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hhenry01 FYI we're changing the global path topic from msg to srv
patrick-5546
approved these changes
Nov 29, 2023
Looks good, nice work Sean! |
SPDonaghy
added a commit
that referenced
this pull request
Dec 5, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I implemented a Global Path Service message.
The request is a Path type and the response is a bool type. Given how infrequently the global path is expected to change, the choice was made to switch global path from a topic to a service. This way, nodes such as MockGlobalPath and LocalTransceiver (which have access to the global path) can send a "request" message containing the new global path to Navigate. Then Navigate can respond with True to acknowledge receipt of the message.
Verification
To verify my changes, I first ran the command "ros2 interface show custom_interfaces/srv/GlobalPath" and received the response:
Path global_path
HelperLatLon[] waypoints
float32 latitude
float32 longitude
bool response
So the service was built properly.
I then launched the local pathfinding package and the mock global path node (which will use this service) ran as expected, along with the navigate node.
Resources