ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ros.pde compile error BYTE not declared in this scope

asked 2012-07-13 09:09:50 -0600

Scott gravatar image

updated 2014-01-28 17:13:00 -0600

ngrennan gravatar image

Hi, I am running Ubuntu 11.10 with latest Fuerte install and arduino 0023 I have followed all the instructions on the websites, but when I try to compile the ros.pde sketch I get the following errors. Any help would be appreciated. -Scott

ros.cpp: In function ‘int handleRead()’: ros.cpp:238:21: error: ‘BYTE’ was not declared in this scope ros.cpp: In function ‘void statusPacket(int, int)’: ros.cpp:266:21: error: ‘BYTE’ was not declared in this scope ros.cpp: In function ‘void loop()’: ros.cpp:325:33: error: ‘BYTE’ was not declared in this scope ros.cpp:472:31: error: ‘BYTE’ was not declared in this scope ros.cpp:513:48: error: ‘BYTE’ was not declared in this scope

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2012-07-13 09:29:06 -0600

Scott gravatar image

OK I found the fix from a related posting on a sparkfun site, apparently BYTE has been deprecated in the Serial package


Serial.print(value, BYTE);

need to be replaced with:


So to fix this, edit the ros.pde file and remove all BYTE entries, (after backing it up first) then save it and it compiles perfectly!
edit flag offensive delete link more


I believe this has already been fixed in trunk, the Arduino-1.0 compatible releases will be out shortly, and so this won't be an issue.

fergs gravatar image fergs  ( 2012-07-14 13:03:21 -0600 )edit

Fergs. Is this fix now incl in the recent Oct 1/12 release of, that includes what appears to be a new Biolod pypose.ino file? Further: Rereading the Arbotix Package arbotix_firmware wiki & locating the Vanadium-ros-pkg Source, discovered a Mar 21/12 ros.ino. It compiles & loads

RobotRoss gravatar image RobotRoss  ( 2012-10-03 11:58:16 -0600 )edit

Yes, arbotix-0015 + the ros.ino in vanadium-ros-pkg should work fine with arduino 1.0+.

fergs gravatar image fergs  ( 2012-10-14 19:34:19 -0600 )edit

Question Tools



Asked: 2012-07-13 09:09:50 -0600

Seen: 11,416 times

Last updated: Jul 13 '12