diff --git a/gpsd_client/src/client.cpp b/gpsd_client/src/client.cpp index e8dbcfc..4a19428 100644 --- a/gpsd_client/src/client.cpp +++ b/gpsd_client/src/client.cpp @@ -30,12 +30,12 @@ namespace gpsd_client bool start() { - this->declare_parameter("use_gps_time"); - this->declare_parameter("check_fix_by_variance"); - this->declare_parameter("frame_id"); - this->declare_parameter("publish_rate"); - this->declare_parameter("host"); - this->declare_parameter("port"); + this->declare_parameter("use_gps_time", rclcpp::PARAMETER_BOOL); + this->declare_parameter("check_fix_by_variance", rclcpp::PARAMETER_BOOL); + this->declare_parameter("frame_id", rclcpp::PARAMETER_STRING); + this->declare_parameter("publish_rate", rclcpp::PARAMETER_INTEGER); + this->declare_parameter("host", rclcpp::PARAMETER_STRING); + this->declare_parameter("port", rclcpp::PARAMETER_INTEGER); gps_fix_pub_ = create_publisher("extended_fix", 1); navsatfix_pub_ = create_publisher("fix", 1);