File size: 612 Bytes
312bc9f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ws_path=$(pwd)
echo $ws_path

cd $ws_path/camera_ws

file="$ws_path/camera_ws/devel/lib/astra_camera/list_devices_node"
if [[ -f "$file" ]]; then
    echo "list_devices_node exist."
else
    echo "list_devices_node no exist, please catkin_make astra_camera package.."
    exit 0
fi


file="/etc/udev/rules.d/56-orbbec-usb.rules"

if [[ -f "$file" ]]; then
    echo "camera-usb.rules exist."
else
    echo "camera-usb.rules not exist, please add camera-usb.rules."
    exit 0
fi


echo ""
echo "camera serial number: "
$ws_path/camera_ws/devel/lib/astra_camera/list_devices_node

echo "-----------------"
echo ""