Difference between revisions of "Serial Communication Protocol"

From Lofaro Lab Wiki
Jump to: navigation, search
(Created page with "Metadata Format: User(Robot) sends message: “MD #B #F” MILES responds by sending contents of metadata file corresponding to building and floor specified line by line. Ends...")
 
Line 1: Line 1:
Metadata Format:
+
'''Metadata Format''':
User(Robot) sends message: “MD #B #F”
+
 
MILES responds by sending contents of metadata file corresponding to building and floor specified line by line. Ends the send with <END>
+
User(Robot) sends message: '''“MD #B #F”'''
 +
 
 +
MILES responds by sending contents of metadata file corresponding to building and floor specified line by line. Ends the send with '''<END>'''
 +
 
 
<code>
 
<code>
Ex:
+
'''Ex''':
Robot:
+
 
 +
'''Robot''':
 
MD 37 4
 
MD 37 4
MILES:
+
 
 +
'''MILES''':
 +
 
 
x: 1||y: 10||Location: Lofaro Labs||Description: The laboratory of Dr. Lofaro that his senior design students and other robotics students use.||
 
x: 1||y: 10||Location: Lofaro Labs||Description: The laboratory of Dr. Lofaro that his senior design students and other robotics students use.||
  
Line 14: Line 20:
 
</code>
 
</code>
  
Map
 
  
User(Robot) sends message “MAP #B #F”
+
'''Map'''
MILES responds by sending mao corresponding to building and floor specified.
+
 
 +
User(Robot) sends message '''“MAP #B #F”'''
 +
 
 +
MILES responds by sending map corresponding to the building and floor specified.
  
 
<code>
 
<code>
Ex:
+
'''Ex''':
Robot:
+
 
 +
'''Robot''':
 
MAP 37 4
 
MAP 37 4
MILES:
+
</code>
 +
 
 +
<code>
 +
'''MILES''':
 
Sends 2D map .pgm file
 
Sends 2D map .pgm file
 +
</code>
  
  
"Location Once:"
+
'''Location Once''':
 +
 
 +
User(Robot) sends message '''“LONCE”'''
  
User(Robot) sends message “LONCE”
 
 
MILES responds by sending the current location calculated by our Localization algorithm
 
MILES responds by sending the current location calculated by our Localization algorithm
Ex:
+
 
Robot:
+
<code>
 +
'''Ex''':
 +
 
 +
'''Robot''':
 
LONCE
 
LONCE
MILES:
+
 
 +
'''MILES''':
 
X: %f||Y: %f||z:%d||O:%f
 
X: %f||Y: %f||z:%d||O:%f
 
</code>
 
</code>
 +
  
 
HINT: O stands for Orientation
 
HINT: O stands for Orientation
  
Location Auto:
+
'''Location Auto''':
 +
 
 
User(Robot) sends message “LAUTO”
 
User(Robot) sends message “LAUTO”
MILES responds by sending the current location calculated by out localization alogrithm and continues to send at 5 Hz.
+
 
 +
MILES responds by sending the current location calculated by our localization algorithm and continues to send at 5 Hz.
 +
 
 
User(Robot) can send message “LSTOP” to stop MILES from sending messages
 
User(Robot) can send message “LSTOP” to stop MILES from sending messages
 +
 
--[[User:Brandhaw|Brandhaw]] ([[User talk:Brandhaw|talk]]) 17:43, 22 April 2015 (EDT)
 
--[[User:Brandhaw|Brandhaw]] ([[User talk:Brandhaw|talk]]) 17:43, 22 April 2015 (EDT)

Revision as of 17:56, 22 April 2015

Metadata Format:

User(Robot) sends message: “MD #B #F”

MILES responds by sending contents of metadata file corresponding to building and floor specified line by line. Ends the send with <END>

Ex:

Robot: MD 37 4

MILES:

x: 1||y: 10||Location: Lofaro Labs||Description: The laboratory of Dr. Lofaro that his senior design students and other robotics students use.||

x: 10||y: 1||Location: Elevator||Description: The center 4th floor elevator.||

x: 15||y: 15||Location: Room 4402||Description: This is Professor Someones Room.||


Map

User(Robot) sends message “MAP #B #F”

MILES responds by sending map corresponding to the building and floor specified.

Ex:

Robot: MAP 37 4

MILES: Sends 2D map .pgm file


Location Once:

User(Robot) sends message “LONCE”

MILES responds by sending the current location calculated by our Localization algorithm

Ex:

Robot: LONCE

MILES: X: %f||Y: %f||z:%d||O:%f


HINT: O stands for Orientation

Location Auto:

User(Robot) sends message “LAUTO”

MILES responds by sending the current location calculated by our localization algorithm and continues to send at 5 Hz.

User(Robot) can send message “LSTOP” to stop MILES from sending messages

--Brandhaw (talk) 17:43, 22 April 2015 (EDT)