-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
I was trying this out in a test project using the latest official Humble base docker image and got the following error message for a parameter of type int
in the project's parameters.yaml file:
parameters.hpp:202:51: error: ‘PARAMETER_INT’ is not a member of ‘rclcpp::ParameterType’
202 | auto parameter = rclcpp::ParameterType::PARAMETER_INT;
The parameter descriptor:
port: {
type: int,
description: "UDP listener port",
default: 14540,
readonly: true,
validation: {
bounds<>: [ 1024, 65535 ]
}
}
It appears that the correct enum name (at least in Humble) is PARAMETER_INTEGER:
https://github.com/ros2/rclcpp/blob/33dae5d679751b603205008fcb31755986bcee1c/rclcpp/include/rclcpp/parameter_value.hpp#L36
Metadata
Metadata
Assignees
Labels
No labels