[ros-users] Reserved message names?

Josh Faust jfaust at willowgarage.com
Thu Aug 12 21:32:32 UTC 2010


Without more code it's impossible to tell, but likely something you're
#including has #defined Status to something you're not expecting.  Nothing
in ROS should be doing this.

Josh

On Thu, Aug 12, 2010 at 2:17 PM, Sanja Popovic <sanja at mit.edu> wrote:

> Hi,
>
> I've created a message for my package named Status and in the code, I had
> the following function:
> void pullPickCallback(bookbot::Status s) {
> ...
> }
>
> When compiling the file, I got the following error:
>  /opt/ros/cturtle/stacks/lis/bookbot/src/driver.cpp:57: error: variable or
> field ‘pullPickCallback’ declared void
>  /opt/ros/cturtle/stacks/lis/bookbot/src/driver.cpp:57: error: expected
> unqualified-id before ‘int’
>
> Line 57 is the one I copied above.
>
> Changing the message name from Status to something else fixed the problem.
> Is Status reserved name in ROS for something or did I just bump into a
> really strange bug?
>
> Thanks,
> Sanja
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100812/f6cdad1d/attachment-0003.html>


More information about the ros-users mailing list