Hi Ian_wk,<br><br>Can you be more specific as to what you are trying to run?<br><br>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?<br>

<br>A little bit more information about what led to this error would be very helpful.<br><br>Vijay<br><br><div class="gmail_quote">On Tue, Sep 14, 2010 at 1:49 AM, ian_wk <span dir="ltr"><<a href="mailto:i2rshuttle@gmail.com">i2rshuttle@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi,<br>
<br>
I tried to follow your code on SimpleActionClient but I encountered this<br>
error<br>
<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:3:49:<br>
error: actionlib_tutorials/FibonacciAction.h: No such file or directory<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:5:<br>
error: ‘actionlib_tutorials’ is not a namespace-name<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:5:<br>
error: expected namespace-name before ‘;’ token<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:6:<br>
error: ‘FibonacciAction’ was not declared in this scope<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:6:<br>
error: template argument 1 is invalid<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:6:<br>
error: invalid type in declaration before ‘;’ token<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:10:<br>
error: ISO C++ forbids declaration of ‘FibonacciResultConstPtr’ with no type<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:10:<br>
error: expected ‘,’ or ‘...’ before ‘&’ token<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:<br>
In function ‘void doneCb(const actionlib::SimpleClientGoalState&, int)’:<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:12:<br>
error: ‘result’ was not declared in this scope<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:<br>
At global scope:<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:24:<br>
error: ISO C++ forbids declaration of ‘FibonacciFeedbackConstPtr’ with no<br>
type<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:24:<br>
error: expected ‘,’ or ‘...’ before ‘&’ token<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:<br>
In function ‘void feedbackCb(int)’:<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:25:<br>
error: ‘feedback’ was not declared in this scope<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:<br>
In function ‘int main(int, char**)’:<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:32:<br>
error: initializer expression list treated as compound expression<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:32:<br>
warning: left-hand operand of comma has no effect<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:35:<br>
error: request for member ‘waitForServer’ in ‘ac’, which is of non-class<br>
type ‘Client’<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:39:<br>
error: ‘FibonacciGoal’ was not declared in this scope<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:39:<br>
error: expected ‘;’ before ‘goal’<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:40:<br>
error: ‘goal’ was not declared in this scope<br>
/home/shuttle/ros/stacks/ros_tutorials/simple_navigation_goal/src/simple_navigation_goal.cpp:41:<br>
error: request for member ‘sendGoal’ in ‘ac’, which is of non-class type<br>
‘Client’<br>
<br>
<br>
How do I include the header file in? I am able to download/make/rosmake the<br>
actionlib_tutorials successfully.<br>
<br>
Best Regards,<br>
Ian_wk<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://ros-users.122217.n3.nabble.com/actionlib-tutorials-tp1453837p1471681.html" target="_blank">http://ros-users.122217.n3.nabble.com/actionlib-tutorials-tp1453837p1471681.html</a><br>


Sent from the ROS-Users mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Vijay Pradeep<br>
Systems Engineer<br>
Willow Garage, Inc.<br>
<a href="mailto:tfoote@willowgarage.com" target="_blank"><span></span></a><a href="mailto:vpradeep@willowgarage.com" target="_blank">vpradeep@willowgarage.com</a><br>
<br>