Robotics StackExchange | Archived questions

How to figure out if turtle sim is at world boundary

I'm going through the tutorials and from the "Moving in a straight line" tutorial I wanted to modify it such that if the turtle reaches the world boundary, it turns and then continues on. Is there is a smart way of doing it? I looked at the tf tutorial but couldn't figure it out. Thanks

Asked by regularguy on 2017-09-29 23:19:17 UTC

Comments

Answers