joy node build bug when building from source [closed]
Hi,
I just tried to build the joy package after checking out the whole joystick_drivers stack and got a following error:
[100%] Building CXX object CMakeFiles/joy_node.dir/joy_node.o
/home/ubuntu/ros_packages/joystick_drivers/joy/joy_node.cpp:39:29: fatal error: sensor_msgs/Joy.h: No such file or directory
compilation terminated.
make[3]: *** [CMakeFiles/joy_node.dir/joy_node.o] Error 1
so it appears the build system looks for Joy.h
in std_msgs, whereas it can be found under joy/msg_gen/cpp/include/joy/Joy.h
. What change to I have to make to make the build go without errors?
BTW, I also found another difference between package install and the source. The lines:
<depend package="sensor_msgs"/>
<depend package="rosbag"/>
<export>
<rosbag migration_rule_file="migration_rules/Joy.bmr"/>
</export>
appear in manifest.xml
in source but don't come up in a joy version installed from ubuntu packages. Of course removing the above lines doesn't fix the error.
EDIT: So I copied joy/msg/Joy.msg to sensor_msgs/msg and rebuilt the whole thing, but this didn't help either, as Joy.msg obviously changed and after doing what I just mentioned I got:
[100%] Building CXX object CMakeFiles/joy_node.dir/joy_node.o
/home/ubuntu/ros_packages/joystick_drivers/joy/joy_node.cpp: In member function ‘int Joystick::main(int, char**)’:
/home/ubuntu/ros_packages/joystick_drivers/joy/joy_node.cpp:217:19: error: ‘struct sensor_msgs::Joy’ has no member named ‘header’
make[3]: *** [CMakeFiles/joy_node.dir/joy_node.o] Error 1
So I'll probably just revert to some older joy version until fixed.
Do you know how to use a normal joystick to control a turtlebot based kobuki?I have some trouble with it . I refer to this website:http://wiki.ros.org/turtlebot_teleop/Tutorials/hydro/Joystick%20Teleop