Difference between revisions of "Robotics-2010"

From Earlham CS Department
Jump to navigation Jump to search
(New page: == NXT-Python Documentation == Largely a work in-progress, please add/edit as you learn the details. === nxt.locator === The function of this module is to locate NXT brick(s). Returns a...)
 
(Lab 6)
 
(47 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 nxt.bluesock.BlueSock object for robots connected by Bluetooth and a nxt.usbsock.USBSock object for robot connected by USB, and throws nxt.locator.BrickNotFoundError 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 - The object returned by find_one_brick() 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() - Close connection to brick.
 
** <code>host - 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 19:48, 15 April 2010