rosmake error when writing a teleoperation node for a joystick? [closed]
Hi,
I am writing a teleoperation node for my joystick following http://www.ros.org/wiki/joy/Tutorials/WritingTeleopNode. When I rosmake the package, I got the errors:
tony@ubuntu:~/project/p3at_joy$ make [ 0%] Built target rospack_genmsg_libexe [ 0%] Built target rosbuild_premsgsrvgen [ 0%] Built target ROSBUILD_genmsg_cpp [ 0%] Built target ROSBUILD_genmsg_lisp [ 0%] Built target rospack_genmsg [ 0%] Built target rosbuild_precompile [100%] Building CXX object CMakeFiles/p3at_joy.dir/src/p3at_joystick.o In file included from /home/tony/project/p3at_joy/src/p3at_joystick.cpp:5: /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:40: error: ‘ROSCPP_DEPRECATED’ does not name a type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:41: error: ISO C++ forbids declaration of ‘ROSCPP_DEPRECATED’ with no type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:41: error: expected ‘;’ before ‘void’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:42: error: expected ‘;’ before ‘ROSCPP_DEPRECATED’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:42: error: ISO C++ forbids declaration of ‘ROSCPP_DEPRECATED’ with no type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:42: error: expected ‘;’ before ‘void’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:43: error: expected ‘;’ before ‘ROSCPP_DEPRECATED’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:43: error: ISO C++ forbids declaration of ‘ROSCPP_DEPRECATED’ with no type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:43: error: expected ‘;’ before ‘void’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:44: error: expected ‘;’ before ‘ROSCPP_DEPRECATED’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:44: error: ‘ROSCPP_DEPRECATED’ does not name a type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:45: error: ISO C++ forbids declaration of ‘ROSCPP_DEPRECATED’ with no type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:45: error: expected ‘;’ before ‘void’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:46: error: expected ‘;’ before ‘ROSCPP_DEPRECATED’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:46: error: ISO C++ forbids declaration of ‘ROSCPP_DEPRECATED’ with no type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:46: error: expected ‘;’ before ‘void’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:47: error: expected ‘;’ before ‘ROSCPP_DEPRECATED’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:47: error: ISO C++ forbids declaration of ‘ROSCPP_DEPRECATED’ with no type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:47: error: expected ‘;’ before ‘void’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:48: error: expected ‘;’ before ‘private’ /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:51: error: ISO C++ forbids declaration of ‘ROSCPP_DEPRECATED’ with no type /opt/ros/cturtle/stacks/joystick_drivers/joy/msg_gen/cpp/include/joy/Joy.h:51: error: expected ‘;’ before ...
The tutorial assumes you are using diamondback or electric. Is there a particular reason why you are using a seriously outdated ROS version?