Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 2.38 KB

File metadata and controls

87 lines (60 loc) · 2.38 KB

Rosdep Setup for over_vps

This package includes a custom rosdep.yaml file to manage Python dependencies that may not be available in the official rosdistro yet.

Option 1: Use Local rosdep.yaml (Recommended for Development)

# Navigate to the over_vps package directory
cd /path/to/your_workspace/src/over_vps

# Add the local rosdep source
sudo sh -c "echo 'yaml file://$(pwd)/rosdep.yaml' > /etc/ros/rosdep/sources.list.d/50-over-vps.list"

# Update rosdep database
rosdep update

# Install all dependencies
cd /path/to/your_workspace
rosdep install --from-paths src --ignore-src -r -y

Option 2: Manual Installation with pip

If you prefer to install Python dependencies manually:

pip3 install -r requirements.txt

Option 3: System Package Manager (Ubuntu/Debian)

Most dependencies are available via apt (except open3d):

sudo apt update
sudo apt install -y \
    python3-requests \
    python3-numpy \
    python3-scipy \
    python3-opencv \
    python3-pil

# Open3D must be installed via pip
pip3 install open3d>=0.13.0

Verify Installation

# Check if all Python packages are available
python3 -c "import requests, numpy, scipy, cv2, PIL, open3d; print('All dependencies OK')"

Dependencies List

Package Purpose Ubuntu Package Pip Package
requests HTTP API client python3-requests requests>=2.25.0
numpy Numerical computing python3-numpy numpy>=1.19.0
scipy Spatial transformations python3-scipy scipy>=1.5.0
opencv-python Image processing python3-opencv opencv-python>=4.5.0
Pillow Image I/O python3-pil Pillow>=8.0.0
open3d Point cloud processing N/A (pip only) open3d>=0.13.0

Troubleshooting

rosdep cannot find python3-open3d

This is expected. Open3D is not available in Ubuntu repositories and will be installed via pip automatically by rosdep.

Permission denied when adding rosdep source

Make sure to use sudo when adding the rosdep source file.

rosdep update fails

Try clearing the rosdep cache:

sudo rm -rf /etc/ros/rosdep/sources.list.d/20-default.list
sudo rosdep init
rosdep update

For Package Maintainers

When submitting to rosdistro, these dependencies should be added to the official rosdep database. Until then, users can use this local rosdep.yaml file.