Skip to content

Commit

Permalink
Add support for floating point fps
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Jan 19, 2024
1 parent 5645baa commit 9eabf63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion image_view/include/image_view/video_recorder_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class VideoRecorderNode
rclcpp::Time g_last_wrote_time;
std::string encoding;
std::string codec;
int fps;
double fps;
double min_depth_range;
double max_depth_range;
bool use_dynamic_range;
Expand Down
2 changes: 1 addition & 1 deletion image_view/src/video_recorder_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ VideoRecorderNode::VideoRecorderNode(const rclcpp::NodeOptions & options)

filename = this->declare_parameter("filename", std::string("output.avi"));
stamped_filename = this->declare_parameter("stamped_filename", false);
fps = this->declare_parameter("fps", 15);
fps = this->declare_parameter("fps", 15.0);
codec = this->declare_parameter("codec", std::string("MJPG"));
encoding = this->declare_parameter("encoding", std::string("bgr8"));
// cv_bridge::CvtColorForDisplayOptions
Expand Down

0 comments on commit 9eabf63

Please sign in to comment.