No commit message authored by David St-Onge's avatar David St-Onge
No commit message
...@@ -14,7 +14,13 @@ sudo apt-get install nano bash-completion command-not-found g++ build-essential ...@@ -14,7 +14,13 @@ sudo apt-get install nano bash-completion command-not-found g++ build-essential
sudo apt-get install --no-install-recommends libboost-all-dev sudo apt-get install --no-install-recommends libboost-all-dev
``` ```
4- Create a catkin workspace, initialize it and clone the DJI repo: 4- copy at the end ubuntu user .bashrc script:
```
source /opt/ros/indigo/setup.bash
source ~/ROS_WS/devel/setup.bash
```
5- Create a catkin workspace, initialize it and clone the DJI repo:
``` ```
mkdir -p ~/ROS_WS/src mkdir -p ~/ROS_WS/src
cd ~/ROS_WS/src cd ~/ROS_WS/src
...@@ -25,7 +31,7 @@ git clone https://github.com/dji-sdk/Guidance-SDK-ROS.git . ...@@ -25,7 +31,7 @@ git clone https://github.com/dji-sdk/Guidance-SDK-ROS.git .
rm ~/ROS_WS/src/dji_sdk_read_cam/CATKIN_IGNORE rm ~/ROS_WS/src/dji_sdk_read_cam/CATKIN_IGNORE
``` ```
5- To compile on the manifold you need to extend the swap partition: 6- To compile on the manifold you need to extend the swap partition:
``` ```
free free
sudo dd if=/dev/zero of=/var/swap.img bs=1k count=2048k sudo dd if=/dev/zero of=/var/swap.img bs=1k count=2048k
...@@ -34,13 +40,13 @@ sudo swapon /var/swap.img ...@@ -34,13 +40,13 @@ sudo swapon /var/swap.img
free free
``` ```
6- You should now be able to compile: 7- You should now be able to compile:
``` ```
cd ~/ROS_WS cd ~/ROS_WS
catkin_make catkin_make
``` ```
7- To activate the SDK follow the steps there: https://developer.dji.com/onboard-sdk/documentation/quick-start/index.html using the application ID: 8- To activate the SDK follow the steps there: https://developer.dji.com/onboard-sdk/documentation/quick-start/index.html using the application ID:
``` ```
SDK Type Onboard SDK SDK Type Onboard SDK
APP Name MistLabBuzz APP Name MistLabBuzz
...@@ -55,14 +61,14 @@ sudo sh -c 'echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"fff0\", ATTR{idProduct}= ...@@ -55,14 +61,14 @@ sudo sh -c 'echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"fff0\", ATTR{idProduct}=
sudo sh -c 'echo "KERNEL==\"ttyTHS*\", MODE=\"0666\"" > /etc/udev/rules.d/55-tegraserial.rules' sudo sh -c 'echo "KERNEL==\"ttyTHS*\", MODE=\"0666\"" > /etc/udev/rules.d/55-tegraserial.rules'
``` ```
8- To get the video stream in ROS msg (and to broadcast to the DJIGO app): 9- To get the video stream in ROS msg (and to broadcast to the DJIGO app):
``` ```
sudo -s sudo -s
roslaunch dji_sdk_read_cam manifold_cam.launch roslaunch dji_sdk_read_cam manifold_cam.launch
``` ```
rqt can now be used onboard to visualize `/dji_sdk/image_raw` with settings in `~/ROS_WS/src/dji_sdk_read_cam/launch/manifold_cam.launch` . rqt can now be used onboard to visualize `/dji_sdk/image_raw` with settings in `~/ROS_WS/src/dji_sdk_read_cam/launch/manifold_cam.launch` .
9- To launch automatically the nodes at boot, ensure the user ubuntu preference is autologin and get robot_startup (from Clearpath Robotics): 10- To launch automatically the nodes at boot, ensure the user ubuntu preference is autologin and get robot_startup (from Clearpath Robotics):
``` ```
cd ~/ROS_WS/src cd ~/ROS_WS/src
git clone https://github.com/clearpathrobotics/robot_upstart.git git clone https://github.com/clearpathrobotics/robot_upstart.git
... ...
......