Skip to content

Instantly share code, notes, and snippets.

@agutenkunst
Last active December 11, 2019 13:41
Show Gist options
  • Save agutenkunst/68a5ab701bb315ca787a8dfc364e2587 to your computer and use it in GitHub Desktop.
Save agutenkunst/68a5ab701bb315ca787a8dfc364e2587 to your computer and use it in GitHub Desktop.
Setup psen_scan on RaspberryPi

Prepare

sudo apt-get update sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential

PythonQt needs to be installed (not sure why not via depend)

sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools

Initialize rosdep

sudo rosdep init rosdep update

Setup workspace

mkdir ~/ros_catkin_ws cd ~/ros_catkin_ws

Setup rosinstall

rosinstall_generator ros_comm psen_scan --rosdistro melodic --deps --tar > melodic-ros_comm-psen_scan.rosinstall wstool init -j8 src melodic-ros_comm-psen_scan.rosinstall

Install dependencies

rosdep install --from-paths src --ignore-src --rosdistro melodic -y

Build

./src/catkin/bin/catkin_make_isolated -j1 --install -DCMAKE_BUILD_TYPE=Release

Add sourcing to bashrc

echo "source ~/ros_catkin_ws/install_isolated/setup.bash" >> ~/.bashrc

Change IP (if necessary)

Edit /etc/dhcpcd.conf + Reboot

Some notes

Based on https://wiki.ros.org/melodic/Installation/Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment