How to write ros commands in python file
Hi,
I am a newbie here. Went through ros documentation and executed all commands one by one. Just wondering how can I write a couple of ros commands in python file and execute it? For example, my program should be able to save data being published on a certain topic.
I can do it by entering commands one by one in ros. But dont know how can I combine all those commands in a python file and just run the file.
Looks a pretty stupid question, but would help me a lot.