Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix humble parameter config for compressed depth image transport publisher #165

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <vector>
#include <sstream>

constexpr int kDefaultPngLevel = 9;
constexpr int kDefaultPngLevel = 3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any reason to change the default behaviour ? I would like to avoid change this because it might affect other users.

The other change LGTM

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default was changed in future releases so I just matched them, and when I tested it a while back I think I remember 9 compression giving me problems (I think taking too long that it was reducing the frame rate). I would need to run it again to check, but since it's a param we can just change it back

constexpr double kDefaultDepthMax = 10.0;
constexpr double KDefaultDepthQuantization = 100.0;

Expand All @@ -67,7 +67,7 @@ void CompressedDepthPublisher::advertiseImpl(

node->get_parameter_or<int>("png_level", config_.png_level, kDefaultPngLevel);
node->get_parameter_or<double>("depth_max", config_.depth_max, kDefaultDepthMax);
node->get_parameter_or<double>("depth_quantization", config_.depth_max, KDefaultDepthQuantization);
node->get_parameter_or<double>("depth_quantization", config_.depth_quantization, KDefaultDepthQuantization);
}

void CompressedDepthPublisher::publish(
Expand Down