/// <summary> Explicit constructor. </summary> public RobotState(SensorMsgs.JointState JointState, SensorMsgs.MultiDOFJointState MultiDofJointState, AttachedCollisionObject[] AttachedCollisionObjects, bool IsDiff) { this.JointState = JointState; this.MultiDofJointState = MultiDofJointState; this.AttachedCollisionObjects = AttachedCollisionObjects; this.IsDiff = IsDiff; }
/// <summary> Constructor with buffer. </summary> internal RobotState(ref Buffer b) { JointState = new SensorMsgs.JointState(ref b); MultiDofJointState = new SensorMsgs.MultiDOFJointState(ref b); AttachedCollisionObjects = b.DeserializeArray <AttachedCollisionObject>(); for (int i = 0; i < AttachedCollisionObjects.Length; i++) { AttachedCollisionObjects[i] = new AttachedCollisionObject(ref b); } IsDiff = b.Deserialize <bool>(); }
/// <summary> Constructor for empty message. </summary> public RobotState() { JointState = new SensorMsgs.JointState(); MultiDofJointState = new SensorMsgs.MultiDOFJointState(); AttachedCollisionObjects = System.Array.Empty <AttachedCollisionObject>(); }