Can't print in a file using "fprintf" when running the node through roslaunch
Hello,
I have a node that uses printf
, File and fprintf
functions.
If I run it using rosrun
it works perfectly:
- it shows output on the screen
- It creates a file and prints data inside it.
However, if I run it through roslaunch
:
- Nothing is showed in the screen
- It creates a file. However, the file is always empty; nothing is stored inside it.
I used output=screen
in roslaunch
put still can't see anything on the screen and nothing is stored in the file.
Could you please help.
Welcome! It's difficult to help you because you haven't included any code (
.cpp
and.launch
files). Please update your question with this information (using the preformatted text or101010
button) and exactly how you're running everything.