發表文章

Install ROS on ubuntu 16.04

1. Setup your sources.list and set up your keys  sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'  sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116  2. Installation  sudo apt-get update  sudo apt-get install ros-kinetic-desktop-full  3. Initialize rosdep  sudo rosdep init  rosdep update  4. Environment setup  echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc  source ~/.bashrc  5. Dependencies  sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential -------------------------------------------------------------------------------------------------------------------------- If errors occur like following status: http://archive.ubuntu.com/ubuntu/dists/trusty-security/main...

Getting Started with ODROID-XU4

圖片
1. Installing a new OS onto the memory card 2. Boot up the ODROID-XU4 (Be patient....) 3. Delete "lock" file located at /var/lib/apt/lists/ sudo rm -R /var/lib/apt/lists/lock 4. Update & Upgrade Reference: User manual (paper),  odroid-xu4-user-manual.pdf ,  https://wiki.odroid.com/odroid-xu4/odroid-xu4    5. Install Compute Library (version 18.08) Reference:  ComputeLibrary ,  https://www.cnx-software.com/2018/05/13/how-to-get-started-with-opencl-on-odroid-xu4-board-with-arm-mali-t628mp6-gpu/ Keypoint1: While setupping the vender ICD file, command should be: sudo sh -c 'echo "/usr/lib/arm-linux-gnueabihf/mali-egl/libOpenCL.so" > /etc/OpenCL/vendors/armocl.icd' Keypoint2: While building the sources, command should be: scons Werror=1 -j 2 debug=0 neon=1 opencl=1 embed_kernels=1 os=linux arch=armv7a build=native 6. Install OpenCV (The part of "BUILDING ON UBUNTU") Reference:  (1)  https://github.com/cesco345/Open...

Intel RTF with PX4FLOW

Reference:  INTEL AERO DRONE - ALTITUDE AND POSITION HOLD USING PX4FLOW Keypoints: 1. PX4FLOW calibration: (1) Install PX4 toolchain ex: sudo apt-get install gcc-arm-none-eabi & sudo apt-get install build-essential Reference: https://github.com/travisgoodspeed/md380tools/issues/103 (2) Clone the source git clone https://github.com/PX4/Flow cd flow  make all  make upload-usb (3) Connect PX4FLOW with PC using USB cable, update will finish automatically (4) Open QGroundControl (5) Focusing the lens (6) Set parameters ( BFLOW_F_THLD: 10, BFLOW_V_THLD: 7000) Reference:  https://docs.px4.io/en/sensor/px4flow.html ,  https://github.com/PX4/Flow ,  http://ardupilot.org/copter/docs/common-px4flow-overview.html Fly with altitude holding mode ! *Tools for flight Log Analysis:  pyFlightAnalysis, FlightPlot, ... (1) Get flight log file from /var/lib/mavlink-router/ (*.ulg for PX4 or *.bin for ArduPilot) (2) Ana...

Intel RTF calibration

1. Power on Intel RTF ( Do not change wifi setting ) 2. PC connect to wifi named: AERO -xxxxxx 3. Revise PC's IP address in qgc.conf file ( /etc/mavlink-router/config.d ) 4. Restart the router 5. Open QGroundControl and follow the calibration steps as tips cd /Downloads chmod +x ./QGroundControl.AppImage ./QGroundControl.AppImage

Keypoints while Installing ubuntu16.04 on msi

1. Turned off Fast Boot in UEFI (Press Delete button) 2. Replace "quiet splash" with nomodeset 3. Install nvidia driver sudo add-apt-repositorty ppa:graphics-drivers/ppa sudo app-get update sudo app-get install nvidia-387 Reference: (1)  https://askubuntu.com/questions/949496/installing-ubuntu-16-04-on-msi-ge72mvr-system-freezes-when-i-restart (2)  https://ubuntuforums.org/showthread.php?t=2389372 (3)  https://www.tecmint.com/install-nvidia-drivers-on-ubuntu/

Intel RTF auto flying using dronecore SDK

圖片
1. Installation (1) Install the dependencies (2) Clone the DronecodeSDK repository (3) Checkout the release/branch (4) Update the submodules: (5) Build the (debug) C++ library (6) System-wide Install make clean #REQUIRED! make default sudo make default install # sudo required to install files to system directories! # First installation only sudo ldconfig # update linker cache *Head files and library path: /usr/local Reference: https://sdk.dronecode.org/en/contributing/build.html 2. Building the Examples (1) cd /home/DronecodeSDK Ex: cd example/takeoff_and_land/ mkdir build && cd build cmake .. make 3. Build project in Nsight for simulation (1) Setting head files and library path (2) Copy source code of example: takeoff_and_land offboard_velocity to Main.cpp (3) Revise communication part:  connection_url = "udp://:14540"; (4) Setting up a simulator Ex: jMAVSim (pre-installation is needed: jMAVSim/Gazebo Simulation...

Transplant a project from nsight to SDx and execute on a Xilinx FPGA board

1. 使用reVISION (xfOpenCV library) 若要用Stereo vision sample, 需有ZCU 102 / ZCU 104. Reference: (1)  使用Xilinx SDSoc在Xilinx zcu102开发板上编程HelloWorld (2)  Xilinx SDSoc 加载opencv库 2. 自定義加速函式 Reference:  xilinx_embedded_vision_acceleration 3. 使用OpenCV library (待測試...) Reference: (1)  SDx+yocto+OpenCV3.1+FPGA (2)  想在SDSoC中用OpenCV搞事情?来,用Zybo-Z7传授你入门秘籍! 4. 於FPGA board 建構linux作業系統 Reference: (1)  CH01基于Ubuntu系统的ZYNQ-7000开发环境的搭建 (2)  CH02基于ZYNQ的嵌入式LINUX移植