Tabnine Logo
RecyclingArrayList.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
us.ihmc.robotics.lists.RecyclingArrayList

Best Java code snippets using us.ihmc.robotics.lists.RecyclingArrayList.get (Showing top 20 results out of 315)

origin: us.ihmc/IHMCRoboticsToolkit

@Override
public P getTrajectoryPoint(int trajectoryPointIndex)
{
 return trajectoryPoints.get(trajectoryPointIndex);
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public F getTrajectoryPoint(int trajectoryPointIndex)
{
 return trajectoryPoints.get(trajectoryPointIndex);
}
origin: us.ihmc/IHMCHumanoidRobotics

public SimpleTrajectoryPoint1DList getJointTrajectoryPointList(int jointIndex)
{
 return jointTrajectoryInputs.get(jointIndex);
}
origin: us.ihmc/IHMCHumanoidRobotics

public OneDoFJointTrajectoryCommand getJointTrajectoryPointList(int jointIndex)
{
 return jointTrajectoryInputs.get(jointIndex);
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void addTimeOffset(double timeOffsetToAdd)
{
 for (int i = 0; i < trajectoryPoints.size(); i++)
   trajectoryPoints.get(i).addTimeOffset(timeOffsetToAdd);
}
origin: us.ihmc/IHMCWholeBodyController

public void retrieveJointsFromName(Map<String, OneDoFJoint> nameToJointMap)
{
 for (int i = 0; i < jointspaceFeedbackControlCommands.size(); i++)
 {
   JointspaceFeedbackControlCommand command = jointspaceFeedbackControlCommands.get(i);
   command.retrieveJointsFromName(nameToJointMap);
 }
}
origin: us.ihmc/IHMCWholeBodyController

public void retrieveJointsFromName(Map<String, OneDoFJoint> nameToJointMap)
{
 for (int i = 0; i < jointspaceAccelerationCommands.size(); i++)
 {
   JointspaceAccelerationCommand command = jointspaceAccelerationCommands.get(i);
   command.retrieveJointsFromName(nameToJointMap);
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void addTimeOffset(double timeOffsetToAdd)
{
 for (int i = 0; i < trajectoryPoints.size(); i++)
   trajectoryPoints.get(i).addTimeOffset(timeOffsetToAdd);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void changeFrame(ReferenceFrame referenceFrame)
{
 if (this.referenceFrame == referenceFrame)
   return;
 for (int i = 0; i < trajectoryPoints.size(); i++)
   trajectoryPoints.get(i).changeFrame(referenceFrame);
 this.referenceFrame = referenceFrame;
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void subtractTimeOffset(double timeOffsetToSubtract)
{
 for (int i = 0; i < trajectoryPoints.size(); i++)
   trajectoryPoints.get(i).subtractTimeOffset(timeOffsetToSubtract);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void appendWaypoints(RecyclingArrayList<? extends OneDoFTrajectoryPointInterface<?>> waypoints1D)
{
 checkNumberOfWaypoints(numberOfWaypoints.getIntegerValue() + waypoints1D.size());
 for (int i = 0; i < waypoints1D.size(); i++)
   appendWaypointUnsafe(waypoints1D.get(i).getTime(), waypoints1D.get(i).getPosition(), waypoints1D.get(i).getVelocity());
}
origin: us.ihmc/IHMCRoboticsToolkit

public void appendWaypoints(RecyclingArrayList<? extends OneDoFTrajectoryPointInterface<?>> waypoints1D)
{
 checkNumberOfWaypoints(numberOfWaypoints.getIntegerValue() + waypoints1D.size());
 for (int i = 0; i < waypoints1D.size(); i++)
   appendWaypointUnsafe(waypoints1D.get(i).getTime(), waypoints1D.get(i).getPosition(), waypoints1D.get(i).getVelocity());
}
origin: us.ihmc/IHMCWholeBodyController

public void retrieveRigidBodiesFromName(Map<String, RigidBody> nameToRigidBodyMap)
{
 for (int i = 0; i < spatialVelocityCommands.size(); i++)
 {
   SpatialVelocityCommand command = spatialVelocityCommands.get(i);
   command.setBase(nameToRigidBodyMap.get(command.getBaseName()));
   command.setEndEffector(nameToRigidBodyMap.get(command.getEndEffectorName()));
 }
}
origin: us.ihmc/IHMCHumanoidRobotics

public void set(RecyclingArrayList<? extends SimpleTrajectoryPoint1DList> trajectoryPointListArray)
{
 clear();
 for (int i = 0; i < trajectoryPointListArray.size(); i++)
 {
   set(i, trajectoryPointListArray.get(i));
 }
}
origin: us.ihmc/IHMCHumanoidRobotics

public void set(RobotSide robotSide, RecyclingArrayList<? extends SimpleTrajectoryPoint1DList> trajectoryPointListArray)
{
 clear(robotSide);
 for (int i = 0; i < trajectoryPointListArray.size(); i++)
   set(i, trajectoryPointListArray.get(i));
}
origin: us.ihmc/IHMCRoboticsToolkit

public void setIncludingFrame(T other)
{
 clear(other.referenceFrame);
 for (int i = 0; i < other.getNumberOfTrajectoryPoints(); i++)
 {
   F newTrajectoryPoint = addAndInitializeTrajectoryPoint();
   // Here we don't want to do setIncludingFrame() in case there is inconsistency in other.
   newTrajectoryPoint.set(other.trajectoryPoints.get(i));
 }
}
origin: us.ihmc/IHMCHumanoidRobotics

public void setPredictedContactPoints(RecyclingArrayList<Point2d> predictedContactPoints)
{
 this.predictedContactPoints.clear();
 for(int i = 0; i < predictedContactPoints.size(); i++)
   this.predictedContactPoints.add().set(predictedContactPoints.get(i));
}
origin: us.ihmc/IHMCHumanoidRobotics

public void setPredictedContactPoints(RecyclingArrayList<Point2d> predictedContactPoints)
{
 this.predictedContactPoints.clear();
 for(int i = 0; i < predictedContactPoints.size(); i++)
   this.predictedContactPoints.add().set(predictedContactPoints.get(i));
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void set(T other)
{
 checkReferenceFrameMatch(other);
 clear();
 for (int i = 0; i < other.getNumberOfTrajectoryPoints(); i++)
 {
   F newTrajectoryPoint = addAndInitializeTrajectoryPoint();
   newTrajectoryPoint.set(other.trajectoryPoints.get(i));
 }
}
origin: us.ihmc/IHMCHumanoidRobotics

@Override
public void set(AdjustFootstepCommand other)
{
 robotSide = other.robotSide;
 origin = other.origin;
 adjustedPosition.set(other.adjustedPosition);
 adjustedOrientation.set(other.adjustedOrientation);
 RecyclingArrayList<Point2d> otherPredictedContactPoints = other.predictedContactPoints;
 predictedContactPoints.clear();
 for (int i = 0; i < otherPredictedContactPoints.size(); i++)
   predictedContactPoints.add().set(otherPredictedContactPoints.get(i));
}
us.ihmc.robotics.listsRecyclingArrayListget

Javadoc

Returns the element at the specified position in this list.

Popular methods of RecyclingArrayList

  • add
    Unsupported operation.
  • clear
    Sets the size of the list to 0, but does not change its capacity. This method is meant to recycle a
  • size
    Returns the number of elements in this list.
  • <init>
  • isEmpty
    Returns true if this list contains no elements.
  • getAndGrowIfNeeded
    Returns the element at the specified position in this list. The list will grow if the given index is
  • getLast
    Returns the last element of this list. If the list is empty, it returns null.
  • remove
    Removes the first occurrence of the specified element from this list, if it is present. If the list
  • checkWithMaxCapacity
  • ensureCapacity
  • fillElementDataIfNeeded
  • indexOf
    Returns the index of the first occurrence of the specified element in this list, or -1 if this list
  • fillElementDataIfNeeded,
  • indexOf,
  • positiveIndexCheck,
  • rangeCheck,
  • rangeCheckForInsert,
  • toArray,
  • unsafeFastSwap,
  • unsafeGet,
  • unsafeGrowByN

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Reference (javax.naming)
  • BoxLayout (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now