How to generate call graph for ROS code?
For example, I want to analysis roscpp call graph.
Which tools I can use? How?
It will very great if it has graphical interface.
Thank you~
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
For example, I want to analysis roscpp call graph.
Which tools I can use? How?
It will very great if it has graphical interface.
Thank you~
As with any binary in Linux, you can use valgrind / callgrind to collect the information during run time. A visualizer for the results is e.g. http://kcachegrind.sourceforge.net/html/Documentation.html.
You can install the package in Ubuntu with
sudo apt-get install valgrind kcachegrind
This isn't really a ROS-specific question, but Stack Overflow has this solution which might be helpful.
Asked: 2012-04-05 00:07:52 -0500
Seen: 928 times
Last updated: Nov 04 '12
API to know whether node is active or not
Are there macros which define the ROS version?
rviz orbit viewcontroller lookat function
How to get versions in package.xml from roscpp codes
Setting Timer period for next callback
How to use roscpp TimerEvent API in class
Can you use doxygen or codeviz?
Thank you. I found that I can use doxywizard to generate each function's call graph,but where is the whole picture call graph? Another question is codeviz should patch compiler,so it seems very hard to work on ROS. How to do it?
I also found that doxywizard just generate partial call graph. Because I found that the function it generate call graph failed (roscpp init.cpp init() ). Is there any tool can generate complete call graph? Thank you~