ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
How can I get the name of presently running launch file from the node?
I don't believe there is API to do that, at least not "from the node". Nodes have no idea they were started by roslaunch
.
There might be a hacky way using some roslaunch
internal API, but I haven't checked.
But tbh, I don't completely understand why you'd want to do this.
Can you describe a bit clearer why you feel "get[ting] the name of presently running launch file from the node" is the solution to your problem?