#!/usr/bin/env python
import rospy

if __name__ == '__main__':
    pass

#!/usr/bin/env python
import rospy

if __name__ == '__main__':
    rospy.init_node('controller')
    rospy.spin()

Initialize node