Skip to content

Commit

Permalink
Update camera configs (#263)
Browse files Browse the repository at this point in the history
* Update camera configs

* Add comment
  • Loading branch information
abhaybd authored Sep 7, 2023
1 parent 03e0786 commit c39dbd4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rover-config/50-rover-cameras.rules
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
# Install this in /etc/udev/rules.d

# Mast camera
SUBSYSTEM=="video4linux", ATTRS{idVendor}=="05a3", ATTRS{idProduct}=="9601", KERNELS=="1-2.3", SYMLINK+="video20"
SUBSYSTEM=="video4linux", ATTRS{idVendor}=="05a3", ATTRS{idProduct}=="9230", KERNELS=="1-2.2", SYMLINK+="video20"

# Forearm camera
SUBSYSTEM=="video4linux", ATTRS{idVendor}=="05a3", ATTRS{idProduct}=="9601", KERNELS=="1-2.1", SYMLINK+="video30"
# SUBSYSTEM=="video4linux", ATTRS{idVendor}=="05a3", ATTRS{idProduct}=="9601", KERNELS=="1-2.1", SYMLINK+="video30"

# Hand camera
SUBSYSTEM=="video4linux", ATTRS{idVendor}=="05a3", ATTRS{idProduct}=="9230", SYMLINK+="video40"
SUBSYSTEM=="video4linux", ATTRS{idVendor}=="05a3", ATTRS{idProduct}=="9230", KERNELS=="1-2.1", SYMLINK+="video40"
2 changes: 0 additions & 2 deletions rover-config/rover-config.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env bash
cp -r ./.motion/ /home/$USER
sudo cp ./50-rover-cameras.rules /etc/udev/rules.d/
sudo cp ./50-usb-hokuyo-lidar.rules /etc/udev/rules.d/

# Reloads udev rules instead of having to reboot
sudo udevadm control --reload-rules
2 changes: 1 addition & 1 deletion src/world_interface/real_world_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void openCamera(CameraID camID, const char* cameraPath) {
}

void setupCameras() {
// openCamera(Constants::AR_CAMERA_ID, Constants::AR_CAMERA_CONFIG_PATH);
openCamera(Constants::AR_CAMERA_ID, Constants::AR_CAMERA_CONFIG_PATH);
openCamera(Constants::HAND_CAMERA_ID, Constants::HAND_CAMERA_CONFIG_PATH);
}
} // namespace
Expand Down

0 comments on commit c39dbd4

Please sign in to comment.