-
Notifications
You must be signed in to change notification settings - Fork 205
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
Report sample lost events #686
Conversation
Sorry, I almost forgot about this. I'll take a look today 👀 |
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.
Looks okay to me, though I haven't been able to trigger a message lost event to see what the UI looks like... I tried modifying the QoS demos, but can't even make them report lost messages 😅 Any tips?
sub_opts.event_callbacks.message_lost_callback = | ||
[&](rclcpp::QOSMessageLostInfo & info) | ||
{ | ||
std::stringstream sstm; |
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.
We should #include <sstream>
.
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.
nit:
std::stringstream sstm; | |
std::ostringstream sstm; |
@@ -206,11 +206,23 @@ class RosTopicDisplay : public _RosTopicDisplay | |||
|
|||
try { | |||
// TODO(anhosi,wjwwood): replace with abstraction for subscriptions once available |
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.
nit: I would keep this comment directly above L220
@@ -206,11 +206,23 @@ class RosTopicDisplay : public _RosTopicDisplay | |||
|
|||
try { | |||
// TODO(anhosi,wjwwood): replace with abstraction for subscriptions once available | |||
rclcpp::SubscriptionOptions sub_opts; | |||
sub_opts.event_callbacks.message_lost_callback = |
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.
Do we have to guard against RMWs that don't support sample lost events?
It was easier to get notifications with |
sub_opts.event_callbacks.message_lost_callback = | ||
[&](rclcpp::QOSMessageLostInfo & info) | ||
{ | ||
std::stringstream sstm; |
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.
nit:
std::stringstream sstm; | |
std::ostringstream sstm; |
7f17d14
to
bc9dc5b
Compare
LGTM, looks like Ivan's comments about using |
Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar>
Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar>
Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar>
Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar>
I think it is applied here:
Am I missing some other place where it should be applied? |
bc9dc5b
to
4f577fd
Compare
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.
I think all of these lines can be change to use std::ostringstream
.
sub_opts.event_callbacks.message_lost_callback = | ||
[&](rclcpp::QOSMessageLostInfo & info) | ||
{ | ||
std::stringstream sstm; |
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.
std::stringstream sstm; | |
std::ostringstream sstm; |
sub_opts.event_callbacks.message_lost_callback = | ||
[&](rclcpp::QOSMessageLostInfo & info) | ||
{ | ||
std::stringstream sstm; |
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.
std::stringstream sstm; | |
std::ostringstream sstm; |
sub_opts.event_callbacks.message_lost_callback = | ||
[&](rclcpp::QOSMessageLostInfo & info) | ||
{ | ||
std::stringstream sstm; |
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.
std::stringstream sstm; | |
std::ostringstream sstm; |
Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar>
Description
Add report sample lost events in RViz.
Users will be able to detect situations where messages were sent by a publisher, but never arrived.
Checklist
YAML
orrosbag
file with aMarkerArray
msg.Due to the lack of active maintainers, we cannot provide support for older release branches anymore.