Robotics StackExchange | Archived questions

how can I use roslaunch to read from text file?

In my node i read from text file when I rosrun it works well when I use rolaunch it can't find the text file

Asked by youssefkhalil on 2018-12-17 07:22:47 UTC

Comments

Answers

Please see #q235337.

Summarising: you are most likely using a relative path. roslaunch changes the working directory of your node before starting it, so that's why it can't find the file.

Asked by gvdhoorn on 2018-12-17 07:34:40 UTC

Comments