I need help remembering a book i read in middle school. I only recall a few details about so any help i could get i would really appreciate. It has to do with a country that is run by tall three legged robots. The main character was a boy and he eventually meets a kid thats called Beanpole. I think the books ending has to do with the kid and a little toddler that he picks up along the way finding their way to a village i believe. I think the story is made up of three books. Thats about all i can recall. Why this book has been bothering me i dont know. I dont even remember if i liked the book.