Skip to content

Commit

Permalink
Fixed draco subscriber param names (#38) (#39)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 7d3294d)

Co-authored-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
mergify[bot] and ahcorde authored Dec 12, 2023
1 parent 1bafc35 commit bace25f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions draco_point_cloud_transport/src/draco_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ void DracoSubscriber::declareParameters()
auto result = rcl_interfaces::msg::SetParametersResult();
result.successful = true;
for (auto parameter : parameters) {
if (parameter.get_name() == "SkipDequantizationPOSITION") {
if (parameter.get_name().find("SkipDequantizationPOSITION") != std::string::npos) {
config_.SkipDequantizationPOSITION = parameter.as_bool();
return result;
} else if (parameter.get_name() == "SkipDequantizationNORMAL") {
} else if (parameter.get_name().find("SkipDequantizationNORMAL") != std::string::npos) {
config_.SkipDequantizationNORMAL = parameter.as_bool();
return result;
} else if (parameter.get_name() == "SkipDequantizationCOLOR") {
} else if (parameter.get_name().find("SkipDequantizationCOLOR") != std::string::npos) {
config_.SkipDequantizationCOLOR = parameter.as_bool();
return result;
} else if (parameter.get_name() == "SkipDequantizationTEX_COORD") {
} else if (parameter.get_name().find("SkipDequantizationTEX_COORD") != std::string::npos) {
config_.SkipDequantizationTEX_COORD = parameter.as_bool();
return result;
} else if (parameter.get_name() == "SkipDequantizationGENERIC") {
} else if (parameter.get_name().find("SkipDequantizationGENERIC") != std::string::npos) {
config_.SkipDequantizationGENERIC = parameter.as_bool();
return result;
}
Expand Down

0 comments on commit bace25f

Please sign in to comment.