ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

teleop_base.cpp:37:21: erro fatal: joy/Joy.h:

asked 2012-03-06 04:59:25 -0600

this post is marked as community wiki

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

Hi ALL

I'm trying to follow tutorial for installing "Rosaria" and when I do "rosmake" package "teleop_base" this can not find the file "Joy.h"

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-03-06 05:33:03 -0600

mjcarroll gravatar image

Short Answer: This is due to the teleop_base being deprecated for a while.

Longer Answer: The Joy message is no longer in the joy package, but has instead been moved to sensor_msgs. You could probably update teleop_base to reflect theses changes (the manifest.xml and the actual source files will have to be updated at a minimum).

Probably the better answer is to write a simple "glue" node that will change the Joy messages that your device (ps3joy, etc) puts out, and changes them into appropriately scaled Twist messages published on /cmd_vel.

The other option is to use a pre-made generic teleop node, like https://github.com/skynetish/teleop


Related Questions

edit flag offensive delete link more
0

answered 2012-03-06 18:28:30 -0600

owh gravatar image

If you still have the same problem, try:

sudo apt-get install ros-electric-joystick-drivers

and then,

rosmake --pre-clean teleop_base

see if you can get pass the joy error. You may encounter new error to fix. I had three to fix and this was the first. It depends on what we have in our system.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-03-06 04:59:25 -0600

Seen: 936 times

Last updated: Mar 06 '12