ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
One solution I've used in the past is to use the callback to update the value of a global (or class variable) that the main function can access. Then have a loop in your main thread running that grabs that data and plots it. This way the rate that you can handle callbacks is not limited by how slow matplotlib is.