Develop Leap Motion in ROS Kinetic: Hello World

OS: Ubuntu 16.04.02 LTS x64
ROS: Kinetic
LeapSDK: V2 Tracking

There is a simple way to make use of Leap Motion in ROS, namely the leap_motion package. Let me show you how to deploy it to your system.

Step 1 Download and install V2 Tracking. Click here for detailed process.

Step 2 Download leap_motion package.

cd YOUR_WORK_SPACE/src
git clone https://github.com/qqfly/leap_motion.git
cd YOUR_WORK_SPACE
catkin_make

Step 3 Export python path.
You must make sure that python can find the essential modules.

source YOUR_WORK_SPACE/devel/setup.bash
export PYTHONPATH=$PYTHONPATH:$HOME/LeapSDK/lib:$HOME/LeapSDK/lib/x64

Step 4 Run the ROS driver. Connect the Leap Motion to your computer.

sudo leapd #A new terminal
LeapControlPanel #A new terminal
cd YOUR_WORK_SPACE
roscore #A new terminal
rosrun leap_motion send.py

Now you can see the data updating in the terminal window. Refer to here for more details.

In addition, if you encounter the following problem:

[Info] Tracking initialized
[Critical] Secure WebSocket server failed to start
[Critical] WebSocket server failed to start
[Critical] Have you tried running as root/Administrator?

after you type

sudo leapd

It’s due to the problem that more than one leapd service is runing. Then you can type

sudo service leapd stop

to stop the leapd service and restart it by leapd.

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值