-
Notifications
You must be signed in to change notification settings - Fork 11
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
[drone_teleop] Cameras and pos/vel freeze in new GUI #38
Comments
I think we should try if throttling the mavros pose and vel topics to rates < 5 Hz (now they publish at 30 Hz) avoids this issue. I've checked the cameras perspective alone and it doesn't freeze. |
The problem seems to be that the GUI can not update itself as fast as the Subscribers receive msgs with the pose and twist. Then, as you suggest, msgs have to be throttled to reduce the GUI update rate. This bug could be fixed by creating a Thread which periodically updates the position and velocity info: threading.Timer(0.5, self.update_status_info).start() I've tried more ROS friendly solutions using rospy.Timer, throttle or drop, but I didn't get any working solution. |
Hi @pariaspe, I seems good to me if it works and it doens't overload the CPU. In any case, ROS-based solutions could rely on suscribing the GUI to new throttled pose and vel topics, that can be published at least in two different ways:
|
I've just created a new issue to implement a new ROS-based solution that fixes this issue too. |
Each 20/30 sec both the cameras and the position/velocities freeze in the new drone_teleop GUI, as it's seen in the screenshot below. Tested using the new drone_teleop_all.perspective.
Clicking in some precise points/controls of the GUI unfreeze the perspective temporarily.
The text was updated successfully, but these errors were encountered: