Ask Your Question
0

Compilation error on Arduino sketch with ros_lib

asked 2013-04-05 10:58:53 -0500

PKG gravatar image

updated 2013-04-05 11:07:14 -0500

I tried to run the ros_lib HelloWorld program on an Arduino Uno, but got the following error:

In file included from /home/turtlebot/sketchbook/libraries/ros_lib/ros.h:38:0, from button_example.cpp:5: /home/turtlebot/sketchbook/libraries/ros_lib/ros/node_handle.h: In member function ‘void ros::NodeHandle_<hardware, max_subscribers,="" max_publishers,="" input_size,="" output_size="">::logdebug(const char*)’: /home/turtlebot/sketchbook/libraries/ros_lib/ros/node_handle.h:414:13: error: ‘DEBUG’ is not a member of ‘rosserial_msgs::Log’

Background: I have groovy installed on my netbook . I used the instructions here with the rosbuild option to build rosserial_arduino on the netbook. I then moved the ros_lib libraries to the relevant Arduino folder and tried to run the example sketches on the Arduino.

edit retag flag offensive close merge delete

Comments

Did you find a solution? I am stuck with the same error.

Balakumar gravatar image Balakumar  ( 2013-07-17 21:33:20 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-07-17 22:06:18 -0500

Go to sketchbook/libraries/ros_lib/rosserial_msgs and open Log.h using a text editor. Rplace ROSDEBUG with DEBUG save the file and your done.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-04-05 10:58:53 -0500

Seen: 349 times

Last updated: Jul 17 '13