Coder Social home page Coder Social logo

2u121o / robot_model Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 173 KB

It containis a 2D simulation environment for a unicycle robot that can navigate a map using keyboard controls. The map is hand-drawn in black and white color, exported as a PNG image, and integrated into the simulation.

CMake 9.63% C++ 90.37%
lidar mobile-robot robot simulation

robot_model's Introduction

robot_model

Simple unicycle robot model, drawn on a 2D map that can be drawn bz hand in B/W color, exported as png and loaded in the model. The robot can be moved inside the map using the keyboard arrows. When the robot collide with an edge it just stop. To make the model more realistic a random noise has been implemented on the kinematic model as well as in the observation model. The observations consist in a range measurement with the nearest point to the robot, if this point is in the range of the sensor, and the bearing.

To use the robot model clone the repository and follow these steps:

cd robot_model/build
cmake ..
make 
./robot_model

this last command launches the 2D map and the robot as follow

mobile_robot_model_lidar

where the thick edges represent the walls, that the robot can not cross. The robot body is represented by the circle and the orientation wrt the x-axis by the black line inside the robot. Instead the light blu line represent the range measurement with the closest point.

This robot model can be easily implemented as an external library, see the main.cpp as an example.

robot_model's People

Contributors

2u121o avatar

Stargazers

 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.