Commit dd1159c3 authored by Timothy Stack's avatar Timothy Stack

Merge files inadvertently added to LINE_PATH_PLANNING branch

parent 9827f5cc
......@@ -71,5 +71,11 @@ install: all
$(INSTALL_PROGRAM) mtp_recv $(INSTALL_DIR)/opsdir/bin/mtp_recv
$(INSTALL_PROGRAM) mtp_dump $(INSTALL_DIR)/opsdir/bin/mtp_dump
control-install: all
-mkdir -p $(INSTALL_DIR)/bin
$(INSTALL_PROGRAM) mtp_send $(INSTALL_DIR)/bin/mtp_send
$(INSTALL_PROGRAM) mtp_recv $(INSTALL_DIR)/bin/mtp_recv
$(INSTALL_PROGRAM) mtp_dump $(INSTALL_DIR)/bin/mtp_dump
clean:
/bin/rm -f *.o *.a $(MTPPROGS) mtp_xdr.h mtp_xdr.c $(CLASSES)
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
package net.emulab;
import org.acplt.oncrpc.*;
import java.io.IOException;
public class box implements XdrAble {
public float x;
public float y;
public float width;
public float height;
public box() {
}
public box(XdrDecodingStream xdr)
throws OncRpcException, IOException {
xdrDecode(xdr);
}
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeFloat(x);
xdr.xdrEncodeFloat(y);
xdr.xdrEncodeFloat(width);
xdr.xdrEncodeFloat(height);
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
x = xdr.xdrDecodeFloat();
y = xdr.xdrDecodeFloat();
width = xdr.xdrDecodeFloat();
height = xdr.xdrDecodeFloat();
}
}
// End of box.java
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
package net.emulab;
import org.acplt.oncrpc.*;
import java.io.IOException;
public class camera_config implements XdrAble {
public String hostname;
public int port;
public float x;
public float y;
public float width;
public float height;
public camera_config() {
}
public camera_config(XdrDecodingStream xdr)
throws OncRpcException, IOException {
xdrDecode(xdr);
}
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeString(hostname);
xdr.xdrEncodeInt(port);
xdr.xdrEncodeFloat(x);
xdr.xdrEncodeFloat(y);
xdr.xdrEncodeFloat(width);
xdr.xdrEncodeFloat(height);
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
hostname = xdr.xdrDecodeString();
port = xdr.xdrDecodeInt();
x = xdr.xdrDecodeFloat();
y = xdr.xdrDecodeFloat();
width = xdr.xdrDecodeFloat();
height = xdr.xdrDecodeFloat();
}
}
// End of camera_config.java
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
package net.emulab;
import org.acplt.oncrpc.*;
import java.io.IOException;
public class contact_point implements XdrAble {
public float x;
public float y;
public contact_point() {
}
public contact_point(XdrDecodingStream xdr)
throws OncRpcException, IOException {
xdrDecode(xdr);
}
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeFloat(x);
xdr.xdrEncodeFloat(y);
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
x = xdr.xdrDecodeFloat();
y = xdr.xdrDecodeFloat();
}
}
// End of contact_point.java
......@@ -249,7 +249,6 @@ enum mtp_robot_type_t {
};
struct mtp_garcia_telemetry {
int robot_id;
float battery_level;
float battery_voltage;
int battery_misses;
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......@@ -9,8 +9,7 @@ import java.io.IOException;
public class mtp_config_rmc implements XdrAble {
public robot_config [] robots;
public box [] bounds;
public obstacle_config [] obstacles;
public global_bound box;
public mtp_config_rmc() {
}
......@@ -23,15 +22,13 @@ public class mtp_config_rmc implements XdrAble {
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
{ int $size = robots.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { robots[$idx].xdrEncode(xdr); } }
{ int $size = bounds.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { bounds[$idx].xdrEncode(xdr); } }
{ int $size = obstacles.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { obstacles[$idx].xdrEncode(xdr); } }
box.xdrEncode(xdr);
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
{ int $size = xdr.xdrDecodeInt(); robots = new robot_config[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { robots[$idx] = new robot_config(xdr); } }
{ int $size = xdr.xdrDecodeInt(); bounds = new box[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { bounds[$idx] = new box(xdr); } }
{ int $size = xdr.xdrDecodeInt(); obstacles = new obstacle_config[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { obstacles[$idx] = new obstacle_config(xdr); } }
box = new global_bound(xdr);
}
}
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......@@ -9,7 +9,6 @@ import java.io.IOException;
public class mtp_config_vmc implements XdrAble {
public robot_config [] robots;
public camera_config [] cameras;
public mtp_config_vmc() {
}
......@@ -22,13 +21,11 @@ public class mtp_config_vmc implements XdrAble {
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
{ int $size = robots.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { robots[$idx].xdrEncode(xdr); } }
{ int $size = cameras.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { cameras[$idx].xdrEncode(xdr); } }
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
{ int $size = xdr.xdrDecodeInt(); robots = new robot_config[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { robots[$idx] = new robot_config(xdr); } }
{ int $size = xdr.xdrDecodeInt(); cameras = new camera_config[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { cameras[$idx] = new camera_config(xdr); } }
}
}
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
package net.emulab;
import org.acplt.oncrpc.*;
import java.io.IOException;
public class mtp_contact_report implements XdrAble {
public int count;
public contact_point [] points;
public mtp_contact_report() {
}
public mtp_contact_report(XdrDecodingStream xdr)
throws OncRpcException, IOException {
xdrDecode(xdr);
}
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeInt(count);
{ int $size = 8; for ( int $idx = 0; $idx < $size; ++$idx ) { points[$idx].xdrEncode(xdr); } }
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
count = xdr.xdrDecodeInt();
{ int $size = 8; points = new contact_point[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { points[$idx] = new contact_point(xdr); } }
}
}
// End of mtp_contact_report.java
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......@@ -8,7 +8,6 @@ import org.acplt.oncrpc.*;
import java.io.IOException;
public class mtp_garcia_telemetry implements XdrAble {
public int robot_id;
public float battery_level;
public float battery_voltage;
public int battery_misses;
......@@ -37,7 +36,6 @@ public class mtp_garcia_telemetry implements XdrAble {
public int idle;
public int user_button;
public int user_led;
public int stall_contact;
public mtp_garcia_telemetry() {
}
......@@ -49,7 +47,6 @@ public class mtp_garcia_telemetry implements XdrAble {
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeInt(robot_id);
xdr.xdrEncodeFloat(battery_level);
xdr.xdrEncodeFloat(battery_voltage);
xdr.xdrEncodeInt(battery_misses);
......@@ -78,12 +75,10 @@ public class mtp_garcia_telemetry implements XdrAble {
xdr.xdrEncodeInt(idle);
xdr.xdrEncodeInt(user_button);
xdr.xdrEncodeInt(user_led);
xdr.xdrEncodeInt(stall_contact);
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
robot_id = xdr.xdrDecodeInt();
battery_level = xdr.xdrDecodeFloat();
battery_voltage = xdr.xdrDecodeFloat();
battery_misses = xdr.xdrDecodeInt();
......@@ -112,7 +107,6 @@ public class mtp_garcia_telemetry implements XdrAble {
idle = xdr.xdrDecodeInt();
user_button = xdr.xdrDecodeInt();
user_led = xdr.xdrDecodeInt();
stall_contact = xdr.xdrDecodeInt();
}
}
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......@@ -25,11 +25,7 @@ public interface mtp_opcode_t {
public static final int MTP_COMMAND_GOTO = 50;
public static final int MTP_COMMAND_STOP = 51;
public static final int MTP_TELEMETRY = 60;
public static final int MTP_WIGGLE_REQUEST = 70;
public static final int MTP_WIGGLE_STATUS = 71;
public static final int MTP_REQUEST_REPORT = 80;
public static final int MTP_CONTACT_REPORT = 81;
public static final int MTP_OPCODE_MAX = 81+1;
public static final int MTP_OPCODE_MAX = 60+1;
}
// End of mtp_opcode_t.java
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......@@ -22,10 +22,6 @@ public class mtp_payload implements XdrAble {
public mtp_command_goto command_goto;
public mtp_command_stop command_stop;
public mtp_telemetry telemetry;
public mtp_wiggle_request wiggle_request;
public mtp_wiggle_status wiggle_status;
public mtp_request_position request_report;
public mtp_contact_report contact_report;
public mtp_payload() {
}
......@@ -78,18 +74,6 @@ public class mtp_payload implements XdrAble {
case mtp_opcode_t.MTP_TELEMETRY:
telemetry.xdrEncode(xdr);
break;
case mtp_opcode_t.MTP_WIGGLE_REQUEST:
wiggle_request.xdrEncode(xdr);
break;
case mtp_opcode_t.MTP_WIGGLE_STATUS:
wiggle_status.xdrEncode(xdr);
break;
case mtp_opcode_t.MTP_REQUEST_REPORT:
request_report.xdrEncode(xdr);
break;
case mtp_opcode_t.MTP_CONTACT_REPORT:
contact_report.xdrEncode(xdr);
break;
}
}
......@@ -136,18 +120,6 @@ public class mtp_payload implements XdrAble {
case mtp_opcode_t.MTP_TELEMETRY:
telemetry = new mtp_telemetry(xdr);
break;
case mtp_opcode_t.MTP_WIGGLE_REQUEST:
wiggle_request = new mtp_wiggle_request(xdr);
break;
case mtp_opcode_t.MTP_WIGGLE_STATUS:
wiggle_status = new mtp_wiggle_status(xdr);
break;
case mtp_opcode_t.MTP_REQUEST_REPORT:
request_report = new mtp_request_position(xdr);
break;
case mtp_opcode_t.MTP_CONTACT_REPORT:
contact_report = new mtp_contact_report(xdr);
break;
}
}
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......@@ -17,8 +17,7 @@ public interface mtp_status_t {
public static final int MTP_POSITION_STATUS_MOVING = 2;
public static final int MTP_POSITION_STATUS_ERROR = 3;
public static final int MTP_POSITION_STATUS_COMPLETE = 4;
public static final int MTP_POSITION_STATUS_CONTACT = 5;
public static final int MTP_POSITION_STATUS_ABORTED = 6;
public static final int MTP_POSITION_STATUS_OBSTRUCTED = 5;
public static final int MTP_POSITION_STATUS_CYCLE_COMPLETE = 32;
}
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......@@ -11,7 +11,6 @@ public class mtp_update_position implements XdrAble {
public int robot_id;
public robot_position position;
public int status;
public int command_id;
public mtp_update_position() {
}
......@@ -26,7 +25,6 @@ public class mtp_update_position implements XdrAble {
xdr.xdrEncodeInt(robot_id);
position.xdrEncode(xdr);
xdr.xdrEncodeInt(status);
xdr.xdrEncodeInt(command_id);
}
public void xdrDecode(XdrDecodingStream xdr)
......@@ -34,7 +32,6 @@ public class mtp_update_position implements XdrAble {
robot_id = xdr.xdrDecodeInt();
position = new robot_position(xdr);
status = xdr.xdrDecodeInt();
command_id = xdr.xdrDecodeInt();
}
}
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
package net.emulab;
import org.acplt.oncrpc.*;
import java.io.IOException;
public class mtp_wiggle_request implements XdrAble {
public int robot_id;
public int wiggle_type;
public mtp_wiggle_request() {
}
public mtp_wiggle_request(XdrDecodingStream xdr)
throws OncRpcException, IOException {
xdrDecode(xdr);
}
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeInt(robot_id);
xdr.xdrEncodeInt(wiggle_type);
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
robot_id = xdr.xdrDecodeInt();
wiggle_type = xdr.xdrDecodeInt();
}
}
// End of mtp_wiggle_request.java
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
package net.emulab;
import org.acplt.oncrpc.*;
import java.io.IOException;
public class mtp_wiggle_status implements XdrAble {
public int robot_id;
public int status;
public mtp_wiggle_status() {
}
public mtp_wiggle_status(XdrDecodingStream xdr)
throws OncRpcException, IOException {
xdrDecode(xdr);
}
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeInt(robot_id);
xdr.xdrEncodeInt(status);
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
robot_id = xdr.xdrDecodeInt();
status = xdr.xdrDecodeInt();
}
}
// End of mtp_wiggle_status.java
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
package net.emulab;
import org.acplt.oncrpc.*;
import java.io.IOException;
/**
* Enumeration (collection of constants).
*/
public interface mtp_wiggle_t {
public static final int MTP_WIGGLE_START = 1;
public static final int MTP_WIGGLE_180_R = 10;
public static final int MTP_WIGGLE_180_R_L = 11;
public static final int MTP_WIGGLE_360_R = 12;
public static final int MTP_WIGGLE_360_R_L = 13;
}
// End of mtp_wiggle_t.java
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
package net.emulab;
import org.acplt.oncrpc.*;
import java.io.IOException;
public class obstacle_config implements XdrAble {
public int id;
public float xmin;
public float ymin;
public float zmin;
public float xmax;
public float ymax;
public float zmax;
public obstacle_config() {
}
public obstacle_config(XdrDecodingStream xdr)
throws OncRpcException, IOException {
xdrDecode(xdr);
}
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeInt(id);
xdr.xdrEncodeFloat(xmin);
xdr.xdrEncodeFloat(ymin);
xdr.xdrEncodeFloat(zmin);
xdr.xdrEncodeFloat(xmax);
xdr.xdrEncodeFloat(ymax);
xdr.xdrEncodeFloat(zmax);
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
id = xdr.xdrDecodeInt();
xmin = xdr.xdrDecodeFloat();
ymin = xdr.xdrDecodeFloat();
zmin = xdr.xdrDecodeFloat();
xmax = xdr.xdrDecodeFloat();
ymax = xdr.xdrDecodeFloat();
zmax = xdr.xdrDecodeFloat();
}
}
// End of obstacle_config.java
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
/*
* Automatically generated by jrpcgen 1.0.5 on 14-Feb-05 4:35:56 PM
* Automatically generated by jrpcgen 1.0.5 on 1/8/05 2:03 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://acplt.org/ks/remotetea.html for details
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment