ROS node parameter, a stand-in for ROS2 `rclpy.parameter.Parameter` in ROS1.
More...
|
class | Type |
| ROS parameter type, a stand-in for ROS2 `rclpy.parameter.Parameter.Type` in ROS1. More...
|
|
|
dict | ARRAYS |
| Mapping from array types to array element Python types.
|
|
dict | SCALARS |
| Mapping from scalar types to Python types.
|
|
ROS node parameter, a stand-in for ROS2 `rclpy.parameter.Parameter` in ROS1.
Definition at line 42 of file parameter.py.
◆ __init__()
rosros.rclify.parameter.Parameter.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
type_ = None , |
|
|
|
value = None |
|
) |
| |
Raises error if unknown type or given value not of given type.
Definition at line 98 of file parameter.py.
◆ get_parameter_value()
rosros.rclify.parameter.Parameter.get_parameter_value |
( |
|
self | ) |
|
◆ _name
rosros.rclify.parameter.Parameter._name |
|
protected |
◆ _type_
rosros.rclify.parameter.Parameter._type_ |
|
protected |
◆ _value
rosros.rclify.parameter.Parameter._value |
|
protected |
◆ ARRAYS
dict rosros.rclify.parameter.Parameter.ARRAYS |
|
static |
Initial value:= {Type.BYTE_ARRAY: bytes, Type.BOOL_ARRAY: bool, Type.INTEGER_ARRAY: int,
Type.DOUBLE_ARRAY: float, Type.STRING_ARRAY: str}
Mapping from array types to array element Python types.
Definition at line 94 of file parameter.py.
◆ SCALARS
dict rosros.rclify.parameter.Parameter.SCALARS |
|
static |
Initial value:= {Type.NOT_SET: type(None), Type.BOOL: bool, Type.INTEGER: int,
Type.DOUBLE: float, Type.STRING: str}
Mapping from scalar types to Python types.
Definition at line 90 of file parameter.py.
◆ name
rosros.rclify.parameter.Parameter.name = property |
|
static |
◆ type_
rosros.rclify.parameter.Parameter.type_ = property |
|
static |
◆ value
rosros.rclify.parameter.Parameter.value = property |
|
static |
The documentation for this class was generated from the following file: