Location Based Augmented Reality Untuk Informasi Lokasi

advertisement
Location Based Augmented Reality Untuk Informasi
Lokasi Gedung Kampus III Universitas Muhammadiyah
Malang Menggunakan Platform Android
TUGAS AKHIR
Diajukan Untuk Memenuhi
Persyaratan Guna Meraih Gelar Sarjana Strata 1
Teknik Informatika Universitas Muhammadiyah Malang
Disusun Oleh :
Dimas Aji Pamungkas
07560120
JURUSAN INFORMATIKA
FAKULTAS TEKNIK
UNIVERSITAS MUHAMMADIYAH MALANG
2013
LEMBAR PENGESAHAN
Location Based Augmented Reality Untuk Informasi Lokasi Gedung Kampus
III Universitas Muhammadiyah Malang Menggunakan Platform Android
TUGAS AKHIR
Disusun Oleh :
DIMAS AJI PAMUNGKAS
07560120
Tugas akhir ini telah diuji dan dinyatakan lulus
Oleh tim penguji pada tanggal 23 Januari 2013
Menyetujui,
Penguji 1
Dosen Penguji 2
Yuda Munarko S.Kom, M.Sc
NIP. 108.0611.0442
Galih Wasis Wicaksono S.Kom
Mengetahui,
Ketua Jurusan Teknik Informatika
Eko Budi Cahyono, S.Kom, M.T
NIP : 108.9504.0330
KATA PENGANTAAR
Bismillahirrohmanirrohim
Alhamdulillah, puji syukur kehadirat Allah SWT karena atas limpahan rahmat,
nikmat, dan hidayah-Nya sehingga penulis diberi kemudahan untuk menyelesaikan
penyusunan skripsi yang berjudul “Location Based Augmented Reality Untuk Informasi
Lokasi Gedung Kampus III Universitas Muhammadiyah Malang Menggunakan
Platform Android”.
Sebagai prasyarat dalam menyelesaikan studi dan memperoleh gelar Sarjana
Strata 1 (S1) di Jurusan Teknik Informatika Fakultas Teknik Universitas Muhammadiyah
Malang. Penulis menyadari bahwa dalam penyusunan tugas akhir ini masih jauh dari
kesempurnaan dan kesempurnaan hanya milik Allah SWT Oleh karena itu diharapkan
saran yang sekiranya dapat membangun dalam pembuatan tugas akhir berikutnya.
Semoga Allah SWT. Senantiasa melimpahkan karunia dan hidayah-Nya kepada
kita semua. Amin
Malang, 4 Januari 2013
Penulis
DAFTAR ISI
LEMBAR PERSETUJUAN .................................................................................. i
LEMBAR PENGESAHAN .................................................................................. ii
LEMBAR PERNYATAAN ................................................................................ iii
LEMBAR PERSEMBAHAN .............................................................................. iv
ABSTRAKSI ....................................................................................................... v
ABSTRACT ....................................................................................................... vi
KATA PENGANTAR ....................................................................................... vii
DAFTAR ISI .................................................................................................... viii
DAFTAR GAMBAR .......................................................................................... xi
DAFTAR TABEL ............................................................................................. xii
BAB I : PENDAHULUAN
1.1. Latar Belakang Masalah ................................................................................ 1
1.2. Rumusan Masalah ......................................................................................... 3
1.3. Batasan Masalah ........................................................................................... 3
1.4. Tujuan Penelitian ......................................................................................... 3
1.5. Metode Penelitian ......................................................................................... 3
1. Kajian Pustaka .......................................................................................... 3
2. Pengumpulan Data .................................................................................... 4
3. Perencanaan Aplikasi ................................................................................ 4
3. Pembuatan Aplikasi ......................................................................................... 4
4. Penulisan Laporan ..................................................................................... 4
1.6. Sistematika Pembahasan ............................................................................... 4
BAB II : LANDASAN TEORI
2.1. GPS (Global Postitioneng System) ................................................................ 6
2.1.1 GPS Receiver .............................................................................................. 8
2.2. Location Based Service (LBS) .................................................................... 10
2.2.1. Sejarah LBS ............................................................................................. 10
2.3. JSON (Javascipt Object Notation) ............................................................... 11
2.3.1. Contoh Sintaks ......................................................................................... 11
2.4. Augmented Reality ..................................................................................... 12
2.4.1. Komponen AR ......................................................................................... 13
2.4.2. Location Based Augmented Reality .......................................................... 14
2.5. Perspective Projection ................................................................................. 14
2.5.1 Rumus Proyeksi dan pinhole camera model ............................................... 15
2.6. Android (Sistem Operasi) ............................................................................ 17
2.6.1. Arsitektur ................................................................................................. 18
2.6.2. Komponen Aplikasi.................................................................................. 21
2.6.3. Tipe Aplikasi Android .............................................................................. 24
2.6.4. Siklus Hidup Aplikasi Android ................................................................. 25
2.6.5. Sejarah Android ....................................................................................... 27
BAB III : ANALISIS DAN PERANCANGAN SISTEM
3.1. Analisa ....................................................................................................... 30
3.1.1. Analisa Sistem ......................................................................................... 30
3.1.2. Analisa Kebutuhan ................................................................................... 31
3.1.2.1. Framework ............................................................................................ 31
3.1.2.2. Permission............................................................................................. 32
3.1.2.3. Perhitungan Rumus Perspective Projection ............................................ 33
3.2. Perancangan Sistem .................................................................................... 35
3.2.1. Flowchart ................................................................................................. 35
3.2.2. UML (Unified Modelling Language)........................................................ 36
3.2.2.1. Use Case ............................................................................................... 37
3.2.2.2. Activity Diagram ................................................................................... 38
3.2.2.3. Sequence Diagram................................................................................. 40
3.2.2.4. Class Diagram ....................................................................................... 41
3.2.3. Desain Tabel ............................................................................................ 43
3.2.4. Desain Antarmuka .................................................................................... 43
BAB IV : IMPLEMENTASI DAN PENGUJIAN
4.1. Implementasi............................................................................................... 44
4.1.1. Implementasi Database ............................................................................. 44
4.1.2. Implementasi Web Service ....................................................................... 47
4.1.3. Implementasi Aplikasi .............................................................................. 48
4.1.3.1. Proses Deteksi Koordinat Menggunakan GPS ....................................... 48
4.1.3.2. Deteksi Orientasi Menggunakan Accelerometer dan Magnetometer....... 49
4.1.3.3. Pengambilan Data Koordinat POI Melalui Web Service ........................ 50
4.1.3.4. Parsing JSON ........................................................................................ 50
4.1.3.5. Penghitungan Rumus Proyeksi Perspektif .............................................. 52
4.2. Pengujian .................................................................................................... 56
4.2.1. Spesifikasi Handset Untuk Uji Coba ......................................................... 56
4.2.2. Pengujian Web Service............................................................................. 56
4.2.3. Pengujian Fungsional ............................................................................... 57
4.2.4. Pengujian Performa .................................................................................. 61
BAB V : PENUTUP
5.1. Kesimpulan ................................................................................................. 62
5.2. Saran .......................................................................................................... 62
DAFTAR PUSTAKA ....................................................................................... 63
DAFTAR GAMBAR
Gambar 2.1.
Segmentasi GPS .......................................................................... 6
Gambar 2.2.
Perlengkapan AR ......................................................................... 12
Gambar 2.3.
Operasi pembedahan dengan bantuan AR .................................... 13
Gambar 2.4.
VR-Border Guards, game berbasis AR ......................................... 13
Gambar 2.5.
Visualisasi sebuah cahaya oleh obyek. ......................................... 14
Gambar 2.6.
Pinhole camera model. ................................................................ 15
Gambar 2.7.
Image plane. ................................................................................ 16
Gambar 2.8.
Arsitektur Android. ...................................................................... 18
Gambar 2.9.
Siklus hidup aplikasi android....................................................... 26
Gambar 3.1.
Arsitektur sistem.......................................................................... 30
Gambar 3.2.
Flowchart Sistem ........................................................................ 36
Gambar 3.3.
Flowchart request koordinat GPS ................................................ 36
Gambar 3.4.
Use Case ..................................................................................... 37
Gambar 3.5.
Activity diagram (request posisi GPS).......................................... 38
Gambar 3.6.
Activity diagram (request data POI) ............................................. 39
Gambar 3.7.
Activity diagram (proses menampilkan info POI) ......................... 39
Gambar 3.8.
Sequence diagram (client request koordinat GPS)........................ 40
Gambar 3.9.
Sequence diagram (request data POI) .......................................... 40
Gambar 3.10.
Sequence diagram (menampilkan info POI) ................................. 41
Gambar 3.11.
Class diagram ............................................................................. 42
Gambar 3.12.
Desain antarmuka aplikasi ........................................................... 43
Gambar 4.1.
GPS Logger ................................................................................. 44
Gambar 4.2.
Hasil input database .................................................................... 47
Gambar 4.3.
Script php .................................................................................... 47
Gambar 4.4.
Hasil query web service ............................................................... 48
Gambar 4.5.
Hasil uji web service .................................................................... 57
Gambar 4.6.
Menu utama................................................................................. 58
Gambar 4.7.
Hasil redirect blog creator........................................................... 58
Gambar 4.8.
Hasil redirect website UMM ........................................................ 59
Gambar 4.9.
Tampilan aplikasi AR .................................................................. 59
DAFTAR TABEL
Tabel 3.1 :
Struktur table basis data .......................................................... 43
Tabel 4.1 :
Data koordinat POI ................................................................ 45
Tabel 4.2 :
Hasil uji waktu web service ..................................................... 57
Tabel 4.3 :
Perbandingan perhitungan Haversine dengan program ............ 61
Tabel 4.4 :
Hasil uji performa ................................................................... 61
DAFTAR PUSTAKA
[1]
NISWS.”Navstar GPS User Equipment Introduction”,September 1996.
[2]
Van Wyk, Carel.”Markerless Augmented Reality on Ubiquitous Mobile Device
with Integrated Sensors”.Stellenbosch University,2011.
[3]
Brunette, Ed.”Hello Android Introducing
Platform”,The Pragmatic Programmers.
[4]
Meier, Reto.”Professional
Programmer, 2009.
[5]
Gramlich, Nicolas.”Android Programming”,Andbook.Anddev.org.
[6]
Hashimi, Y, Sayed dan Komatineni, Satya. “Pro Android”, APress, 2009.
[7]
Paucher, Remi, Truk, Metthew. “Location Based Augmented Reality on Mobile
Android
2
Google’s
Application
Mobile Development
Development”,
Wrox
Phones”. University of California. Santa Barbara, 2010.
[8]
Feiner, Steven, MacIntyre, Blair, Hollerer, Tobias, Webster, Anthony. “A Touring
Machine: Protyeping 3D Mobile Augmented Reality Sistems for Exploring the
Urban Environment”. International Symposium on Wearable Computers (ISWC
97). Campbridge, MA, 13-14 October 1997.
[9]
Silva, R., Oliveira, J.c., Giraldi, G.A.”Introduction to Augmented Reality”.National
Laboratory for Scientific Computation. Brazil. 2003.
[10] Gabor.
2010.
Coneccting
to
MySQL
Database.
Hello
Android.
(Online).(http://www.helloandroid.com/tutorials/connecting-mysql-database,
diakses 31 oktober 2011).
[11] Google
Inc.
Obtaining
User
Location.
Android
Developers
(Online).
(http://developer.android.com/guide/topics/location/obtaining-user-location.html,
diakses 31 oktober 2011).
Download