ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I think grep is your best option. Navigate to the src
directory of your Catkin workspace to issue these commands.
List Python and C++ nodes:
grep -Er "rospy.init_node|ros::init"
List Python and C++ subscribers:
grep -Er "rospy.Subscriber|.subscribe\("
List Python and C++ publishers:
grep -Er "rospy.Publisher|.advertise<"
List Python and C++ services:
grep -Er "rospy.Service\(|.advertiseService\("
Note that this assumes in Python you always call things relative to rospy
. For C++ you could also grep on ros::Subscriber
, ros::Publisher
, and ros::ServiceServicer
, but I did it the way I did so you can account for when you have separate header and source files - the commands I provide pick up on where the actual definition is provided.