Why ROS2 rclc_parameter_set_int() has value parameter as int64_t while rclc_parameter_get_int() has the same parameter as int type?
Hello guys,
I just dealt with these two functions while I was learning how to implement a Parameter Server with Micro-ROS and ROS2 Galactic. I confess it bugged my mind, so we are talking about the same parameter value transported within a Parameter Server. Exploring the library I noticed that both functions are based on the Parameter
struct, an heiress from rcl_interfaces__msg__Parameter
, that has an integer_value
member of int64_t type. Why don't use int64_t for the get and set functions?
Please, don't take it as criticism. I just wanna understand the reasons for this decision.
Cheers.