- ROS 2 Jazzy installed and sourced
- Ubuntu 24.04 on Raspberry Pi 5
- ASCamera depth camera and USB cable
Clone into your project directory (you know which one):
git clone https://github.com/KSU-Chad/ascamera.git
cd ascameraUpdate apt first:
sudo apt updateInstall required libraries:
sudo apt install libgflags-dev nlohmann-json3-dev libgoogle-glog-dev \
ros-$ROS_DISTRO-image-transport ros-$ROS_DISTRO-image-publisher ros-$ROS_DISTRO-camera-info-managerNavigate to the scripts directory:
cd ascamera/scripts/Copy the udev rule file (grants the camera proper device permissions):
sudo cp angstrong-camera.rules /etc/udev/rules.dRun the target detection script:
sudo ./gettarget.shReload udev rules to apply changes:
sudo udevadm control --reload-rules
sudo udevadm triggerOpen the launch file to update the configuration path:
gedit ../launch/ascamera.launch.pyFind the configuration file path entry and update it to match your directory structure, replace and :
/home/<user>/<workspace>/ascamera/configurationfiles
Save and close.
Navigate back to the project root and build:
cd ..
./build.shSource the environment:
source install/setup.bash./run_ascamera_node.shLeave this terminal open — the camera service must stay running while viewing.
Open a new terminal for the viewer. Two options:
rqtIn the rqt window: Plugins → Visualization → Image View
-
Depth map: select the depth topic,
-
change the Max depth value and see how the image changes
-
RGB image: select the rgb0 topic from the dropdown
rviz2For color image:
- Click Add → By topic → /ascamera → /camera_publisher → /rgb0 → /imgage → imgage → OK
For depth map:
- Set Fixed Frame to
camera_link - Click Add → By topic → /ascamera → /camera_publisher → /depth0 → /points → PointCloud2 → OK