add queryRobot
fix mistakes
fix queryRobot