/** * Creates a new <code>TFloatArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TFloatArrayList ( TFloatCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TFloatArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TFloatArrayList ( TFloatCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TFloatArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TFloatArrayList ( TFloatCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TFloatArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TFloatArrayList ( TFloatCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TFloatArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TFloatArrayList ( TFloatCollection collection ) { this( collection.size() ); addAll( collection ); }
@Override public void set(KinematicsToolboxConfigurationCommand other) { hasPrivilegedRootJointPosition = other.hasPrivilegedRootJointPosition; if (hasPrivilegedRootJointPosition) privilegedRootJointPosition.set(other.getPrivilegedRootJointPosition()); else privilegedRootJointPosition.setToNaN(); hasPrivilegedRootJointOrientation = other.hasPrivilegedRootJointOrientation; if (hasPrivilegedRootJointOrientation) privilegedRootJointOrientation.set(other.getPrivilegedRootJointOrientation()); else privilegedRootJointOrientation.setToNaN(); hasPrivilegedJointAngles = other.hasPrivilegedJointAngles; jointHashCodes.reset(); privilegedJointAngles.reset(); if (hasPrivilegedJointAngles) { jointHashCodes.addAll(other.getJointHashCodes()); privilegedJointAngles.addAll(other.getPrivilegedJointAngles()); } }
@Override public void setFromMessage(KinematicsToolboxConfigurationMessage message) { hasPrivilegedRootJointPosition = message.getPrivilegedRootJointPosition() != null; if (hasPrivilegedRootJointPosition) privilegedRootJointPosition.set(message.getPrivilegedRootJointPosition()); else privilegedRootJointPosition.setToNaN(); hasPrivilegedRootJointOrientation = message.getPrivilegedRootJointOrientation() != null; if (hasPrivilegedRootJointOrientation) privilegedRootJointOrientation.set(message.getPrivilegedRootJointOrientation()); else privilegedRootJointOrientation.setToNaN(); TIntArrayList messageHashCodes = message.getPrivilegedJointHashCodes(); TFloatArrayList messageJointAngles = message.getPrivilegedJointAngles(); hasPrivilegedJointAngles = messageHashCodes != null && messageJointAngles != null; jointHashCodes.reset(); privilegedJointAngles.reset(); if (hasPrivilegedJointAngles) { jointHashCodes.addAll(messageHashCodes); privilegedJointAngles.addAll(messageJointAngles); } }