Ask Your Question

rosrun command not giving any output or error.The line is just getting executed

asked 2020-10-28 16:10:28 -0500

Vishwanathk gravatar image

updated 2022-01-22 16:10:50 -0500

Evgeny gravatar image

image description. Rosrun command is not giving any output from running the python file.I have made the python file executable. I am not a newbie to ROS .So please help in rectifying this issue

edit retag flag offensive close merge delete



Your image didn't come through. And please also post the content of your python file. I assume this is the same question as, is that right?

chfritz gravatar image chfritz  ( 2020-10-29 09:47:56 -0500 )edit

yes it is the same question

Vishwanathk gravatar image Vishwanathk  ( 2020-10-29 10:00:09 -0500 )edit

Like I said, we need to see the error and also the content of the python file.

chfritz gravatar image chfritz  ( 2020-10-29 13:01:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-10-29 13:05:25 -0500

Answered on your new version of the same question on SO, here

Your python script doesn't actually run anything. Its main function is empty so to speak.

if __name__ == '__control_loop__': needs to be if __name__ == '__main__': See

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-10-28 16:10:28 -0500

Seen: 145 times

Last updated: Oct 29 '20