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

how can I use roslaunch to read from text file?

asked 2018-12-17 06:22:47 -0500

youssefkhalil gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-12-17 06:34:40 -0500

gvdhoorn gravatar image

updated 2018-12-17 06:35:17 -0500

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-12-17 06:22:47 -0500

Seen: 148 times

Last updated: Dec 17 '18