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

Revision history [back]

In the main fonction,the argv[0] is the executable path, you can theck it as below:

int main(int argc,char ** argv){
    printf("s%",argv[0]);
    return 0;
}