To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 18244
18243  |  18245
Subject: 
Re: Rover Programming
Newsgroups: 
lugnet.robotics
Date: 
Thu, 27 Jun 2002 13:04:03 GMT
Viewed: 
940 times
  
In lugnet.robotics, simon@jasmine.org.uk writes:

Essentially I think you need a 'home' location which the robot can
recognise (perhaps with a uniquely coloured floor tile), and which it
can regularly return to - i.e. drive to where you think home should be,
then drive around in a spiral till you find it, then reset your
co-ordinates.

While we're talking about programming rovers, could someone give me an
example of a 'spiral drive around behavior' in either RCX Code (v1.5) or
Gordon's Brick Programmer? Or how about code with two rotation sensors
attached to the differential-drive robot's wheels which drive straight
forward a certain # of clicks,clears the count, turns left 90 deg., clears
the count, goes forward a little bit more, clears again, then turns right 90
deg.?

My last attempt had the robot track pretty well straight for 100 clicks, but
when I tried to get it to reverse both wheels from 100 to zero, only one
wheel responded.

Can anybody help?

Regards,
--Electro--



Message has 1 Reply:
  Re: Rover Programming
 
(...) Try this (leJos): import josx.platform.rcx.*; import josx.util.*; import josx.robotics.Navigator; public class Test { public static void main (String[] arg) throws Exception { int size = 100; Navigator nav = new RotationNavigator( ( float)8.5, (...) (22 years ago, 27-Jun-02, to lugnet.robotics)

Message is in Reply To:
  Re: Rover Programming
 
(...) That's one solution, but it isn't essential. The other solution is to assume every square is empty until you've explored it. Obviously, if you get a 'goto' instruction before you've completely mapped the domain, then there's a possibility that (...) (22 years ago, 26-Jun-02, to lugnet.robotics)

24 Messages in This Thread:








Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
9 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR