-- This information is BBN proprietary.
-- This information may be protected by patents or pending patents.
-- Copyright (c) 2000-2004 BBN Technologies.

BN-ROBOT-MIB DEFINITIONS ::= BEGIN
IMPORTS
    OBJECT-TYPE, NOTIFICATION-TYPE, MODULE-IDENTITY,
    Integer32, Opaque, enterprises
        FROM SNMPv2-SMI

    TEXTUAL-CONVENTION, DisplayString, TruthValue
	FROM SNMPv2-TC;

bbn	  	OBJECT IDENTIFIER ::= { enterprises 14 }
bbn-gw	OBJECT IDENTIFIER ::= { bbn 5 }

robot MODULE-IDENTITY
    LAST-UPDATED "200305160000Z"
    ORGANIZATION "BBN Technologies"
    CONTACT-INFO    
	 "
         BBN Technologies
         10 Moulton St
         Cambridge, MA 02138"
    DESCRIPTION
	"This file defines variables that pertain to mobile ad-hoc
	networks."
    ::= { bbn-gw 15 }

--
-- Enumerations 
--

RobotGoalType ::= INTEGER {
     none (1),
     stealth (2),
     lowEnergy (3),
     highReliability (4)
     }

RobotEnvironmentType ::= INTEGER {
     none (1),
     forest (2),
     desert (3),
     urban (4)
     }

RobotImportanceValue ::= INTEGER {
     none (1),
     low (2),
     medium (3),
     high (4),
     critical (5)
    }

ForwardTableNumber ::= INTEGER {
	minHops (1),
	minQuality (2),
	minDelay (3),
	minEnergy (4),
	minUtilization (4),
}

RobotType ::= INTEGER {
	  missionControl (1)
	  teamLeader (2),
	  worker (3),
	  drone  (4)
}

robot		OBJECT IDENTIFIER ::= { bbn-gw 15 }

--
-- GOAL EXPRESSION
--

goal		OBJECT IDENTIFIER ::= { robot 1 }

primaryGoal OBJECT-TYPE
      SYNTAX	RobotGoalType
      ACCESS	read-write
      STATUS	current
      DESCRIPTION
	"Primary goal which indicates mode of operation of the robot."
    ::= { goal 1 }

secondaryGoal OBJECT-TYPE
      SYNTAX	RobotGoalType
      ACCESS	read-write
      STATUS	current
      DESCRIPTION
	"Secondary goal of robot."
    ::= { goal 2 }

environment OBJECT-TYPE
      SYNTAX	RobotEnvironmentType
      ACCESS	read-write
      STATUS	current
      DESCRIPTION
	"Physical characteristics of operating environment."
    ::= { goal 3 }


--
-- SYSTEM ADVICE
--
-- Typically system advice will be used as set-only since it is expected
-- to be updated by motion control.  However, its listed as read-write here
-- for debugging purposes.

--
sysAdvice	 OBJECT IDENTIFIER ::= { robot 2 }

currentMotion	 OBJECT-TYPE
      SYNTAX    OCTET STRING
      ACCESS    read-write
      STATUS    current
      DESCRIPTION
        "Specifies the node's current location and motion. This is a comma 
	delimited vector containing latitude, longitude, altitude, heading, 
	pitch, roll, velocity and how much more time this motion will be 
        occuring (duration in sec)."
    ::= { sysAdvice 1 }

futureMotion	 OBJECT-TYPE
      SYNTAX    OCTET STRING
      ACCESS    read-write
      STATUS    current
      DESCRIPTION
        "Specifies the node's future motion. This is a comma delimited 
	vector containing heading, pitch and roll, velocity, duration (in sec)
	and future start time."
    ::= { sysAdvice 2 }

futureTraffic	 OBJECT-TYPE
      SYNTAX    OCTET STRING
      ACCESS    read-write
      STATUS    current
      DESCRIPTION
        "Specifies a planned data transfer rate to a node. This is a comma
	delimited vector containing desination node, expected bandwidth needed
	(in Kbps) and future start time."
    ::= { sysAdvice 3 }

--
-- INFORMATION EXCHANGE
--

infoExchange	OBJECT IDENTIFIER ::= { robot 3 }

numNodes OBJECT-TYPE
      SYNTAX	INTEGER
      ACCESS	read-only
      STATUS	current
      DESCRIPTION
	"Number of known nodes participating in this partition."
    ::= { infoExchange 1 }

nbrList OBJECT-TYPE
      SYNTAX	OCTET STRING
      ACCESS	read-only
      STATUS	current
      DESCRIPTION
	"List of nodes who are neighbors to the local node.
	Format is a sequence of 2-byte shorts in network byte order."
    ::= { infoExchange 2 }

relativePosition OBJECT-TYPE
      SYNTAX	OCTET STRING
      ACCESS	read-write
      STATUS	current
      DESCRIPTION
        "Specifies the node's current relative location and orientation. 
	This is a space delimited vector containing x, y, z, heading, 
	pitch, roll and time relative position was provided. 
	All values are ascii represented 32-bit integers; x, y and z are 
	in millimeters, heading is in degrees 0-359 from starting x-axis
	that node is pointing, pitch is angle (in degrees -180 to 180) node is 
	leaning forward (negative) or backward (positive), roll is angle 
	(in degrees -180 to 180) left (negative) or right (positive) and 
	time is in seconds. Any unset or unused fields should be set to zero."
    ::= { infoExchange 3 }

gpsPosition OBJECT-TYPE
      SYNTAX	OCTET STRING
      ACCESS	read-write
      STATUS	current
      DESCRIPTION
        "Specifies the node's current gps location and orientation. 
	This is a space	delimited vector containing latitude, longitude, 
	altitude, heading, pitch, roll and time last gps position 
	was provided. Latitude and longitude are ascii represented floating 
	point numbers, and the rest are ascii represented integers. Latitude 
	is in degrees -90.0 to 90.0 from equator (North is positive, South 
	is negative), longitude is in degrees -180.0 to 180.0 (East is 
	positive, West is negative), altitude is height in meters above 
	sea level, heading is in degrees 0-359 from true north node is 
	pointing, pitch is angle (in degrees -180 to 180) node is leaning 
	forward (negative) or backward (positive), roll is angle (in degrees 
	-180 to 180) left (negative) or right (positive) and time is in 
	seconds. Any unset or unused fields should be set to zero."
    ::= { infoExchange 4 }

importance OBJECT-TYPE
      SYNTAX	RobotImportanceValue
      ACCESS	read-only
      STATUS	current
      DESCRIPTION
	"Indicates the importance of a node to network connectivity.
	 The highest rating (critical) is reserved to those node whose
         loss would fragment the network."
    ::= { infoExchange 5 }


pathCostTable OBJECT-TYPE
      SYNTAX	SEQUENCE OF PathCostEntry
      ACCESS	not-accessible
      STATUS	current
      DESCRIPTION
	"A list of path cost entries for each FwdTableNumber
	between src/dest nodes. An entry will appear in this table only if
	a route can be found using the the selected FwdTableNumber.
	A path cost of -1 indicates that no path exists	for that metric."
    ::= { infoExchange 6 }

pathCostEntry OBJECT-TYPE
      SYNTAX      PathCostEntry
      ACCESS	  not-accessible
      STATUS	  current
      INDEX       { srcNode, destNode, forwardTableNumber }
    ::= { pathCostTable 1 }

PathCostEntry ::=
	        SEQUENCE {
	          srcNode		INTEGER,
		  destNode		INTEGER,
		  forwardTableNumber	INTEGER,
		  hops			INTEGER,
		  quality		INTEGER,
		  delay			INTEGER,
		  energy		INTEGER,
		  }

srcNode OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathCostEntry 1 }

destNode OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathCostEntry 2 }

forwardTableNumber OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathCostEntry 3 }

hops OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathCostEntry 4 }

quality OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathCostEntry 5 }

delay OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathCostEntry 6 }

energy OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathCostEntry 7 }

pathListTable OBJECT-TYPE
      SYNTAX	SEQUENCE OF PathListEntry
      ACCESS	not-accessible
      STATUS	current
      DESCRIPTION
	"A list of intermediate nodes between src/dest nodes."
    ::= { infoExchange 7 }

pathListEntry OBJECT-TYPE
      SYNTAX      PathListEntry
      ACCESS	  not-accessible
      STATUS	  current
      INDEX       { srcNode, destNode, forwardTableNumber }
    ::= { pathListTable 1 }

PathListEntry ::=
	      SEQUENCE {
	          srcNode		INTEGER,
		  destNode		INTEGER,
		  forwardTableNumber			INTEGER,
		  pathList		OCTET STRING,
		  }

srcNode OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathListEntry 1 }

destNode OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathListEntry 2 }

forwardTableNumber OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { pathListEntry 3 }

pathList OBJECT-TYPE
      SYNTAX    OCTET STRING
      ACCESS    read-only
      STATUS    current
      DESCRIPTION
	"List of intermediate nodes along path from src to dst for each FORWARDTABLENUMBER.
	Format is a sequence of 2-byte shorts in network byte order (as in nbr list)."
    ::= { pathListEntry 4 }

isReachableTable OBJECT-TYPE
      SYNTAX	SEQUENCE OF IsReachableEntry
      ACCESS	not-accessible
      STATUS	current
      DESCRIPTION
	"a table indicating whether the network can deliver data to a node 
	for a given on type of service."
    ::= { infoExchange 8 }

isReachableEntry OBJECT-TYPE
      SYNTAX      IsReachableEntry
      ACCESS	  not-accessible
      STATUS	  current
      INDEX       { destNode, forwardTableNumber }
    ::= { isReachableTable 1 }

IsReachableEntry ::=
	      SEQUENCE {
		  destNode	INTEGER,
		  forwardTableNumber		INTEGER,
		  }

destNode OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { isReachableEntry 1 }

forwardTableNumber OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { isReachableEntry 2 }

linkQualityTable OBJECT-TYPE
      SYNTAX	SEQUENCE OF LinkQualityEntry
      ACCESS	not-accessible
      STATUS	current
      DESCRIPTION
	"the current quality of the link to a neighbor."
    ::= { infoExchange 9 }

linkQualityEntry OBJECT-TYPE
      SYNTAX      LinkQualityEntry
      ACCESS	  not-accessible
      STATUS	  current
      INDEX       { nbrNode }
    ::= { linkQualityTable 1 }

LinkQualityEntry ::=
	   SEQUENCE {
	        nbrNode		      INTEGER,
		linkQuality	      INTEGER,
		linkQualityConfidence INTEGER
		  }

nbrNode OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { linkQualityEntry 1 }

linkQuality OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { linkQualityEntry 2 }

linkQualityConfidence OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { linkQualityEntry 3 }

nbrCostTable OBJECT-TYPE
      SYNTAX	SEQUENCE OF NbrCostEntry
      ACCESS	not-accessible
      STATUS	current
      DESCRIPTION
	"a list of nbr cost entries for each FORWARDTABLENUMBER between a node and 
	its neighbor."
    ::= { infoExchange 10 }

nbrCostEntry OBJECT-TYPE
      SYNTAX      NbrCostEntry
      ACCESS	  not-accessible
      STATUS	  current
      INDEX       { node, nbrNode, forwardTableNumber }
    ::= { nbrCostTable 1 }

nbrCostEntry ::=
	      SEQUENCE {
	          node			INTEGER,
		  nbrNode		INTEGER,
		  forwardTableNumber			INTEGER,
		  nbrCost		INTEGER,
		  }

node OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { nbrCostEntry 1 }

nbrNode OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { nbrCostEntry 2 }

forwardTableNumber OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { nbrCostEntry 3 }

nbrCost OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { nbrCostEntry 4 }

nodePositionTable OBJECT-TYPE
      SYNTAX	SEQUENCE OF NodePositionEntry
      ACCESS	not-accessible
      STATUS	current
      DESCRIPTION
	"a list of positions for all known nodes in the network"
    ::= { infoExchange 11 }

nodePositionEntry OBJECT-TYPE
      SYNTAX      NodePositionEntry
      ACCESS	  not-accessible
      STATUS	  current
      INDEX       { nodeId }
    ::= { nodePositionTable 1 }

NodePositionEntry ::=
	      SEQUENCE {
	          nodeId		INTEGER,
	          nodeRelativePosition	OCTET STRING,
	          nodeGpsPosition	OCTET STRING,
		  nodePositionAge       INTEGER,
		  }

nodeId OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { nodePositionEntry 1 }

nodeRelativePosition OBJECT-TYPE
      SYNTAX	OCTET STRING
      ACCESS	read-only
      STATUS	current
      DESCRIPTION
        "Specifies the node's current relative location and orientation. 
	This is a space delimited vector containing x, y, z, heading, 
	pitch, roll and time last relative position was provided. 
	All values are ascii represented 32-bit integers; x, y and z are 
	in millimeters, heading is in degrees 0-359 from true north node 
	is pointing, pitch is angle (in degrees -180 to 180) node is 
	leaning forward (negative) or backward (positive), roll is angle 
	(in degrees -180 to 180) left (negative) or right (positive) and 
	time is in seconds. Any unset or unused fields should be set to 
	zero."

    ::= { nodePositionEntry 2 }

nodeGpsPosition OBJECT-TYPE
      SYNTAX	OCTET STRING
      ACCESS	read-only
      STATUS	current
      DESCRIPTION
        "Specifies the node's current gps location and orientation. 
	This is a space	delimited vector containing latitude, longitude, 
	altitude, heading, pitch, roll and time latest gps position 
	was provided. Latitude and longitude are ascii represented floating 
	point numbers, and the rest are ascii represented integers. Latitude 
	is in degrees -90.0 to 90.0 from equator (North is positive, South 
	is negative), longitude is in degrees -180.0 to 180.0 (East is 
	positive, West is negative), altitude is height in meters above 
	sea level, heading is in degrees 0-359 from true north node is 
	pointing, pitch is angle (in degrees -180 to 180) node is leaning 
	forward (negative) or backward (positive), roll is angle (in degrees 
	-180 to 180) left (negative) or right (positive) and time is in 
	seconds. Any unset or unused fields should be set to zero."
    ::= { nodePositionEntry 3 }

nodePositionAge OBJECT-TYPE
      SYNTAX	INTEGER
      ACCESS	read-only
      STATUS	current
      DESCRIPTION
        "The time in seconds since the corresponding node's GPS and  
	relative position has been updated."

    ::= { nodePositionEntry 4 }

--
-- NETWORK EVALUATION
--

networkEvaluation		OBJECT IDENTIFIER ::= { robot 4 }

--
-- CONFIGURATION
--
configuration		OBJECT IDENTIFIER ::= { robot 5 }

tosForwardTableMap OBJECT-TYPE
      SYNTAX	SEQUENCE OF TosForwardTableMapEntry
      ACCESS	not-accessible
      STATUS	current
      DESCRIPTION
	"This table defines that mapping of IP TOS values into a
      corresponding forwarding table used by routing when calculating routes.
      E.g., TOS value of 2 might map to minQuality, implying that packets with
      this TOS value set, will follow a route that minimizes energy
      used. There should be an entry for every TOS value that is 
	expected to be used by packets."
    ::= { configuration 1 }

tosForwardTableMapEntry OBJECT-TYPE
      SYNTAX      TosForwardTableMapEntry
      ACCESS	  not-accessible
      STATUS	  current
      INDEX       { tos }
    ::= { tosForwardTableMap 1 }

TosForwardTableMapEntry ::=
	      SEQUENCE {
	        tos			INTEGER,
		forwardTableNumber	INTEGER,
		  }

tos OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { tosForwardTableMapEntry 1 }

forwardTableNumber OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { tosForwardTableMapEntry 2 }

nodeIpMap OBJECT-TYPE
      SYNTAX	SEQUENCE OF NodeIpMapEntry
      ACCESS	not-accessible
      STATUS	current
      DESCRIPTION
	"This table defines the mapping from node id (number) to IP Address for each 
	node in the robot network."
    ::= { configuration 2 }

nodeIpMapEntry OBJECT-TYPE
      SYNTAX      NodeIpMapEntry
      ACCESS	  not-accessible
      STATUS	  current
      INDEX       { node }
    ::= { nodeIpMap 1 }

NodeIpMapEntry ::=
	      SEQUENCE {
	        node		INTEGER,
		ipAddress	IpAddress,
		  }

node OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS    read-only
      STATUS    current
    ::= { nodeIpMapEntry 1 }

ipAddress OBJECT-TYPE
      SYNTAX    IpAddress
      ACCESS    read-only
      STATUS    current
    ::= { nodeIpMapEntry 2 }

robotType OBJECT-TYPE
      SYNTAX    RobotType
      ACCESS    read-only
      STATUS    current
    ::= { configuration 3 }

selfNode OBJECT-TYPE
      SYNTAX    INTEGER
      ACCESS	read-only
      STATUS	current
      DESCRIPTION
      "The node number for the local node."
    ::= { configuration 4 }
	 
END
