Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem is most likely in your code and has nothing to do with rosrun. It appears that your node did start, but it didn't keep running for very long. For the node to continue running, it has to either continuously be doing things (for example: while not rospy.is_shutdown(): #do stuff), or include rospy.spin() somewhere to keep it running after initialization is done. (You can see examples of both of those in this tutorial.)

If that wasn't the problem, you'll need to post your code before anyone will be able to help you.

The problem is most likely in your code and has nothing to do with rosrun. It appears that your node did start, but it didn't keep running for very long. For the node to continue running, it has to either continuously be doing things (for example: while not rospy.is_shutdown(): #do stuff), or include rospy.spin() somewhere to keep it running after initialization is done. (You can see examples of both of those in this tutorial.)

If that wasn't the problem, you'll need to post your code before anyone will be able to help you.

EDIT: The actual problem appears to have been that a return statement was placed too early a method. Fixing this revealed another problem with infinite recursive method calls.