Unable to compile main.cpp for avr_bridge
I have been trying to follow the "Hello Tutorial" for avr_bridge, and when I run "make" after creating main.cpp, I get this error message:
uav@UAV-PC-2:~/ros_tutorials/avr_bridge_callResponse$ make [ 5%] Building CXX object CMakeFiles/firmware.dir/src/main.cpp.o /home/uav/ros_tutorials/avr_bridge_callResponse/src/main.cpp:26: error: variable or field ‘response’ declared void /home/uav/ros_tutorials/avr_bridge_callResponse/src/main.cpp:26: error: ‘Msg’ was not declared in this scope /home/uav/ros_tutorials/avr_bridge_callResponse/src/main.cpp:26: error: ‘msg’ was not declared in this scope /home/uav/ros_tutorials/avr_bridge_callResponse/src/main.cpp: In function ‘void setup()’: /home/uav/ros_tutorials/avr_bridge_callResponse/src/main.cpp:48: error: ‘response’ was not declared in this scope make[2]: * [CMakeFiles/firmware.dir/src/main.cpp.o] Error 1 make[1]: [CMakeFiles/firmware.dir/all] Error 2 make: ** [all] Error 2