罗技手柄 Couldn't find executable named joy_node below /opt/ros/kinetic/share/joy 解决方法

最近想用joy_node这个节点,然后就通过

sudo apt-get install ros-kinetic-joy


去安装,然后运行rosrun joy joy_node时候一直错误显示Segmentation Fault,纠结了很久,最后在网上看到一个解决方法:

https://blog.csdn.net/qq_23670601/article/details/82956379 

解决方法:

把joy包复制到我的catkin_make文件下的src中,编译,终于可以使用了。

下载链接:https://github.com/ros-drivers/joystick_dr

另外编译过程中还遇到一个wiimote编译报错的问题,(当然wiimote这个库你也不需要可以直接删除不用编译)编译通过的解决方法可以参考:

https://blog.csdn.net/p942005405/article/details/86559966

和查到的博主遇到同样的问题:提示

[ERROR] [1547954304.805442494]: Couldn't open joystick force feedback!

但是并不影响这个节点发送消息。

暂时没有时间研究代码实现,回头有时间了再仔细查找问题。

---
header: 
  seq: 148
  stamp: 
    secs: 1547954326
    nsecs: 706369210
  frame_id: ''
axes: [1.0, 0.4140446186065674, -0.0, -0.0, 0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
---
header: 
  seq: 149
  stamp: 
    secs: 1547954326
    nsecs: 710290891
  frame_id: ''
axes: [1.0, 0.3706119656562805, -0.0, -0.0, 0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
---
header: 
  seq: 150
  stamp: 
    secs: 1547954326
    nsecs: 714100347
  frame_id: ''
axes: [1.0, 0.3380695879459381, -0.0, -0.0, 0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
---
header: 
  seq: 151
  stamp: 
    secs: 1547954326
    nsecs: 718256244
  frame_id: ''
axes: [1.0, 0.2946690618991852, -0.0, -0.0, 0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
---
header: 
  seq: 152
  stamp: 
    secs: 1547954326
    nsecs: 722273356
  frame_id: ''
axes: [1.0, 0.2186940312385559, -0.0, -0.0, 0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
---
header: 
  seq: 153
  stamp: 
    secs: 1547954326
    nsecs: 726173242
  frame_id: ''
axes: [1.0, 0.16443534195423126, -0.0, -0.0, 0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
---
header: 
  seq: 154
  stamp: 
    secs: 1547954326
    nsecs: 730159527
  frame_id: ''
axes: [1.0, 0.08846031129360199, -0.0, -0.0, 0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
---
header: 
  seq: 155
  stamp: 
    secs: 1547954326
    nsecs: 734090517
  frame_id: ''
axes: [1.0, 0.012485282495617867, -0.0, -0.0, 0.0, 0.0]
buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

 

你可能感兴趣的:(ROS)