[ros-users] actionlib tutorials

ian_wk i2rshuttle at gmail.com
Tue Sep 14 08:49:00 UTC 2010


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.



More information about the ros-users mailing list