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

Revision history [back]

click to hide/show revision 1
initial version

The first message you see is End of the trip for TurtleBot , which indicates that your code is going into the except section at the last 5 lines of your code:

if __name__ == '__main__':
  try:
    wall_follow()
  except:
    rospy.loginfo("End of the trip for TurtleBot")

Since this is getting into the except block, it means that there's some kind of exception being thrown in wall_follow(). I'd recommend that you either print the exception that's thrown, or remove the try/except block so that you can see where this exception is coming from.