I want to create a 3d mapping system (in java) that starts out from nothing but an X. The robot will go out from that X and measure things (temperature, location, acceleration, vibrations, time and other measurements). Some of this data (mostly X,Y,Z locations) should begin to create a 3d map. It would be nice if a java object that puts a "dot" on the X,Y,Z coordinates. the java.
The java object should read from a text file that my computer would upload to the web server.
I want to create a sage system (in bbcode) that starts out from nothing but a blank post. The sage will go out from that blank post and sage things (thread sucks, OP is a moron, go back to /g/, and other things). Some of this data (mostly OP's stupidity) should begin to create a sagebomb. It would be nice if a sage that puts a "sage" in the email field. the bbcode.
The bbcode should read from a text file that my computer would post to /prog/.
The problem is not in the coding as what you've mentioned is rather easy to implement in any object-oriented language and, really, in many non-OO languages. As my own experience with robotics is concerned, the real problem is ensuring and getting the robot to confirm that it has managed to make a journey from known point X to known point Y. Different surfaces produce different traction, and the robot could easily move less than Y-X and record data about the wrong place.
>>13
Damn it, double BBCoed fail, use [ br ] I'm off to read my Practical Common BBCode for a refresher
Name:
Anonymous2009-12-29 19:33
Here OP, this should get you started with your homework.
public final class Point
{
public final int x, y, z;
// If Java doesn't support this declaration syntax then kick James Gosling in the nuts from me.
public Point(int x, int y, int z)
{
this.x = x;
// etc, kick JG in the ass for not giving a concise way to do this
}
public int hashCode()
{
//TODO: OP look this shit up and do at least some of yr homework.
}
}
public class MeasureMents
{
private int accelleration
}
public class Wobot
{
private Point location;
private Map<Point, Map<String, Object>> threeDeeMap;
public Wobot()
{
threeDeeMap = new HashMap<Point, <Map<String, Object>>();
}
public goToPoint(Point newPointToGoTo)
{
location = newPointToGoalTo;
}
public measureQty(String qtyName, Object qtyVal)
{
getDataAtCurrentLocation().set(qtyName, qtyVal);
}
private Map<String, Object> getDataAtCurrentLocation()
{
Map<String, Object> data;
if(threeDeeMap.hasKey(location)
{
data = threeDeeMap.get(location);
}
else
{
data = new HashMap<String, Object>();
threeDeeMap.set(location, data);
}
return data;
}
}
Name:
Anonymous2009-12-29 23:36
I'm ENTERPRISE SYSTEMS ENGINEERING PROFESSIONAL and what is this
Map<String, Object> data;
if(threeDeeMap.hasKey(location)
{
>>25
Maybe the robot is a cripple and has limited motion along a rail. Have you ever considered that? No, you didn't. Think before you post next time. Jerk.