ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

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

asked 2020-10-28 16:10:28 -0600

Vishwanathk gravatar image

updated 2022-05-23 09:19:40 -0600

lucasw 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 -0600 )edit

yes it is the same question

Vishwanathk gravatar image Vishwanathk  ( 2020-10-29 10:00:09 -0600 )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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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

Question Tools

1 follower


Asked: 2020-10-28 16:10:28 -0600

Seen: 273 times

Last updated: Oct 29 '20