Interface ROS2PrimitiveMessageDefinition.Builder

    • Method Detail

      • primitiveType

        ROS2PrimitiveMessageDefinition.Builder primitiveType​(String primitiveType)

        The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.

        Parameters:
        primitiveType - The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ROS2PrimitiveType, ROS2PrimitiveType
      • primitiveType

        ROS2PrimitiveMessageDefinition.Builder primitiveType​(ROS2PrimitiveType primitiveType)

        The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.

        Parameters:
        primitiveType - The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ROS2PrimitiveType, ROS2PrimitiveType
      • offset

        ROS2PrimitiveMessageDefinition.Builder offset​(Double offset)

        The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset.

        Parameters:
        offset - The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scaling

        ROS2PrimitiveMessageDefinition.Builder scaling​(Double scaling)

        A multiplier used to decode the message.

        Parameters:
        scaling - A multiplier used to decode the message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • upperBound

        ROS2PrimitiveMessageDefinition.Builder upperBound​(Long upperBound)

        An optional attribute specifying the upper bound for STRING and WSTRING.

        Parameters:
        upperBound - An optional attribute specifying the upper bound for STRING and WSTRING.
        Returns:
        Returns a reference to this object so that method calls can be chained together.