How can I get real-time input from user?
Hi everyone!
I'm trying to print a statement on the command line and then get inputs (strings to be more specific) from the user while my package is running. I'm writing my node in Python. Is there anyway to do this? I now this seems trivial, but I'm new to ROS and couldn't find anything regarding this problem on the web.
Thanks.
P.s. I tried print '....' but it doesn't print anything on the command line. I tried n=raw_input() but my node crashes.
Are you trying to run this python file with
rosrun
or withroslaunch
?