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

Is there a way to find the definition of a class or function quickly in ROS?

asked 2014-09-01 16:04:38 -0600

guodi gravatar image

In my project, there are several packages and some classes use inheritance... Is there a way to quickly find class and function instead of open all the related source files one by one in ROS?........... Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2014-09-01 19:43:15 -0600

Well, this is not a ROS specific problem, but you could use an IDE such as Eclipse to help you with that.

In Eclipse, you can set the mouse over a function name or a class name and right click -> Open Definition to open the file where the name that you are highlighting is defined.

edit flag offensive delete link more
0

answered 2014-09-03 08:25:42 -0600

Chrissi gravatar image

If you know the name of the function you want to find, you can just use grep in the terminal:

grep -r -i my_function_name my_catkin_ws/src/

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-09-01 16:04:38 -0600

Seen: 201 times

Last updated: Sep 03 '14