Difference between revisions of "Robotics-2010"

From Earlham CS Department
Jump to navigation Jump to search
(Lab 6)
 
(46 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== NXT-Python Documentation ==
+
= Resources for CS282 - Robotics =  
Largely a work in-progress, please add/edit as you learn the details.
+
== Hardware ==
 +
* [[change-NXT-settings|How to change the name of your NXT]]
  
=== nxt.locator ===  
+
== Software Stack ==
The function of this module is to locate NXT brick(s). Returns an <code>nxt.bluesock.BlueSock</code> object for robots connected by Bluetooth and a <code>nxt.usbsock.USBSock</code> object for robot connected by USB, and throws <code>nxt.locator.BrickNotFoundError</code> if none can be found.
+
* [http://cs.earlham.edu/~charliep/courses/cs282/packages/ Software Packages (nxt-python, etc)]
 +
* [[nxt-python-iso|Ubuntu with Brad's Live ISO]]
 +
* [[nxt-python-osx|OSX]]
  
* Objects
+
== Python ==
** <code>nxt.bluesock.BlueSock</code> - The object returned by <code>find_one_brick()</code> when a brick is found on a Bluetooth connection.
+
* [[nxt-python-doc|NXT-Python Documentation]]
 +
* [[nxt-python-hints|Programming Hints]]
 +
* [[nxt-python-threads|Thread Notes]]
  
* Methods
+
== Sensor Notes ==
** <code>connect()</code> - Try to connect to the brick.
+
* [[bots-hitechnic-compass|HiTechnic Compass]]
** <code>close()</code> - Close connection to brick.
 
** <code>host</code> - Returns the address of the brick.
 
  
    generator object find_bricks
+
== Non-local Resources ==
 +
* Bluetooth - NXT [http://vikram.eggwall.com/computers/nxt-bluetooth-setup.html setup notes]
  
        The object returned by find_bricks(). Methods (incomplete):
+
= Lab 6 =
 
+
* [http://cs.earlham.edu/~charliep/courses/cs282/mapping.pdf The Official Assignment]
            next()
+
* [[robotics-lab6-tasks|Task Analysis - Original]]
 
+
* [[Robotics-lab6-newversion|Task Analysis - Second Go 'Round]]
                Find the next brick in the sequence. Returns the same thing as find_one_brick().
+
* [http://github.com/Sleemanmunk/Magnetic-Mapping Software Repository]
 
+
* [http://cs.earlham.edu/~carrick/courses/cs282/lab6/visualization Visualization]
Methods: (incomplete)
 
 
 
    find_one_brick(host=None, name=None) (incomplete)
 
 
 
 
 
    find_bricks(host=None, name=None)
 
 
 
        Use to find all the bricks in the area. Returns a generator object find_bricks.  
 
 
 
Example: import nxt.locator sock = nxt.locator.find_one_brick() brick = sock.connect() print brick.host brick.close()
 
 
 
== nxt.motor ==
 
 
 
== nxt.sensor ==
 

Latest revision as of 20:48, 15 April 2010