Lego Two-Dimensional Array
Author |
Message |
MariosRobot
Novice
Joined: Wed Feb 20, 2013 2:46 am Posts: 64
|
 Lego Two-Dimensional Array
Dear, i want to make a Two-Dimensional Array for Lego, i want to make a path planning to avoid the obstacles and find the shorter path in a map
how to create this program?
thanks in advance best regards
|
Tue Apr 09, 2013 7:49 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Lego Two-Dimensional Array
I can help you with the array but you're on your own with the other thing. Good luck though! = Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Tue Apr 09, 2013 9:23 am |
|
 |
MariosRobot
Novice
Joined: Wed Feb 20, 2013 2:46 am Posts: 64
|
 Re: Lego Two-Dimensional Array
thanks bro, i will start the project with this
|
Tue Apr 09, 2013 12:06 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Lego Two-Dimensional Array
Good start but I think you're likely to need a bit more code to get the whole thing working  = Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Tue Apr 09, 2013 12:23 pm |
|
 |
MariosRobot
Novice
Joined: Wed Feb 20, 2013 2:46 am Posts: 64
|
 Re: Lego Two-Dimensional Array
i have one square 5X5, any square 25cm so the big square is 125X125 cm how to define this in a two dimensional array?
|
Fri May 10, 2013 7:56 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Lego Two-Dimensional Array
You could make obstacles to be -1  |  |  |  | Code: int maze[][] = {{10, 9, 8, 7, 8}, {11, 10, -1, 6, 7}, {-1, -1, -1, 5, 6}, {1, 2, -1, 4, 5} {0, 1, 2, 3, 4}}; |  |  |  |  |
= Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Fri May 10, 2013 8:37 am |
|
 |
MariosRobot
Novice
Joined: Wed Feb 20, 2013 2:46 am Posts: 64
|
 Re: Lego Two-Dimensional Array
thanks a lot bro
|
Fri May 10, 2013 9:07 am |
|
 |
MariosRobot
Novice
Joined: Wed Feb 20, 2013 2:46 am Posts: 64
|
 Re: Lego Two-Dimensional Array
another one question bro, how to define the start point and end point?
|
Fri May 10, 2013 5:06 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Lego Two-Dimensional Array
Well, that depends, do you know before you start the robot where the start and finish are? How does your robot distinguish the tiles? Or do you already know "I start here and I finish there"?
= Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Sat May 11, 2013 1:03 am |
|
 |
MariosRobot
Novice
Joined: Wed Feb 20, 2013 2:46 am Posts: 64
|
 Re: Lego Two-Dimensional Array
i want to give the start point and the end point and found the shorter path and avoid obstacles for found the obstacles i will use the sonar sensor but i don't know how to define start and end point
|
Sat May 11, 2013 3:17 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Lego Two-Dimensional Array
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Sat May 11, 2013 3:29 am |
|
 |
MariosRobot
Novice
Joined: Wed Feb 20, 2013 2:46 am Posts: 64
|
 Re: Lego Two-Dimensional Array
Dear, i want only to move from one point to other point, is it easy?
thanks in advance best regards
|
Mon Jun 03, 2013 5:51 pm |
|
 |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 Re: Lego Two-Dimensional Array
I didn't know that that was possible!!!! 
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Mon Jun 03, 2013 7:43 pm |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 Re: Lego Two-Dimensional Array
Just a quick interjection: I've read of the wavefront method multiple times; is it the only method? It's always mentioned as the most primitive, so surely there must be better ones 
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Mon Jun 03, 2013 9:34 pm |
|
 |
MariosRobot
Novice
Joined: Wed Feb 20, 2013 2:46 am Posts: 64
|
 Re: Lego Two-Dimensional Array
can you help me with robotC code? my instructor give me some code's parts and i implemented an algorithm but not working
|
Tue Jun 04, 2013 7:11 am |
|
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|