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

what is the meaning of rospack profile

asked 2016-11-10 00:19:24 -0600

shawnysh gravatar image

Is it to check the zombie file marked with * which ROS cannot use?

Then, what about those without * ?

 root@ShawnVM:~# rospack profile
Full tree crawl took 0.032583 seconds.
Directories marked with (*) contain no manifest.  You may
want to delete these directories.
To get just of list of directories without manifests,
re-run the profile with --zombie-only
-------------------------------------------------------------
0.025500   /opt/ros/indigo/share
0.005273   /root/catkin_ws/src
0.002334   /root/catkin_ws/src/rbx2
0.001137   /root/catkin_ws/src/rbx1
0.000451 * /opt/ros/indigo/share/ros
0.000345   /root/catkin_ws/src/roberta-ros
0.000265 * /opt/ros/indigo/share/ros/core
0.000179 * /opt/ros/indigo/share/man
0.000111 * /opt/ros/indigo/share/ros/core/rosbuild
0.000064 * /opt/ros/indigo/share/doc
0.000020 * /opt/ros/indigo/share/man/man1
0.000019 * /opt/ros/indigo/share/ros/config
0.000013 * /opt/ros/indigo/share/ros/core/rosbuild/bin
0.000009 * /opt/ros/indigo/share/ros/core/rosbuild/tests
0.000005 * /opt/ros/indigo/share/doc/liborocos-kdl
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
4

answered 2016-11-10 00:55:02 -0600

rbbg gravatar image

updated 2016-11-10 03:51:04 -0600

The main function of rospack is to crawl through the packages in ROS_ROOT and ROS_PACKAGE_PATH, read and parse the manifest.xml for each package, and assemble a complete dependency tree for all packages.

And more specifically for rospack profile:

rospack’s performance can be adversely affected by the presence of very broad and/or deep directory structures that don’t contain manifest files. If such directories are in rospack’s search path, it can spend a lot of time crawling them only to discover that there are no packages to be found. You can prevent this latency by creating a rospack_nosubdirs file in such directories. If rospack seems to be running annoyingly slowly, you can use the profile command, which will print out the 20 slowest trees to crawl (or use profile --length=N to print the slowest N trees).

So the directories without *'s are the ones that contain packages.

This can all easily be found at the rospack documentation

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-10 00:19:24 -0600

Seen: 5,613 times

Last updated: Nov 10 '16