how to get the ros node list and log file directory path through C++ API in kinetic

asked 2017-02-26 19:41:07 -0500

can-43811 gravatar image

updated 2017-02-26 19:42:04 -0500

below command will print the ros node list and path of the log file in terminal. I would like to know how to do same thing through ROS API in ROS C++ .

(1) below command will give output as a path of the log file.

 roscd log

(2) below command will give output as a all running node.

 rosnode list

I want to know the c++ API name which will return output of these commands. Is there any way to find the corrosponding API of all the commands running through terminal.

Regards, can-mohan

edit retag flag offensive close merge delete