Code Monkey home page Code Monkey logo

gps_based_trajectory_generation's Introduction

GPS based trajectory generation (Python3)

Overview

Generates a path for a series of points using latitude and longitude.
The path consists of straight lines and arcs.
A route can be generated from two or more waypoints.
The route is output as a series of points list of latitude and longitude. スクリーンショット 2022-06-02 203917

Program Description

gps_trajectory generation.py : The generated routes are displayed using matplotlib.
gps_trajectory generation_kml.py : Saves the generated route to a kml file. The saved kml file can be displayed in Google Earth.

Requirement

  • Python 3.7.
  • math
  • matplotlib.pyplot
  • numpy
  • pandas
  • sys
  • simplekml

How to use

Input variable

Set the following variables to values of your choice.

  1. r : Radius of arc path [m]
  2. vehicle_velocity : Interval of a series of points [m] ( Vehicle speed [m/s] )
  3. waypoint*_lat : Latitude of target waypoint [°]
  4. waypoint*_lon : Longitude of target waypoint [°]
    3.4.waypoint:The first is the initial waypoint of the robot. The last is the target waypoint. The coordinates between them specify the waypoint of the turn on the travel route.

Output variable

The following list is output.

  1. waypoint_list : Generated route (list of latitude and longitude) [°]
  2. waypoint_lat : Generated route (list of latitude) [°]
  3. waypoint_lat : Generated route (list of longitude) [°]

Reference

[Python]緯度経度から2地点間の距離と方位角を計算する
[Python] 始点の緯度経度と方位角と距離から、終点の緯度経度と方位角を求める

Author

Naoto Yamanaka

Licence

MIT

gps_based_trajectory_generation's People

Contributors

naotoyamanaka avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.