-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added error feedback to service responses #21
base: humble
Are you sure you want to change the base?
Conversation
@@ -487,7 +505,11 @@ class WilnNode : public rclcpp::Node | |||
} | |||
|
|||
ltrFile.close(); | |||
RCLCPP_INFO(this->get_logger(), "LTR file succesfully saved"); | |||
|
|||
// TODO: handle errors |
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.
TODO : handle errors from saveLTRServiceCallback
@@ -617,32 +639,46 @@ class WilnNode : public rclcpp::Node | |||
void loadLTRServiceCallback(const std::shared_ptr<wiln::srv::LoadMapTraj::Request> req, std::shared_ptr<wiln::srv::LoadMapTraj::Response> res) | |||
{ | |||
loadLTR(req->file_name.data, false); | |||
|
|||
// TODO : handle errors |
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.
TODO : handle errors from LoadLTRServiceCallback
return; | ||
} | ||
|
||
void loadLTRFromEndServiceCallback(const std::shared_ptr<wiln::srv::LoadMapTraj::Request> req, std::shared_ptr<wiln::srv::LoadMapTraj::Response> res) | ||
{ | ||
loadLTR(req->file_name.data, true); | ||
|
||
// TODO : handle errors |
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.
TODO : handle errors from LoadLTRFromEndServiceCallback
Improving usability of wiln
Why?
To improve usability I created a foxglove interface where we can easily call the services and have good feedback on wheter it works or not.
The foxglove interface is named
Warthog_TnR_Foxglove.json
.How ?
I added proper responses to every services in wiln.
⚠️ There is still a few that I assume will work. We should do some error checking on those. (Link in comments)
I also added a status publisher to be able to see in which state wiln is curently in. It's a more complete version of this PR
Tests
✔️ I tested :