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

Profiling ros_controllers with Valgrind / Callgrind

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

Robert Krug gravatar image

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

Hi,

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?

Thanks,

-Robert-

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

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

Kei Okada gravatar image
edit flag offensive delete link more
0

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

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.

-ShaoHua

edit flag offensive delete link more

Question Tools

3 followers

Stats

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

Seen: 2,136 times

Last updated: Aug 02 '18