Parameters

Parameter

class rclpy.parameter.Parameter(name, type_=None, value=None)
class Type

An enumeration.

BOOL = 1
BOOL_ARRAY = 6
BYTE_ARRAY = 5
DOUBLE = 3
DOUBLE_ARRAY = 8
INTEGER = 2
INTEGER_ARRAY = 7
NOT_SET = 0
STRING = 4
STRING_ARRAY = 9
check(parameter_value)
classmethod from_parameter_value(parameter_value)

Get a Parameter.Type from a given variable.

Returns

A Parameter.Type corresponding to the instance type of the given value.

Raises

TypeError if the conversion to a type was not possible.

classmethod from_parameter_msg(param_msg)
get_parameter_value()
property name
to_parameter_msg()
property type_
property value

Parameter Service

class rclpy.parameter_service.ParameterService(node)