The Robot Application Programming Interface Delegate Project
RAPID Logo

PointSample Class Reference

PointSample describes the position and attributes of a point in the cloud. More...

Inheritance diagram for PointSample:
Collaboration diagram for PointSample:

List of all members.

Public Member Functions

 PointSample ()
 PointSample (PointSample other)
boolean equals (Object o)
int hashCode ()
Object copy_from (Object src)
 This is the implementation of the Copyable interface.
String toString ()
String toString (String desc, int indent)

Static Public Member Functions

static Object create ()

Public Attributes

short[] xyz = new short[3]
 Position relative to the cloud origin, in arbitrary point units.
byte[] attributes = new byte[2]
 Particle attributes (e.g., intensity).

Detailed Description

Note: Attributes are included in this struct because we get them for free on the wire due to word alignment.


Constructor & Destructor Documentation

Here is the call graph for this function:


Member Function Documentation

Object copy_from ( Object  src)

This method will perform a deep copy of src This method could be placed into PointSampleTypeSupport rather than here by using the -noCopyable option to rtiddsgen.

Parameters:
srcThe Object which contains the data to be copied.
Returns:
Returns this.
Exceptions:
NullPointerExceptionIf src is null.
ClassCastExceptionIf src is not the same type as this.
See also:
com.rti.dds.infrastructure.Copyable.copy_from(java.lang.Object)

Here is the call graph for this function:

static Object create ( ) [static]

Here is the call graph for this function:

boolean equals ( Object  o)

Here is the call graph for this function:

int hashCode ( )
String toString ( String  desc,
int  indent 
)
String toString ( )

Member Data Documentation

byte [] attributes = new byte[2]
short [] xyz = new short[3]

Reference PointSampleConfig to determine the meaning of the elements in this vector. These are signed short values so in order to exploit the full 16 bits of resolution, data should be scaled to a range of -32768 to 32767. If 15 bits of resolution is adequate, data can be scaled to a range of 0 to 32767 for computational efficiency on the sending side.

See also:
PointSampleXyzMode

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines