Skip to content
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

Notify users when no packets are received #322

Closed

Conversation

fmauch
Copy link

@fmauch fmauch commented Jul 2, 2019

This MR aims at notifying the user once no packages are received from the robot.

This addresses #227, although it doesn't add a timeout, but introduces feedback to the user instead.

…robot

Notifies at startup when for some reason connection to the robot has been
established, but no packets have been received, yet.

Also warns when no new packet has been released for more than 10 ms.
@fmauch fmauch force-pushed the receiving_notice branch from f4e09db to f62670b Compare July 2, 2019 11:49
@fmauch fmauch changed the title [WIP] Notify users when no packages are received Notify users when no packages are received Jul 2, 2019
@gavanderhoorn gavanderhoorn added the wrid19 World ROS-Industrial Day 2019 label Jul 2, 2019
@gavanderhoorn gavanderhoorn changed the title Notify users when no packages are received Notify users when no packets are received Jul 2, 2019
src/ros/controller.cpp Outdated Show resolved Hide resolved
src/ros/controller.cpp Outdated Show resolved Hide resolved
@@ -38,6 +38,7 @@ class ROSController : private hardware_interface::RobotHW, public URRTPacketCons
ros::Time lastUpdate_;
controller_manager::ControllerManager controller_;
bool robot_state_received_;
ros::Time most_recent_packet_time_;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that you could reuse the lastUpdate_ member variable

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since lastUpdate_ is updated each time the update function is called and that function is also called, when no new package has been read, it does not quite fit the requirements.

@gavanderhoorn gavanderhoorn removed the wrid19 World ROS-Industrial Day 2019 label Jul 5, 2020
@fmauch fmauch closed this Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants