Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
po
Browse files Browse the repository at this point in the history
  • Loading branch information
takayuki5168 committed Jun 16, 2024
1 parent f8ad8ba commit 6c5bd89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tmp/lanelet2_extension_python/src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ lanelet::ArcCoordinates getArcCoordinates(
static constexpr size_t message_header_length = 8u;
serialized_msg.reserve(message_header_length + pose_byte.size());
serialized_msg.get_rcl_serialized_message().buffer_length = pose_byte.size();
for (size_t i = 0; i < pose_byte.size(); ++i) {
serialized_msg.get_rcl_serialized_message().buffer[i] = static_cast<char>(pose_byte[i]);
}
char * po = new char[pose_byte.size()];
snprintf(po, pose_byte.size(), "%s", pose_byte.c_str());
serialized_msg.get_rcl_serialized_message().buffer = reinterpret_cast<unsigned char *>(po);
geometry_msgs::msg::Pose pose;
static rclcpp::Serialization<geometry_msgs::msg::Pose> serializer;
serializer.deserialize_message(&serialized_msg, &pose);
Expand Down

0 comments on commit 6c5bd89

Please sign in to comment.