ROBOTC.net forumshttp://robotc.net/forums/ Roomexplorer and mapping NXT-robothttp://robotc.net/forums/viewtopic.php?f=15&t=7468 Page 1 of 1

Author:  Sigtrygg [ Mon Dec 23, 2013 11:42 am ]
Post subject:  Roomexplorer and mapping NXT-robot

Hi community!
I would like to introduce my new project “Room explorer with mapping functions”.
The robot based upon a standard REM-Bot but in addition equipped with a hitechnic gyro, hitechnic compass sensor and an omni-wheel (look at the Pictures I will send when the server of RobotC will work again).
First the robot moves about 360° to calibrate the compass using the gyro (thank you to Xander for code!).
Then the robot moves its sonar-head to the right, to the left and in front position to get the distances according to its position. After doing this it turns around to the wall with the minimum distance and drives in front of it until sonar sensor detected a minimum sensor distance, e.g. 20cm. Then the robot turns parallel to the wall, moves his sonar-head to the right detecting the distance to the wall and drives counter clockwise parallel to the wall balancing distance. A mapping-task records the compass and odometry data every second and calculate the polar coordinates to cartesian coordinates (x,y). The coordinates are written as “map.txt”-file. So you can use Excel or an other programm to draw the path which the robot had moved. In addition to that you can follow the path at the NXT-LCD-screen. I had to choose a scale for it, so you have to suit the scale to your room size.
If the robots touch sensor detected an obstacle the robot moves back and turn left for 90 degrees and continuous his explorer-duty allways running counter clockwise with wall to the right.
How to expect the end of path doesn’t suit exactly to the beginning because of inaccuracies of compass and odometry measures.
Have fun to test my programm and let me know if you have some hints for me.
Do anybody have experience with a hitechnic accelerator-sensor to measure/calculate the distance by integrating? Is this method an alternative and more accurate as odometry data?

Merry chrsitmas!

Sigtrygg

Author:  Sigtrygg [ Sat Dec 28, 2013 5:16 am ]
Post subject:  Re: Roomexplorer and mapping NXT-robot

Here you can take a look at the construction of robot...
The upper sensor is the compass sensor.
Let me know, if anything doesn't work.

Bye,

Sigtrygg

 Attachments: File comment: Picture 2 CIMG3125.JPG [ 234.23 KiB | Viewed 31987 times ] File comment: Picture 1 CIMG3122.JPG [ 232.57 KiB | Viewed 31987 times ]

 Author: mightor [ Sat Dec 28, 2013 5:49 am ] Post subject: Re: Roomexplorer and mapping NXT-robot Hey there!This is a great project. Do you think you could make some screenshots of your Excel sheet/NXT screen so we can see what it looks like in action? I'd love to see a video of it.= Xander

Author:  Sigtrygg [ Sat Dec 28, 2013 12:54 pm ]
Post subject:  Re: Roomexplorer and mapping NXT-robot

Hello Xander!

Thank you for response.
At the first picture you can see the screenshot of datasheet made with Open Office. The second Picture is the LCD-screen of NXT.
The inaccuracy between start and end is about 22 cm. Maybe there is a method to reduce this?!

Bye,

Sigtrygg

 Attachments: File comment: Screenshot of data-sheet Screenshot open office.png [ 261.56 KiB | Viewed 31970 times ] File comment: LCD-Screenshot LCD-Screenshot.jpg [ 276.5 KiB | Viewed 31970 times ]

 Author: Ford Prefect [ Sat Dec 28, 2013 2:52 pm ] Post subject: Re: Roomexplorer and mapping NXT-robot could you pls make your photos smaller, e.g. 320x240 ? For the moment, I ain't see nothing yet ...

 Author: mightor [ Sat Dec 28, 2013 2:57 pm ] Post subject: Re: Roomexplorer and mapping NXT-robot Buy a bigger monitor The size you suggest is far too small to see anything in great detail. I am reading this in a non-full screen window on 1080p sized screen and it looks fine.= Xander

 Author: Ford Prefect [ Sat Dec 28, 2013 3:12 pm ] Post subject: Re: Roomexplorer and mapping NXT-robot haha, I already have 1920X1080but maybe 640x480 will do as well.

 Author: Sigtrygg [ Wed Jul 09, 2014 12:33 pm ] Post subject: Re: Roomexplorer and mapping NXT-robot Hello community!I have made a little video of the roomexplorer NXT robot, now. You can watch it at:https://www.youtube.com/watch?v=-ThYSIfo1aUBye,Sigtrygg

 Author: mightor [ Thu Jul 10, 2014 1:34 am ] Post subject: Re: Roomexplorer and mapping NXT-robot That is really awesome, nice job!= Xander

 Author: Sigtrygg [ Thu Jul 10, 2014 4:52 am ] Post subject: Re: Roomexplorer and mapping NXT-robot Thank you!I am glad, that you like it. There aren't many People who are able to evaluate such project in my surroundings

 Author: mightor [ Sat Jul 19, 2014 10:04 am ] Post subject: Re: Roomexplorer and mapping NXT-robot Your robot has been pimped out on the ROBOTC blog and MINDSTORMS group on Facebook = Xander

 Page 1 of 1 All times are UTC - 5 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Grouphttp://www.phpbb.com/