Skip to content

Commit

Permalink
fix missing cpm_ts typos after pr #21
Browse files Browse the repository at this point in the history
  • Loading branch information
lreiher committed Jul 10, 2024
1 parent d007463 commit 6e256c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions etsi_its_conversion/etsi_its_conversion/src/Converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ void Converter::udpCallback(const udp_msgs::msg::UdpPacket::UniquePtr udp_msg) {
#else
publisher_cpm_ts_->publish(msg);
#endif
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_cpm_CollectivePerceptionMessage, asn1_structp);
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_cpm_ts_CollectivePerceptionMessage, asn1_structp);

} else {
#ifdef ROS1
Expand Down Expand Up @@ -590,7 +590,7 @@ void Converter::rosCallbackCpmTs(const etsi_its_cpm_ts_msgs::msg::CollectivePerc
RCLCPP_ERROR(this->get_logger(),
#endif
"Check of struct failed: %s", error_buffer);
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_cpm_CollectivePerceptionMessage, &asn1_struct);
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_cpm_ts_CollectivePerceptionMessage, &asn1_struct);
return;
}
asn_encode_to_new_buffer_result_t ret = asn_encode_to_new_buffer(0, ATS_UNALIGNED_BASIC_PER, &asn_DEF_cpm_ts_CollectivePerceptionMessage, &asn1_struct);
Expand All @@ -601,7 +601,7 @@ void Converter::rosCallbackCpmTs(const etsi_its_cpm_ts_msgs::msg::CollectivePerc
RCLCPP_ERROR(this->get_logger(),
#endif
"Failed to encode message: %s", ret.result.failed_type->xml_tag);
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_cpm_CollectivePerceptionMessage, &asn1_struct);
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_cpm_ts_CollectivePerceptionMessage, &asn1_struct);
free(ret.buffer);
return;
}
Expand Down Expand Up @@ -632,7 +632,7 @@ void Converter::rosCallbackCpmTs(const etsi_its_cpm_ts_msgs::msg::CollectivePerc
RCLCPP_DEBUG(this->get_logger(),
#endif
"Published CPM bitstring");
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_cpm_CollectivePerceptionMessage, &asn1_struct);
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_cpm_ts_CollectivePerceptionMessage, &asn1_struct);
free(ret.buffer);
}

Expand Down

0 comments on commit 6e256c8

Please sign in to comment.