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 -0600

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 -0600

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 256 times

Last updated: May 24 '18