Skip to content

iamlab-cmu/leap_motion_msgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leap_motion_msgs

Installation Instructions for Ubuntu 20.04

  1. Install Libmesa:

    sudo apt-get install libgl1-mesa-glx
  2. Clone this package into a catkin_ws/src folder:

    git clone https://github.com/iamlab-cmu/leap_motion_msgs
  3. Install the deb file:

    cd leap_motion_msgs/Leap_Developer_Kit
    sudo dpkg -i Leap-2.3.1+33747-x64.deb
  4. Install the service:

    sudo vim /lib/systemd/system/leapd.service
  5. Paste the following lines into the file and then save:

    [Unit]
    Description=LeapMotion Daemon
    After=syslog.target
    
    [Service]
    Type=simple
    ExecStart=/usr/sbin/leapd
    
    [Install]
    WantedBy=multi-user.target
  6. Make a symbolic link and then start the service:

    sudo ln -s /lib/systemd/system/leapd.service /etc/systemd/system/leapd.service
    sudo systemctl daemon-reload
    sudo service leapd start
  7. Add the following lines to your ~/.bashrc file:

    export PYTHONPATH=$PYTHONPATH:/path/to/catkin_ws/src/leap_motion_msgs/Leap_Developer_Kit/LeapSDK/python3.8-project
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/catkin_ws/src/leap_motion_msgs/Leap_Developer_Kit/LeapSDK/python3.8-project
  8. Make this catkin package and source the devel/setup.bash file:

    cd /path/to/catkin_ws
    catkin_make
    source devel/setup.bash

Running Instructions

  1. Enter the scripts folder of leap_motion_msgs:
    roscd leap_motion_msgs
    cd scripts
    python3 leap_motion_publisher.py

Credits

  1. https://forums.leapmotion.com/t/leap-motion-sdk-with-python-3-5-in-linux-tutorial/5249/1
  2. https://blog.keithkim.com/2020/07/note-leap-motion-on-ubuntu-2004.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published