Skip to content

Instantly share code, notes, and snippets.

@JasonRBowling
Last active November 20, 2023 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JasonRBowling/4156f1ceccae096ccb9a6294b49d74f3 to your computer and use it in GitHub Desktop.
Save JasonRBowling/4156f1ceccae096ccb9a6294b49d74f3 to your computer and use it in GitHub Desktop.
#install colcon, if not already present
sudo apt install python3-colcon-ros
mkdir ~/sipeed
cd ~/sipeed
#download the driver linked to in the wiki into ~/sipeed
#Unzip sipeed_tof_ms_a010.zip and cd into the resulting directory. From there:
cd ros2
source /opt/ros/*/setup.sh
colcon build
source install/setup.sh
#added the following line to .bashrc so ROS 2 can find the new package
source ~/sipeed/sipeed_tof_ms_a010_ros/ros2/install/setup.sh
#start the ROS 2 node
ros2 run sipeed_tof_ms_a010 publisher --ros-args -p device:="/dev/ttyUSB0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment