ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Renaming node (or nodelet) in roslaunch for top

asked 2011-09-29 06:48:33 -0600

Chad Rockey gravatar image

updated 2011-09-29 09:06:05 -0600

I have some pretty nodelet heavy roslaunch files.

I'd like their 'command' in top to be more descriptive than just 'nodelet'.

Is there a way to rename the execution command so that linux will report its CPU usage with a custom name? It can get pretty bad when there's 12+ nodelets. :)

PID  USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                             
3634 chad       20   0  164m  18m  10m S   46  0.5   3:58.35 nodelet                                                                             
3618 chad       20   0  163m  18m  10m S    8  0.5   1:32.81 nodelet                                                                             
3592 chad       20   0  215m  32m  12m S    5  0.8   0:41.08 nodelet                                                                             
3574 chad       20   0 37860 9896 2920 S    1  0.2   0:02.60 python

I do have a workaround with 'htop' as it displays the entire command including launch args, but that's clunkier and not installed by default.


Although, it's not really relevant to my problem, here's an example launch file. The real issue is that top reports the executable name as compiled, but for nodelets, it's always 'nodelet'.

edit retag flag offensive close merge delete

Comments

Could you post an example launch file?
DimitriProsser gravatar image DimitriProsser  ( 2011-09-29 07:37:00 -0600 )edit
I've edited to include an example launch file that contains many nodelets.
Chad Rockey gravatar image Chad Rockey  ( 2011-09-29 09:06:48 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-09-29 09:22:31 -0600

DimitriProsser gravatar image

updated 2011-09-29 09:23:27 -0600

Try "top -c". I think that will at least replace htop.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-09-29 06:48:33 -0600

Seen: 745 times

Last updated: Sep 29 '11