You're defining a robot's properties, so you might want to define its properties. That'll open the door to higher-level navigation logic.
(Being obtuse is difficult...)
I made the robot follow a cosine curve. Cute but ridiculous solution.
wow that level took me forever. Ended up using things along the lines of if( me.getX() < 15) {move down then right} elst if me.getX()>15 and < 30 {move up then right} etc.
I encoded a route.
moves = [['down', 5], ['right', 20], ['up', 1] /* and so on */]
I personally wired the bot to track and follow my movements. Then I just walked the bot through the maze.
You could create your own robot control system based on pressure plates as well
You could always implement a-star, a searching algorithm.
What if the triangular walls were straight?
map.getPlayer()['hasItem'] = function yes () { return true; };