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

Profiling ros_controllers with Valgrind / Callgrind

asked 2017-11-09 05:22:06 -0500

Robert Krug gravatar image

updated 2017-11-09 05:22:36 -0500


I'm trying to proifle my controllers written in the ros_control framework in Gazebo. To this end, I added the following argument in gazebo_ros/launch/empty_world.launch:

launch-prefix="valgrind --tool=callgrind --callgrind-out-file=/home/user/callgrind.out"

However, no output file is produced. Has anybody who tried profiling ROS controllers using the Valgrind/Callgrind toolchain a solution for this?



edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-08-02 19:06:23 -0500

Kei Okada gravatar image
edit flag offensive delete link more

answered 2017-11-11 00:06:38 -0500

oiz5201618 gravatar image

Hi Robert,

I ran the Turtlebot3 navigation with the same argument on move_base node in turtlebot3_navigation/launch/turtlebot3_navigation.launch, and the callgrind.out file was produced to the correct path.

Maybe you can use command sudo find / -name callgrind.out* to search the file.


edit flag offensive delete link more

Question Tools



Asked: 2017-11-09 05:22:06 -0500

Seen: 1,909 times

Last updated: Aug 02 '18