Why do I see multiple threads when I do rosrun or roslaunch? [closed]

asked 2021-10-15 01:27:11 -0500

curiousgeorge gravatar image

updated 2021-10-15 04:43:33 -0500

gvdhoorn gravatar image

Any time I run a node, I always see 5 threads like so

image description

My code looks like this:

image description

I'm relatively new to ROS, so apologies ahead of time if I missed something in the docs. There is a lot of it and I am absorbing it as fast as I can manage.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2021-10-15 02:23:33.423194

Comments

This appears to be a duplicate of #q283529, #q41632 (somewhat) and #q59509.

I'll answer #q283529, as it's older than yours and essentially asks the same question. We should then close your post as a duplicate.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-15 02:19:11 -0500 )edit

Oh and for future questions: could you please not post screenshots of terminals or source code? It's all text, so it's not needed, and additionally, images cannot be indexed by search engines, reducing the visibility of your question.

In this case, with a screenshot of a terminal running htop, it's a slightly exceptional situation, as copy-pasting that as text here would probably not render properly, but in general we try to avoid doing that.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-15 02:20:40 -0500 )edit