Intel Realsense Viewer Install Guide (For laptops):
ROS 2 Install Guide:
ROS 2 Workspace Setup:
Vision Stack setup repo setup (after ROS2 Workspace has been set up)
cd ~/ros2_ws/srcgit clone [email protected]:Terrawarden-MQP/TerrawardenVision.gitcd TerrawardenVisionpip install -r requirements.txt
- Flash with Jetpack 6.0
- Check install by running
sudo apt-cache show nvidia-jetpack - Install Intel RealSense SDK
- Install
colcon(if not already installed)
- https://colcon.readthedocs.io/en/released/user/installation.html (follow ROS 2 steps)
- Install ROS RealSense Wrapper
sudo apt install ros-humble-realsense2-*sudo apt remove ros-humble-librealsense2mkdir -p ~/realsense2_camera/src && cd ~/realsense2_camera/srcgit clone https://github.com/IntelRealSense/realsense-ros.git -b ros2-masterrm -rf realsense2_camera_msgs realsense2_descriptioncd ~/realsense2_cameracolcon build --symlink-install
- Run i455 with ROS
ros2 run rviz2 rviz2and open topic/camera/camera/depth/color/points- In folder
realsense2_camera, runsource install/setup.bash ros2 launch realsense2_camera rs_launch.py depth_module.depth_profile:=480,270,5 depth_module.exposure:=8000 enable_sync:=true pointcloud.enable:=true enable_color:=true initial_reset:=true rgb_camera.color_profile:=1280,720,15 align_depth.enable:=true(Note: higher resolutions and other configurations are technically supported, as shown byrs-enumerate-devices, but have experimentally been shown to drop frames or stop publishing.)
- Install ROS 2 Real Time Classification and Detection using PyTorch TensorRT
- Follow the steps here:
https://github.com/NVIDIA-AI-IOT/ros2_torch_trt - Note, the following modifications may be needed to fix installing the
torch2trtdependency:- Ensure
$CUDA_HOMEis set properly in terminal - If
torchdoes not show up as being installed in Python properly, modifycpp_extension.py(~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py) so thatCUDA_HOME = _find_cuda_home()(remove or comment out the rest of the line,# if torch.cuda._is_compiled() else None) - If there are permission errors accessing files when installing, run
sudo chown -R USERNAME /usr/local/lib/python3.10/dist-packages/
- Ensure
- Validate install by testing the live_detectors
- MobileNET Pretrained model found at: https://drive.google.com/drive/folders/1pKn-RifvJGWiOx0ZCRLtCXM5GT5lAluu
- Install PyTorch w/ CUDA Enabled
- Install ROS 2 Vision Messages
sudo apt install ros-humble-vision-msgs
FAULTY DRIVERS 3. Install RealSense Drivers
- https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_jetson.md
- https://github.com/IntelRealSense/realsense_mipi_platform_driver
- Install Intel Wifi Driver (hotfix for Jetpack 6.0 kernel 5.15.136-tegra)
- Download backports-5.15.148-1.tar.xz from https://cdn.kernel.org/pub/linux/kernel/projects/backports/stable/v5.15.148/
tar Jxfv backports-5.15.148-1.tar.xzcd backports-5.15.148-1.tar.xzmake defconfig-iwlwifimake -j8sudo make install- reboot the system
- add a line at the end of
sudo nano /etc/initramfs-tools/modulesto be theiwlwifi sudo update-initramfs -uto update the interfacessudo rebootor power off, unplug, wait 5 seconds, plug back in
sudo apt install ufwsudo systemctl enable sshsudo systemctl start sshsudo ufw allow ssh- Modify timeout to 30 minutes
gsettings set org.gnome.desktop.session idle-delay 1800
colcon buildsource ~/Desktop/ros_ws/install/setup.bashros2 launch joisie_vision live_detect.launch.py
We found this boi, good enough for now lmao
- https://github.com/PUTvision/UAVVaste Wrote code for data augmentation as well - with 10 variants per image of augmentation, that's 7,720 images with 37,180 annotations, which should be more than good enough.