Skip to content

Commit

Permalink
Fixed draco subscriber param names (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Dec 12, 2023
1 parent 9e01357 commit 7d3294d
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 @@ -61,19 +61,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 7d3294d

Please sign in to comment.