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

ros.pde compile error BYTE not declared in this scope

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

Scott gravatar image

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

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
2

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

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 http://forum.sparkfun.com/viewtopic.php?f=32&t=30991

Thus

Serial.print(value, BYTE);

need to be replaced with:

 Serial.write(value);

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!
-Scott
edit flag offensive delete link more

Comments

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 -0500 )edit

Fergs. Is this fix now incl in the recent Oct 1/12 release of arbotix-0015.zip, 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 -0500 )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 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 11,434 times

Last updated: Jul 13 '12