Giter Site home page Giter Site logo

lafith / auv-simulator-unity Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 1.0 162.04 MB

Simulator for Autonomous Underwater Vehicle, developed using Unity3D

License: Other

C# 82.62% ShaderLab 14.24% HLSL 3.14%
auv-simulator rosbridge arenas underwater-robotics unity3d blender csharp simulation unity

auv-simulator-unity's Introduction

AUV-Simulator

A simulator used to test control algorithms written for an Autonomous Underwater Vehicle.

demo2

This simulator was developed as a part of my work in Team Tiburon, the Autonomous Underwater Vehicle team of NIT Rourkela. It is developed using Unity3D, written in C# and obstacles were modeled using Blender.

The simulator works by communicating with a control algorithm running on ROS through ROSBridgeLib.

The simulator receives individual thruster speed values from the control algorithm, which is then converted to the forces to be applied. It send simulated sensor data to the control algorithm as feedback. Camera images are sent to the control algorithm every frame. To ensure optimal communication frequency, images are encoded to JPEG before sending.

demo

Arenas:

Currently there are three arenas:

STEPS:

To use:

  • Start AUV Simulator.exe(in Windows) or AUV Simulator.x86_64(in Linux).
  • Then, run the control algorithm, set up a client connection to the simulator, and run its server using rosbridge at the ROS end.
  • The simulator provides simulated sensor values as feedback. A total of 8 floating point values are sent, with two digit decimal places, three digits before the decimal, and the sign. This is mentioned for easy decoding of the feedback. The eight values are: the orientation of the vehicle in the x, y, and z axes respectively, the acceleration of the vehicle in the x, y, and z axes respectively, the depth of the vehicle under water, and the forward velocity of the vehicle in its local frame.
  • To move around the arena:
    • Use WASD and Arrow keys for moving around.Hold down Left or Right Shift for a faster movment.Hold Left or Right Ctrl for a slower movment.
    • 'Q' for moving/climbing up and 'E' for moving/climbing down.
    • Hold R key and move mouse for rotation.

In the ROS end:

  • Install rosbridge:
foo@bar:~$ sudo apt-get install ros-<rosdistro>-rosbridge-server
  • Run the command:
roslaunch rosbridge_server rosbridge_websocket.launch

auv-simulator-unity's People

Contributors

aryaman-gupta avatar lafith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

aatishrana495

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.