BowlerKernel
IMUUpdate.java
Go to the documentation of this file.
1 package com.neuronrobotics.sdk.addons.kinematics.imu;
8 public class IMUUpdate {
9  private final Double xAcceleration;
10  private final Double yAcceleration;
11  private final Double zAcceleration;
12  private final Double rotxAcceleration;
13  private final Double rotyAcceleration;
14  private final Double rotzAcceleration;
15  private long timestamp;
16 
17 
28  public IMUUpdate(Double xAcceleration,Double yAcceleration,Double zAcceleration,
30  ){
31  this.xAcceleration = xAcceleration;
32  this.yAcceleration = yAcceleration;
33  this.zAcceleration = zAcceleration;
34  this.rotxAcceleration = rotxAcceleration;
35  this.rotyAcceleration = rotyAcceleration;
36  this.rotzAcceleration = rotzAcceleration;
37  this.setTimestamp(System.currentTimeMillis());
38 
39  }
40 
41  public Double getxAcceleration() {
42  return xAcceleration;
43  }
44 
45  public Double getyAcceleration() {
46  return yAcceleration;
47  }
48 
49  public Double getzAcceleration() {
50  return zAcceleration;
51  }
52 
53  public Double getRotxAcceleration() {
54  return rotxAcceleration;
55  }
56 
57  public Double getRotyAcceleration() {
58  return rotyAcceleration;
59  }
60 
61  public Double getRotzAcceleration() {
62  return rotzAcceleration;
63  }
64 
65  public long getTimestamp() {
66  return timestamp;
67  }
68 
69  public void setTimestamp(long timestamp) {
70  this.timestamp = timestamp;
71  }
72 
73 }
IMUUpdate(Double xAcceleration, Double yAcceleration, Double zAcceleration, Double rotxAcceleration, Double rotyAcceleration, Double rotzAcceleration)
Definition: IMUUpdate.java:28