So I am trying to add a file which the node reads from, however, what it shows me is that the file doesn’t exist?
this is the error I am getting:
File "/home/ubuntu/catkin_ws/src/Line-Follower-PID-controller-with-perception/src/follow_line_step_pid.py", line 127, in camera_callback with open('indicator.txt','r') as indication: IOError: [Errno 2] No such file or directory: 'indicator.txt'
I added the file into the same directory as my node. and I ensured that the name is the same… but for some reason it is not working. Is there something I am missing?
Do I need to add the file to the cmake lists of the package? or something like that?