[ros-users] actionlib tutorials

Vijay Pradeep vpradeep at willowgarage.com
Tue Sep 14 16:42:48 UTC 2010


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 <i2rshuttle at gmail.com> 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 at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>



-- 
Vijay Pradeep
Systems Engineer
Willow Garage, Inc.
 <tfoote at willowgarage.com>vpradeep at willowgarage.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100914/dc27ddfb/attachment-0003.html>


More information about the ros-users mailing list