# Mobile robot navigation project

**URL:** <https://discourse.processing.org/t/mobile-robot-navigation-project/29807>\
**Category:** Processing\
**Created:** [May 3, 2021, 10:17am UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807 "2021-05-03T10:17:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdult19](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@abdult19](https://discourse.processing.org/u/abdult19)\
**Post date:** [May 3, 2021, 10:17am UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/1 "2021-05-03T10:17:51Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

need help coding a robot in an unstructured environment, I have looked everywhere for this coding, it is for project which I need urgently, if anyone can help, please reply!!

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 3, 2021, 10:36am UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/2 "2021-05-03T10:36:21Z")

</div>

Is your robot a rover kind robot with 4 wheels

Do you use Arduino with motor shield?

Do you have two obstacle sensors in front?

---

<div class="post-metadata">

**Author:** ![abdult19](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@abdult19](https://discourse.processing.org/u/abdult19)\
**Post date:** [May 3, 2021, 10:45am UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/3 "2021-05-03T10:45:11Z")

</div>

I just need it for simulation, I’m not using Arduino.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 3, 2021, 11:45am UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/4 "2021-05-03T11:45:59Z")

</div>

Yeah, but still: is it homework?

Do you have wheels?

What sensors do you want to have?

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [May 3, 2021, 12:06pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/5 "2021-05-03T12:06:21Z")

</div>

It’s always hard to help someone with a topic as general as making a robot…

The first step would be to decide what you actually want to do, precisely.

How do you want your robot to move? Will it be moved with the arrow keys? Will it be autonomous with some sensor? if yes how many? what kind of sensor?

What is the environment? Just some randomly placed rectangle as obstacles? A real image where you extract obstacles from?

Once you have the idea where you want to go, start simple. For example just start with a robot that can move. Then add one simple obstacle. Then add one sensor. and so on…

Once you have done something (with code) and if you are stuck, come back and we’ll help you. But right now, there is not much we can do.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 3, 2021, 3:15pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/6 "2021-05-03T15:15:38Z")

</div>

Is this homework? Is it 2D or 3D?

---

<div class="post-metadata">

**Author:** ![abdult19](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@abdult19](https://discourse.processing.org/u/abdult19)\
**Post date:** [May 3, 2021, 4:51pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/7 "2021-05-03T16:51:40Z")

</div>

move the robot with arrow keys, an unstructured environment, exactly with your examples is what I’m trying to build with processing but I’m stuck

---

<div class="post-metadata">

**Author:** ![abdult19](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@abdult19](https://discourse.processing.org/u/abdult19)\
**Post date:** [May 3, 2021, 4:52pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/8 "2021-05-03T16:52:17Z")

</div>

yes it is homework 2d

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 3, 2021, 4:55pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/9 "2021-05-03T16:55:40Z")

</div>

Okay, I would suggest this approach:

Your robot is a tank. It can go back and forward and turn turn on the spot but not go in curves or round (other than a tank)

It has Continuous tracks

And obstacle detection

Then you have a Turtle (LOGO) program

With 4 commands

Forward backward

Left right

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 3, 2021, 5:52pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/10 "2021-05-03T17:52:04Z")

</div>

> **[Tank Firing Range Game - OpenProcessing](https://openprocessing.org/sketch/55500)**
>
> How fast can you shoot all the targets?
> The tank is controlled through the keyboard and the instructions are on screen.
> 
> Requires the 'Sprites' library available from www.lagers.org.uk

---

<div class="post-metadata">

**Author:** ![abdult19](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@abdult19](https://discourse.processing.org/u/abdult19)\
**Post date:** [May 3, 2021, 7:58pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/11 "2021-05-03T19:58:13Z")

</div>

thats exactly what I need in an unstructured environment, is this on processing because I have never heard of it

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 3, 2021, 7:58pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/12 "2021-05-03T19:58:29Z")

</div>

> **[How to Control 2WD Robot Wirelessly Through Processing](https://create.arduino.cc/projecthub/ahmedibrrahim/how-to-control-2wd-robot-wirelessly-through-processing-0303f0)**
>
> Want to control you robot wirelessly through your laptop?! We're going to do that in this step by step tutorial with Arduino and Processing. By Ahmed Ibrahim Ahmed.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 3, 2021, 10:49pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807/13 "2021-05-03T22:49:17Z")

</div>

> [@abdult19](#):
>
> s this on processing because I have never heard of it

Do you mean the project on openprocessing? You can download the code there. You need a library maybe
