Пример #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public SensorData()
 {
     _jointValues = new JointValueVector();
     for (int i = 0; i < 25; i++)
     {
         _jointValues.JointValues.Add(new JointValue
         {
             id = i,
             value = 0.0
         });
     }
     _imu = new IMU();
     _sensorValues = new Dictionary<string, object>();
 }
Пример #2
0
 /// <summary>
 /// Update the joint values of the robot
 /// </summary>
 /// <param name="jointValue">List of joint values</param>
 public void Update(JointValueVector jointValue)
 {
     lock (_object)
     {
         Robot.SensorData.JointValues = jointValue;
     }
 }