ROBOTC.net forums
http://robotc.net/forums/

Mapping using ultrasonic sensor
http://robotc.net/forums/viewtopic.php?f=1&t=4679
Page 1 of 1

Author:  nish2824 [ Wed Jul 18, 2012 5:42 am ]
Post subject:  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 ?

Author:  Spiked3 [ Wed Jul 18, 2012 8:10 am ]
Post subject:  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.html

It 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.

Author:  DiMastero [ Wed Jul 18, 2012 11:33 am ]
Post subject:  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.

Author:  Spiked3 [ Wed Jul 18, 2012 2:59 pm ]
Post subject:  Re: Mapping using ultrasonic sensor

the link to the project source i mentioned above is working now; http://code.google.com/p/penemunxt/source/checkout

I 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.jpg
http://www.spiked3.com/pose.png

The hitech compass, will be replaced by a Mindsensor AbsoluteIMU when they are available.

http://www.mindsensors.com/index.php?mo ... tion=62:62

Author:  NeXT-Generation [ Wed Jul 18, 2012 3:13 pm ]
Post subject:  Re: Mapping using ultrasonic sensor

I think Miki is doing something similar to this. Anyone seen him lately?

Author:  Spiked3 [ Wed Jul 18, 2012 6:56 pm ]
Post subject:  Re: Mapping using ultrasonic sensor

http://www.youtube.com/watch?v=fsFy16JF ... e=youtu.be

Author:  mightor [ Thu Jul 19, 2012 1:01 am ]
Post subject:  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

Author:  nish2824 [ Thu Jul 19, 2012 1:26 pm ]
Post subject:  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.

Author:  vnguyen [ Fri Jul 20, 2012 4:25 pm ]
Post subject:  Re: Mapping using ultrasonic sensor

Spiked3 wrote:
I tried to attach some pics, but

"Sorry, the board attachment quota has been reached."


Can you try again and see if you still have an issue?

Author:  Spiked3 [ Fri Jul 20, 2012 5:11 pm ]
Post subject:  Re: Mapping using ultrasonic sensor

try again; seems to be good, thanks!

Attachments:
untitled.png
untitled.png [ 219.54 KiB | Viewed 8339 times ]
pose.png
pose.png [ 102.94 KiB | Viewed 8339 times ]

Author:  Spiked3 [ Fri Jul 20, 2012 5:15 pm ]
Post subject:  Re: Mapping using ultrasonic sensor

nish2824 wrote:
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.


Just an FYI; viewtopic.php?f=1&t=4484

could that be (part of) your problem?

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