Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

Node hangs when bagging image_raw

$
0
0
I have a fairly straightforward ROS node that contains two subscribers. The callbacks for these subscribers do some pretty large matrix math, but here's the catch: The node runs totally fine when I am not recording a ROS bag. However, when I record a ROS bag that includes "/usb_cam/image_raw" (along with many other topics) the node will occasionally hang, not registering any callbacks for up to 1.5 seconds. After the hang, the node proceeds to register callbacks again and do everything right until the next hang up. The tricky thing here is that if I bag "/usb_cam/image_raw/compressed" instead of "image_raw", the hang ups do not usually happen (I've only seen it happen once). But if I bag "image_raw" they happen nearly everytime. Now I thought this would clearly be a CPU overload issue, but looking at htop while everything is running, the CPU loads do not go over 70%. Another option is that there is some loop that the node hangs up on in the callback, but I think I can rule that out since it never happens when I do not record a rosbag. Have you seen similar hang ups? If so, any ideas where to look or how to solve the problem? I am running Ubuntu 16.04 on a Jetson TX2 with ROS Kinetic. Thanks!

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>