Wed, Feb 16, 22, setup mavros and px4
This is a draft, the content is not complete and of poor quality!

MAVROS와 PX4 설치

이번에는 mavros와 px4의 설치에 대해서 살펴보겠습니다. 임재영님이 만들어놓으신 gitpage를 참조하시면 좋을 것 같습니다. https://github.com/Jaeyoung-Lim/modudculab_ros

  1. gazebo_ros_pkgs설치 terminal창을 키고
sudo apt-get install ros-indigo-gazebo6-ros-pkgs

을 입력해주시면 설치가 됩니다.

  1. MAVROS 설치 우선 apt-get을 업데이트 시켜줍니다.
sudo apt-get update

그리고 MAVROS를 설치해줍니다

sudo apt-get install ros-indigo-mavros ros-indigo-mavros-extras

위 문장을 터미널 창에 입력하면 설치가 됩니다.

  1. PX4 설치 이제 Pixhawk의 firmware인 PX4를 설치해줍니다
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
sudo apt-get update
sudo apt-get install python-argparse git-core wget zip \
          python-empy qtcreator cmake build-essential genromfs -y
simulation tools

sudo apt-get install ant protobuf-compiler libeigen3-dev libopencv-dev openjdk-8-jdk openjdk-8-jre clang-3.5 lldb-3.5 -y

이 명령은 에러가 많이 발생합니다. 이 부분에서 에러가 발생하는 것은 openjdko-8-jdk, openjdk-8-jre이 설치되지 않기 때문입니다. 그래서 이 두 개 빼고 나머지 를 설치해주시고 두 개는 따로 설치해주도록 했습니다.

sudo apt-get install ant protobuf-compiler libeigen3-dev libopencv-dev clang-3.5 lldb-3.5 -y

openjdko-8-jdk, openjdk-8-jre가 설치가 되지 않는 이유는 Ubuntu14.04에서 호환되는 패키지가 아니기 때문입니다. 검색해본 결과 Ubuntu14.04에서는 7버전까지 지원이 되어서 아래와 같이 바꿔서 명령을 주게 되면 Java가 설치가 됩니다.

sudo apt-get install openjdk-7-jdk openjdk-7-jre

혹은 다음과 같은 방법으로 Java 8을 설치할 수 있습니다. http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/# 위 페이지에 따라서 다른 방법으로 자바를 설치했습니다.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

하지만 저는 마지막 줄이 실행이 안되어서 다음 문장으로 대체했습니다.

sudo apt-get install oracle-java8-set-default

또한 다음과 같은 명령어로 설치가 된 자바의 버전을 확인할 수 있습니다.

java -version
cd ~/catkin_ws/src
git clone https://github.com/PX4/Firmware.git
cd Firmware
git submodule update --init --recursive

이렇게 차례대로 실행해주시면 설치가 완료됩니다

  1. Iris drone gazebo test PX4가 설치가 되었다면 PX4안의 iris drone의 model이 들어있고 그 model을 gazebo로 실행시켜봅니다. gazebo안에 iris drone이 보이면 됩니다.
cd ~/catkin_ws/src/Firmware
make posix_sitl_default gazebo

터미널 창에서는 많은 줄들이 지나가고 마지막으로 이렇게 되면서 gazebo가 실행됩니다

한 번 힘을 가해보았습니다. Simulator의 테스트라고 보시며 될 것 같습니다.

여기까지 Mavros와 PX4의 설치 그리고 gazebo의 test까지 살펴보았습니다.

The following wiki, pages and posts are tagged with

TitleTypeExcerpt
gcs and cloud post Mon, Jan 31, 22, sample4 from sass2 product sample4
overview and initial powerup post Mon, Jan 31, 22, sample1.md of sass2 product2_sample files The most advanced hardware and software ecosystem for enterprise drones
smartAP post Mon, Jan 31, 22, sample5 from sass2 product2 sample5
smartAPLink and faq post Mon, Jan 31, 22, sample3 from sass2 product2 sample3
telemetry and advanced software post Mon, Jan 31, 22, sample2.md of sass2 product2 sample2 file
px4 docker image for jvsim simulation post 목, 2월 10, 22, docker image implmentation for docker px4 simuation
qtcreator wiki from drone guide dev-setup post 화, 2월 15, 22, planning phase research for dashboard elements using
offboard control using pixhawk raspi mavros post Wed, Feb 16, 22, hitl setup and configuraiton using pixhawk raspi mavros and px4
setup gazebo for simulation post Wed, Feb 16, 22, pixhawk ros gazebo gcs simulation
setup mavros and px4 post Wed, Feb 16, 22, setup mavros and px4
testing sitl drone post Wed, Feb 16, 22, process to launch sitl drone
ros and px4 architecture and data flow post Wed, Feb 16, 22, examine how data flows for user interface and drone control
setup ros indigo with tutlesim post Wed, Feb 16, 22, pixhawk gcs simulation series 2 with ros indigo
connecting raspi to matek f406 wing post Fri, Feb 18, 22, hardware setup with raspi 4 with matek f406 wing
px4 simulation for gazebo post Fri, Feb 18, 22, simulation instruciton from px4
Let's roll and conquer! post Monday, Third week with jdlab and first week probably for actual work
brainstorming session prior to setting out on gcs development post Mon, Feb 21, 22, pool resources and ideas into one single gcs you can develop
overview of epp and eps for airframes post Tue, Feb 22, 22, research before business call to manufactueres
connecting rpi to gcs with the use of uavmatrix on uavcast pro post Mon, Feb 28, 22, supported raspi board pinout maps and setup guide
creating custom mission points for fixed wings post Fri, Mar 18, 22, p-turn or turnaround insertion to the mission raw data for exit and entry for p-turnaround and side/front-lap coverage creation that willmod...
gStreamer vs qtAv post Wed, Mar 30, 22, qt movie qmovie phonon video player
realtime georeferencing plus imu overlay post Tue, Apr 05, 22, how to add vehicle status sensor data to georeferencing
rtk reach m2 receiver documentation post Wed, Apr 06, 22, rtk reach receiver wifi 5g lte
avionics on airfoil and frames post Thu, Apr 07, 22, airfoil materials, designs and innovations in the avionics
using openTX on radiomaster TX16s post Sun, Apr 10, 22, rc reciever transmitter opentx radiomaster configuration simulation
adding GPS and IMU data to photos post flight post Mon, Apr 11, 22, perform post processing of gps/imu data or develop camera firmware lib to infuse IMU from fc to exif metadata
BMU BMC BMS battery management post Thu, Apr 14, 22, to check the usage and health of batteries at all phases of flight cycle
viewpro custom pwm post Thu, Apr 14, 22, customize viewpro camera and gimball with mavlink
raspberrypi video streaming post Fri, Apr 22, 22, configure and setup raspi to enable streaming on mavlink and to advance to LTE transmission
lx network, airlink, gcs and data transmission on smart radio, rf mesh and quantum encryption post Tue, Apr 26, 22, all about setup and how it operates and managed