-
Install Libmesa:
sudo apt-get install libgl1-mesa-glx
-
Clone this package into a catkin_ws/src folder:
git clone https://github.com/iamlab-cmu/leap_motion_msgs
-
Install the deb file:
cd leap_motion_msgs/Leap_Developer_Kit sudo dpkg -i Leap-2.3.1+33747-x64.deb
-
Install the service:
sudo vim /lib/systemd/system/leapd.service
-
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
-
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
-
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
-
Make this catkin package and source the devel/setup.bash file:
cd /path/to/catkin_ws catkin_make source devel/setup.bash
- Enter the scripts folder of leap_motion_msgs:
roscd leap_motion_msgs cd scripts python3 leap_motion_publisher.py