-
Install libhidapi-dev:
sudo apt-get install libhidapi-dev
-
Install Pyspacemouse:
pip install pyspacemouse
-
Set up SpaceMouse Permissions:
sudo echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev"' > /etc/udev/rules.d/99-hidraw-permissions.rules sudo usermod -aG plugdev $USER newgrp plugdev
-
Clone this repository into your catkin workspace:
cd /path/to/catkin_ws/src git clone https://github.com/iamlab-cmu/spacemouse_ros.git
-
Build the package using catkin_make or catkin build:
cd /path/to/catkin_ws catkin_make catkin build source devel/setup.bash
- Start the SpaceMouse Server:
rosrun spacemouse_ros spacemouse_server.py