Clean-up of rosparam after ending launch scripts
Hi,
I've a launch file that launches some PR2 controllers. I've another script that has to know which launch file has been launched. I tried creating a rosparam in my first launch file with the name of the controller. In my second script, I check the existence of the rosparam and whether the value corresponds with my desired file.
But it seems that these rosparam's are not deleted when the first launch file is terminated, also when this rosparam is set in a node.
My question is how to solve my problem, by either:
- Deleting the rosparam when my script is terminating
- Finding another way to check which launch file is executed
- A total other solution I didn't think of
Thanks in advance!
Nick