12345678910111213141516171819202122232425262728293031323334353637 |
- package at.acdp.urweb.sclient.data;
- import at.acdp.urweb.CountDataInputStream;
- import com.eclipsesource.json.JsonObject;
- import java.io.DataInputStream;
- import java.io.IOException;
- public class ForceModeData implements IRead, IJsonObject {
- public double x,y,z;
- public double rx, ry, rz;
- public double robotDexterity;
- public void read(CountDataInputStream di, int size) throws IOException {
- x=di.readDouble();
- y=di.readDouble();
- z=di.readDouble();
- rx=di.readDouble();
- ry=di.readDouble();
- rz=di.readDouble();
- robotDexterity=di.readDouble();
- }
- @Override
- public JsonObject toJSON() {
- return new JsonObject()
- .add("x", x)
- .add("y", y)
- .add("z", z)
- .add("rx", rx)
- .add("ry", ry)
- .add("rz", rz)
- .add("robotDexterity", robotDexterity)
- ;
- }
- }
|