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

How can I get the name of presently running launch file from the node?

asked 2018-05-24 08:22:24 -0500

Totlant gravatar image

I have a node that plans a robot path, so I need to get coordinates of objects around. These coordinates are written in world_name.world file that is called from world_name.launch file. I am programming on python.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-24 10:33:49 -0500

gvdhoorn gravatar image

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?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-05-24 08:22:24 -0500

Seen: 391 times

Last updated: May 24 '18