Skip to content

Commit

Permalink
🔨 Resolved issue regarding updated declare_parameter function. Just n…
Browse files Browse the repository at this point in the history
…eed to add default value in updated function call.

Signed-off-by: Bey Hao Yun <beyhy94@gmail.com>
  • Loading branch information
cardboardcode committed Sep 28, 2023
1 parent be7cdef commit 8c8348b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/virtual_camera/virtual_camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ class VirtualCamera : public rclcpp::Node
}
}

this->declare_parameter("FPS");
this->set_parameter(rclcpp::Parameter("FPS", 24));
this->declare_parameter("FPS", 24);
}

void activate_time_callback(void)
Expand Down

0 comments on commit 8c8348b

Please sign in to comment.