| Author |
Message |
|
nish2824
Rookie
Joined: Tue Jul 17, 2012 5:57 am Posts: 5
|
 Mapping using ultrasonic sensor
I am trying to implement Mapping (in legos NXT) using the ultrasonic sensor and I dont know how to display the map on my pc. Since I Just started programming I am not well with it. Can any one help ?
|
| Wed Jul 18, 2012 5:42 am |
|
 |
|
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 195
|
 Re: Mapping using ultrasonic sensor
I don't know of any simple examples, but here is a more complex one; http://penemunxt.blogspot.com/2009/12/updates.htmlIt uses Java and LeJOS. At the moment, I can't seem to get to the source, but I know I have before, so maybe it's just a temporary bug. If you do find something less complex, please tell about here.
_________________Mike aka Spiked3 http://www.spiked3.com
|
| Wed Jul 18, 2012 8:10 am |
|
 |
|
DiMastero
Expert
Joined: Wed Jun 30, 2010 7:15 am Posts: 179
|
 Re: Mapping using ultrasonic sensor
If you just started programming, this might not be something you should attempt right away, because it involves some pretty difficult things. Off the top of my head, you'd have to:
- Know the robot's position at all times to get an accurate map - Use the robot's position (x/y on a grid plus direction it's facing in) combined with the ultrasonic sensors to gather map data - Think of a format to store that data in - Use Bluetooth/ WiFi to get the data to your PC - Write a program on your PC to receive the data and display it
I'm not saying that it's impossible, but it is pretty difficult. But ff you do want to go on with it, can you tell us more about your project? Like what the robot looks like, what sort of areas you expect for the robot to map, what sensors you have available, etc.
_________________leonoverweel.com
|
| Wed Jul 18, 2012 11:33 am |
|
 |
|
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 195
|
 Re: Mapping using ultrasonic sensor
the link to the project source i mentioned above is working now; http://code.google.com/p/penemunxt/source/checkoutI am at the moment working on a tutorial project of the steps DiMastero mentioned, but it will be a while before its ready. Yes, it is pretty difficult  But i'm getting there. I tried to attach some pics, but "Sorry, the board attachment quota has been reached." so for now; http://www.spiked3.com/_NI35788.jpghttp://www.spiked3.com/pose.pngThe hitech compass, will be replaced by a Mindsensor AbsoluteIMU when they are available. http://www.mindsensors.com/index.php?mo ... tion=62:62
_________________Mike aka Spiked3 http://www.spiked3.com
Last edited by Spiked3 on Wed Jul 18, 2012 3:16 pm, edited 1 time in total.
|
| Wed Jul 18, 2012 2:59 pm |
|
 |
|
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 528 Location: Totally not spying on Hassenplug to see what he has for the Brickworld Chicago 2013 sumo contest.
|
 Re: Mapping using ultrasonic sensor
I think Miki is doing something similar to this. Anyone seen him lately?
_________________A.K.A. inxt-generation Self-proclaimed genius, and future world dominator. My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor Bow down to Nikola Tesla, King of the Geek Gods.
|
| Wed Jul 18, 2012 3:13 pm |
|
 |
|
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 195
|
 Re: Mapping using ultrasonic sensor
_________________Mike aka Spiked3 http://www.spiked3.com
|
| Wed Jul 18, 2012 6:56 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2906 Location: Rotterdam, The Netherlands
|
 Re: Mapping using ultrasonic sensor
Spiked, can you drop a note to support@robotc.net regarding the quota? I can't fix that but they can. - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Thu Jul 19, 2012 1:01 am |
|
 |
|
nish2824
Rookie
Joined: Tue Jul 17, 2012 5:57 am Posts: 5
|
 Re: Mapping using ultrasonic sensor
The robot is Pretty simple with a fixed ultrasonic sensor and two wheels fixed. At the moment What I'm trying is just display a map or trajectory on the screen that the robot is traversing. I tried saving the values of sensors in an array and then accessing it. The issue i faced is array is not getting working for some reason. and I dont know how to display the array as well.
|
| Thu Jul 19, 2012 1:26 pm |
|
 |
|
vnguyen
Site Admin
Joined: Wed Jan 24, 2007 10:44 am Posts: 421 Location: Pittsburgh, PA
|
 Re: Mapping using ultrasonic sensor
Can you try again and see if you still have an issue?
_________________Vu Nguyen Software Training Development Team | WebmasterNeed more support? Use the ROBOTC Ticketing systemRobotc.net| Robomatter Store | Robotics Academy
|
| Fri Jul 20, 2012 4:25 pm |
|
 |
|
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 195
|
 Re: Mapping using ultrasonic sensor
try again; seems to be good, thanks!
_________________Mike aka Spiked3 http://www.spiked3.com
|
| Fri Jul 20, 2012 5:11 pm |
|
 |
|
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 195
|
 Re: Mapping using ultrasonic sensor
Just an FYI; viewtopic.php?f=1&t=4484could that be (part of) your problem?
_________________Mike aka Spiked3 http://www.spiked3.com
|
| Fri Jul 20, 2012 5:15 pm |
|
|