rosmake error when writing a teleoperation node for a joystick? [closed]

asked 2012-04-09 01:28:32 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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 ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2012-10-30 16:37:51

Comments

The tutorial assumes you are using diamondback or electric. Is there a particular reason why you are using a seriously outdated ROS version?

roehling gravatar image roehling  ( 2012-04-09 02:44:15 -0600 )edit