Codota Logo
RosPointCloudSubscriber$UnpackedPointCloud.getPointType
Code IndexAdd Codota to your IDE (free)

How to use
getPointType
method
in
us.ihmc.utilities.ros.subscriber.RosPointCloudSubscriber$UnpackedPointCloud

Best Java code snippets using us.ihmc.utilities.ros.subscriber.RosPointCloudSubscriber$UnpackedPointCloud.getPointType (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: us.ihmc/ihmc-perception

  @Override
  public void onNewMessage(PointCloud2 pointCloud)
  {
   UnpackedPointCloud cloud = unpackPointsAndIntensities(pointCloud);
   if (cloud.getWidth() > 1200)
   {
     int ptr = 0;
     Point3D[] points = new Point3D[(cloud.getWidth() / 2) * (cloud.getHeight() / 2)];
     Color[] pointColors = new Color[(cloud.getWidth() / 2) * (cloud.getHeight() / 2)];
     for (int j = 0; j < cloud.getHeight(); j += 2)
      for (int i = 0; i < cloud.getWidth(); i += 2)
      {
        points[ptr] = cloud.getPoints()[j * cloud.getWidth() + i];
        pointColors[ptr] = cloud.getPointColors()[j * cloud.getWidth() + i];
        ptr++;
      }
     UnpackedPointCloud scaledCloud = new UnpackedPointCloud(cloud.getWidth() / 2, cloud.getHeight() / 2, cloud.getPointType(), points, pointColors);
     onNewPointcloud(scaledCloud);
     return;
   }
   else
   {
     onNewPointcloud(cloud);
     return;
   }
  }
};
origin: us.ihmc/IHMCPerception

  @Override
  public void onNewMessage(PointCloud2 pointCloud)
  {
   UnpackedPointCloud cloud = unpackPointsAndIntensities(pointCloud);
   if (cloud.getWidth() > 1200)
   {
     int ptr = 0;
     Point3d[] points = new Point3d[(cloud.getWidth() / 2) * (cloud.getHeight() / 2)];
     Color[] pointColors = new Color[(cloud.getWidth() / 2) * (cloud.getHeight() / 2)];
     for (int j = 0; j < cloud.getHeight(); j += 2)
      for (int i = 0; i < cloud.getWidth(); i += 2)
      {
        points[ptr] = cloud.getPoints()[j * cloud.getWidth() + i];
        pointColors[ptr] = cloud.getPointColors()[j * cloud.getWidth() + i];
        ptr++;
      }
     UnpackedPointCloud scaledCloud = new UnpackedPointCloud(cloud.getWidth() / 2, cloud.getHeight() / 2, cloud.getPointType(), points, pointColors);
     onNewPointcloud(scaledCloud);
     return;
   }
   else
   {
     onNewPointcloud(cloud);
     return;
   }
  }
};
us.ihmc.utilities.ros.subscriberRosPointCloudSubscriber$UnpackedPointCloudgetPointType

Popular methods of RosPointCloudSubscriber$UnpackedPointCloud

  • getPoints
  • getPointColors
  • <init>
  • getHeight
  • getIntensities
  • getWidth
  • getXYZRGB

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ImageIO (javax.imageio)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now