Inter-List Numeric Operations

Description

This operator is used to perform mathematical operations on two lists of data, supporting basic arithmetic operations and vector space operations.

Usage Scenarios

  • Coordinate transformation: Adding an offset vector to a pose list or point cloud coordinate list (addition) to achieve global translation.

  • Data scaling: Multiplying a list of numerical values by a scaling factor (multiplication/division).

  • Geometric analysis: Calculating the angle between two vector lists (such as normal vectors) to judge surface consistency or detect edges.

  • Similarity measurement: Judging the similarity between feature vectors by calculating the L2 distance (Euclidean distance).

Overview

Performs element-wise operations on two lists, supporting arithmetic, vector dot/cross product, angle, and distance calculations, with options to specify operands.

Scenarios

  • Coordinate transformation: Adding an offset vector to a pose list or point cloud coordinate list (addition) to achieve global translation.

  • Data scaling: Multiplying a list of numerical values by a scaling factor (multiplication/division).

  • Geometric analysis: Calculating the angle between two vector lists (such as normal vectors) to judge surface consistency or detect edges.

  • Similarity measurement: Judging the similarity between feature vectors by calculating the L2 distance (Euclidean distance).

Inputs and Outputs

Inputs

First Operand: The first operand.

Second Operand: The second operand.

Outputs

Result: Calculated result list.

Parameters

Operation Type

Description

Selects the specific mathematical calculation method.

Tuning Instructions

Basic Operations:

  • Add/Subtract: Adds or subtracts corresponding elements.

  • Divide: Divides corresponding elements.

  • Multiply Corresponding Values: Multiplies corresponding elements directly.

Vector Operations:

  • Vector Dot Product: Calculates the scalar product of two vectors.

  • Vector Cross Product: Calculates the vector product of two vectors.

  • Calculate Vector Angle: Calculates the angle between two vectors (Unit: Degree). An error is reported if the vector magnitude is 0.

  • Calculate Vector L2 Distance: i.e., Euclidean distance, calculates the straight-line distance between two points.

  • Calculate Vector L1 Distance: i.e., Manhattan distance, the sum of the absolute differences of the coordinates.

Parameter Range

Values/Range:

  • Addition

  • Subtraction

  • Divide

  • Multiply Corresponding Values

  • Vector Dot Product

  • Vector Cross Product

  • Calculate Vector Angle

  • Calculate Vector L2 Distance

  • Calculate Vector L1 Distance

Default: Addition

Calculate with Specified Operand

Description

Controls whether to use the specified operand for the operation.

Tuning Instructions

  • Disabled (Default): The operation is performed between the "First operand" and "Second operand" input ports.

  • Enabled: The operation is performed between the "First operand" and the parameter "Specified Operand", ignoring data from the "Second operand" input port.

Parameter Range

Values/Range:

  • True

  • False

Default: False

Specified Operand

Description

A fixed numerical value or list used for the operation when "Calculate with Specified Operand" is enabled.

Tuning Instructions

Enter a fixed numerical value or list here.

Parameter Range

Default: [0, 0, 1]