Hi Rene, pullPickCallback is defined there for the first time, and I didn't ommit any ';' in that file. Also, just renaming the Status to something else solved the problem so I don't think included files have an error... Thanks for the help! Sanja ________________________________________ From: ros-users-bounces@code.ros.org [ros-users-bounces@code.ros.org] On Behalf Of Rene Ladan [r.c.ladan@gmail.com] Sent: Thursday, August 12, 2010 5:37 PM To: ros-users@code.ros.org Subject: Re: [ros-users] Reserved message names? Maybe you or an included file forgot a ';' before the 'int' of pullPickCallback ? Regards, Rene On 12-08-2010 23:30, Sanja Popovic wrote: > The error is slightly different. > > /home/lis/tmp/lis/bookbot/src/driver.cpp:57: error: expected unqualified-id before ‘int’ > /home/lis/tmp/lis/bookbot/src/driver.cpp:57: error: expected ‘,’ or ‘;’ before ‘{’ token > > Thanks, > Sanja > ________________________________________ > From: ros-users-bounces@code.ros.org [ros-users-bounces@code.ros.org] On Behalf Of Rene Ladan [r.c.ladan@gmail.com] > Sent: Thursday, August 12, 2010 5:26 PM > To: ros-users@code.ros.org > Subject: Re: [ros-users] Reserved message names? > > On 12-08-2010 23:17, Sanja Popovic 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? > > Since pullPickCallback is a callback function, what happens if you > declare it as int instead of void (and return a dummy value at the end)? > > Regards, > Rene > -- > http://www.rene-ladan.nl/ > > GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 > (subkeys.pgp.net) > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > -- http://www.rene-ladan.nl/ GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) _______________________________________________ ros-users mailing list ros-users@code.ros.org https://code.ros.org/mailman/listinfo/ros-users