Receiving Arduino compile error involving ros/duration.h [closed]

asked 2012-07-11 05:40:17 -0500

bunderhi gravatar image

updated 2012-07-11 08:37:01 -0500

Update: Issue solved by moving row.h include to the top.

I am receiving this compile error from the Arduino IDE while compiling my rosserial pub and sub test using a new message type.

In file included from /Users/brianunderhill/thumper/libraries/ros_lib/ros/time.h:38, from /Users/brianunderhill/thumper/libraries/ros_lib/std_msgs/Time.h:8, from /Users/brianunderhill/thumper/libraries/ros_lib/ros/node_handle.h:38, from /Users/brianunderhill/thumper/libraries/ros_lib/ros.h:38, from RosController.cpp:3: /Users/brianunderhill/thumper/libraries/ros_lib/ros/duration.h:55: error: expected ',' or '...' before numeric constant

I can successfully compile all of the rosserial examples but my test sketch fails as shown.

This is Arduino 1.0 with rosserial Fuerte compiling for a Atmega168.

The header file for my message was generated using the same process used in the rosserial tutorial and was successful.

My previous experience with Arduino is that this type of error is related to some missing bit of configuration and the indicated error is misleading and not the root cause.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-03-26 18:21:15.626754