Here is my code - the problem is in the part called whichway() in line 26:
void Rosbotmove::whichway() {
float left = rosbot.get_laser(540);
float right = rosbot.get_laser(180);
if (left < right) {
rosbot.turn("clockwise", 3);
} else {
rosbot.turn("counterclockwise", 3);
}
}
ETA! I was missing the capital letter in RosbotMove! ARGH!