nodelet consuming high resources
I am running
depth_image_proc
alsong with realsense2_camera rs_camera.launch. Here what i saw is that this nodelets are consuming all the 4 cores of the raspberry pi 4B totally. How can i stop the nodelets from consuming full cpu?
Don't run the nodelets?
But seriously: how are you starting everything?
depth_image_proc
is a nodelet, so in order for it to work as efficiently as possible, you'll have to make sure you abide by the rules ofnodelet
s, which in this case means: load them in the same manager as the producer of the messages they are consuming.If you don't load it in the same manager, it's going to act as a regular node, incurring all the overhead in terms of latency and CPU usage when exchanging messages.
Finally: if you've built everything from-source, you'll also need to make sure you built your workspace with optimisations enabled. And even if you've done all of this, it could just be that whatever the nodelet is doing actually requires that much CPU.