Tabnine Logo
Plotter.addArtifact
Code IndexAdd Tabnine to your IDE (free)

How to use
addArtifact
method
in
us.ihmc.plotting.Plotter

Best Java code snippets using us.ihmc.plotting.Plotter.addArtifact (Showing top 14 results out of 315)

origin: us.ihmc/simulation-construction-set-tools-test

private void displayPolygons(PlotterPanel plotterpanel, ArrayList<PolygonArtifact> polygonArtifacts)
{
 if (plotterpanel == null)
   return;
 for (int i = 0; i < polygonArtifacts.size(); i++)
 {
   plotterpanel.getPlotter().addArtifact(polygonArtifacts.get(i));
   try
   {
    Thread.sleep(100);
   }
   catch (Exception ex)
   {
    ex.printStackTrace();
   }
 }
}
origin: us.ihmc/ihmc-swing-plotting

public PointListArtifact createAndAddPointArtifact(String name, Point2D point, Color color)
{
 PointListArtifact pointArtifact = new PointListArtifact(name, point);
 pointArtifact.setColor(color);
 addArtifact(pointArtifact);
 return pointArtifact;
}
origin: us.ihmc/Plotting

public PointListArtifact createAndAddPointArtifact(String name, Point2d point, Color color)
{
 PointListArtifact pointArtifact = new PointListArtifact(name, point);
 pointArtifact.setColor(color);
 addArtifact(pointArtifact);
 return pointArtifact;
}
origin: us.ihmc/Plotting

public LineArtifact createAndAddLineArtifact(String name, Line2d line, Color color)
{
 LineArtifact lineArtifact = new LineArtifact(name, line);
 lineArtifact.setColor(color);
 addArtifact(lineArtifact);
 return lineArtifact;
}
origin: us.ihmc/ihmc-swing-plotting

public LineArtifact createAndAddLineArtifact(String name, Line2D line, Color color)
{
 LineArtifact lineArtifact = new LineArtifact(name, line);
 lineArtifact.setColor(color);
 addArtifact(lineArtifact);
 return lineArtifact;
}
origin: us.ihmc/ihmc-system-identification

public void showSample(int numPlotSample, String frameTitle)
{
 Plotter plotter = createPlotter(frameTitle);
 // filter out zero velocity region
 int nSamples = getNumSamples();
 ArrayList<Point3D> com = new ArrayList<>(nSamples);
 ArrayList<Point3D> cop = new ArrayList<>(nSamples);
 packRobotComCopSeries(com, cop);
 for (int i = 0; i < nSamples; i += nSamples / numPlotSample)
 {
   plotter.addArtifact(new CircleArtifact("sensedCoP" + i, cop.get(i).getX(), cop.get(i).getY(), 0.005, true, Color.RED));
   plotter.addArtifact(new CircleArtifact("modelCoM" + i, com.get(i).getX(), com.get(i).getY(), 0.01, false, Color.RED));
 }
}
origin: us.ihmc/ihmc-swing-plotting

public void add2dPoint(Point2D point2D)
{
  adjustViewRange(point2D);
  if (lastPoint.isPresent())
  {
   plotter.addArtifact(new PixelLineArtifact(String.valueOf(id++), new Point2D(lastPoint.get().getX(), lastPoint.get().getY()),
                        new Point2D(point2D.getX(), point2D.getY()), qualitativeColors.getColor(colorIndex), 2));
  }
  else
  {
   plotter.addArtifact(new PixelPointArtifact(String.valueOf(id++), new Point2D(point2D.getX(), point2D.getY()), qualitativeColors.getColor(colorIndex),
                         2));
  }
  lastPoint = Optional.of(point2D);
}
origin: us.ihmc/ihmc-avatar-interfaces

boolPlotter.addArtifact(paRaw);
origin: us.ihmc/DarpaRoboticsChallenge

boolPlotter.addArtifact(paRaw);
origin: us.ihmc/IHMCAvatarInterfaces

boolPlotter.addArtifact(paRaw);
origin: us.ihmc/ihmc-manipulation-planning

public void updateVisualizer(CTTaskNode newNode)
{
 String prefix = "wholenodes_" + configurationIndex + "" + updateCnt;
 if (newNode.getValidity())
 {
   if (newNode.getParentNode() != null)
   {
    CTTaskNode parentNode = newNode.getParentNode();
    LineArtifact lineArtifact = new LineArtifact(prefix + "_line",
                           new Point2D(parentNode.getNormalizedNodeData(0), parentNode.getNormalizedNodeData(configurationIndex)),
                           new Point2D(newNode.getNormalizedNodeData(0), newNode.getNormalizedNodeData(configurationIndex)));
    lineArtifact.setColor(Color.blue);
    plotter.addArtifact(lineArtifact);
   }
   CircleArtifact nodeArtifact = new CircleArtifact(prefix + "_valid", newNode.getNormalizedNodeData(0),
                           newNode.getNormalizedNodeData(configurationIndex), 0.0075, true);
   nodeArtifact.setColor(Color.blue);
   plotter.addArtifact(nodeArtifact);
 }
 else
 {
   CircleArtifact nodeArtifact = new CircleArtifact(prefix + "_invalid", newNode.getNormalizedNodeData(0),
                           newNode.getNormalizedNodeData(configurationIndex), 0.0075, true);
   nodeArtifact.setColor(Color.red);
   plotter.addArtifact(nodeArtifact);
 }
 plotter.update();
 updateCnt++;
}
origin: us.ihmc/ihmc-avatar-interfaces

 plotters.get(nodeIndex).addArtifact(lineArtifact);
nodeArtifact.setColor(color);
plotters.get(nodeIndex).addArtifact(nodeArtifact);
plotters.get(nodeIndex).update();
origin: us.ihmc/ihmc-manipulation-planning

  plotter.addArtifact(lineArtifact);
nodeArtifact.setColor(pathColor);
plotter.addArtifact(nodeArtifact);
origin: us.ihmc/simulation-construction-set-test

plotter.addArtifact(new LineArtifact("01", new Point2D(0, 0), new Point2D(1, 1)));
plotter.addArtifact(new LineArtifact("02", new Point2D(1, 1), new Point2D(2, 0)));
plotter.addArtifact(new LineArtifact("03", new Point2D(2, 0), new Point2D(3, 1)));
plotter.addArtifact(new YoArtifactOval("circle", center, radii, Color.RED));
plotter.addArtifact(new YoArtifactLineSegment2d("lineSegment1", lineSegment, Color.DARK_GRAY, 0.1, 0.1));
plotter.addArtifact(new YoArtifactLine2d("line1", line, Color.GREEN));
plotter.addArtifact(new YoArtifactPolygon("emptyPolygon1", polygon, Color.MAGENTA, false)); 
plotter.addArtifact(new YoArtifactPolygon("onePointPolygon", polygon2, Color.MAGENTA, false)); 
plotter.addArtifact(new YoArtifactPolygon("twoPointPolygon", polygon3, Color.BLUE, true)); 
plotter.addArtifact(new YoArtifactPosition("pointZ", pointZ, GraphicType.BALL, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point4", point4, GraphicType.BALL_WITH_CROSS, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point5", point5, GraphicType.BALL_WITH_ROTATED_CROSS, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point6", point6, GraphicType.CROSS, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point7", point7, GraphicType.DIAMOND, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point8", point8, GraphicType.DIAMOND_WITH_CROSS, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point9", point9, GraphicType.ELLIPSOID, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point10", point10, GraphicType.ROTATED_CROSS, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point11", point11, GraphicType.SOLID_BALL, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point12", point12, GraphicType.SQUARE, Color.DARK_GRAY, 0.1)); 
plotter.addArtifact(new YoArtifactPosition("point13", point13, GraphicType.SQUARE_WITH_CROSS, Color.DARK_GRAY, 0.1)); 
us.ihmc.plottingPlotteraddArtifact

Popular methods of Plotter

  • setViewRange
    Specify amount of meters that occupy view in X and Y.
  • <init>
  • getJPanel
  • setFocusPointX
  • setFocusPointY
  • addArtifactsChangedListener
  • showInNewWindow
  • setXYZoomEnabled
  • update
  • setPreferredSize
  • setShowLabels
  • calculateGridSizePixels
  • setShowLabels,
  • calculateGridSizePixels,
  • centerOnFocusPoint,
  • createAndAttachPlotterLegendPanel,
  • forAllArtifacts,
  • getArtifacts,
  • getPlotter2DAdapter,
  • getPlotterHeightPixels,
  • getPlotterWidthPixels

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JTable (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • CodeWhisperer alternatives
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