Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Global Path Service #30

Merged
merged 5 commits into from
Nov 30, 2023
Merged

Conversation

SPDonaghy
Copy link
Contributor

@SPDonaghy SPDonaghy commented Nov 29, 2023

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

@SPDonaghy SPDonaghy requested a review from a team as a code owner November 29, 2023 06:56
@SPDonaghy SPDonaghy self-assigned this Nov 29, 2023
Copy link
Member

@patrick-5546 patrick-5546 left a 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

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
srv/GlobalPathService.srv Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@jamenkaye
Copy link
Contributor

Looks good, nice work Sean!

@SPDonaghy SPDonaghy merged commit 3885add into main Nov 30, 2023
12 checks passed
@SPDonaghy SPDonaghy deleted the user/SPDonaghy/create-global-path-service-49 branch November 30, 2023 02:03
SPDonaghy added a commit that referenced this pull request Dec 5, 2023
SPDonaghy added a commit that referenced this pull request Dec 5, 2023
* Revert "Global Path Service (#30)"

This reverts commit 3885add.

* Document mock global path

* Update to latest version of sailbot workspace

* Delete .markdownlint.json

---------

Co-authored-by: Patrick Creighton <pcreighton429@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants