Hi Ian_wk, Can you be more specific as to what you are trying to run? Are you referring to a tutorial when you mention that you "tried to follow your code on SimpleActionClient"? If so, which tutorial? Are running boxturtle or cturtle? A little bit more information about what led to this error would be very helpful. Vijay On Tue, Sep 14, 2010 at 1:49 AM, ian_wk wrote: > > Hi, > > I tried to follow your code on SimpleActionClient but I encountered this > error > > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:3:49: > error: actionlib_tutorials/FibonacciAction.h: No such file or directory > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:5: > error: ‘actionlib_tutorials’ is not a namespace-name > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:5: > error: expected namespace-name before ‘;’ token > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:6: > error: ‘FibonacciAction’ was not declared in this scope > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:6: > error: template argument 1 is invalid > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:6: > error: invalid type in declaration before ‘;’ token > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:10: > error: ISO C++ forbids declaration of ‘FibonacciResultConstPtr’ with no > type > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:10: > error: expected ‘,’ or ‘...’ before ‘&’ token > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp: > In function ‘void doneCb(const actionlib::SimpleClientGoalState&, int)’: > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:12: > error: ‘result’ was not declared in this scope > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp: > At global scope: > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:24: > error: ISO C++ forbids declaration of ‘FibonacciFeedbackConstPtr’ with no > type > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:24: > error: expected ‘,’ or ‘...’ before ‘&’ token > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp: > In function ‘void feedbackCb(int)’: > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:25: > error: ‘feedback’ was not declared in this scope > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp: > In function ‘int main(int, char**)’: > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:32: > error: initializer expression list treated as compound expression > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:32: > warning: left-hand operand of comma has no effect > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:35: > error: request for member ‘waitForServer’ in ‘ac’, which is of non-class > type ‘Client’ > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:39: > error: ‘FibonacciGoal’ was not declared in this scope > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:39: > error: expected ‘;’ before ‘goal’ > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:40: > error: ‘goal’ was not declared in this scope > > /home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:41: > error: request for member ‘sendGoal’ in ‘ac’, which is of non-class type > ‘Client’ > > > How do I include the header file in? I am able to download/make/rosmake the > actionlib_tutorials successfully. > > Best Regards, > Ian_wk > > -- > View this message in context: > http://ros-users.122217.n3.nabble.com/actionlib-tutorials-tp1453837p1471681.html > Sent from the ROS-Users mailing list archive at Nabble.com. > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > -- Vijay Pradeep Systems Engineer Willow Garage, Inc. vpradeep@willowgarage.com