Skip to content

Commit

Permalink
micro-ROS rolling Library auto-update 15-09-2023 06:08
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 authored Sep 15, 2023
1 parent 01a0249 commit 10bfbde
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion built_packages
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://github.com/ros2/common_interfaces.git 366eea24ffce6c87f8860cbcd27f4863f4
https://github.com/ros2/example_interfaces.git 4d7d086e4791e1839fecb9c50a1291d4056b916f
https://github.com/ros2/libyaml_vendor.git 4dbe69b952379b39062b9c98898cf1a1cdee9a56
https://github.com/ros2/rcl.git feb775a49a3c32eb2c619baaff5651c0aa2d099a
https://github.com/ros2/rcl_interfaces.git fa5d52c30e32d3ab5a85b7fbb36c8a75280e4c9b
https://github.com/ros2/rcl_interfaces.git 7f4d0d6b0509452b0d76af6122cdf5251919ecc9
https://github.com/ros2/rcl_logging.git 014239dd80ab3de2a847af80f23d24da6438ecb7
https://github.com/ros2/rclc 169b246f738a1b5604423f6187d27dc770781871
https://github.com/ros2/rcpputils.git 9115db1b094418910900859448b237eb0ac713b0
Expand Down
26 changes: 24 additions & 2 deletions libmicroros/include/test_msgs/message_fixtures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <limits>
#include <memory>
#include <vector>
#include <utility>
#include <string>

#include "test_msgs/msg/arrays.hpp"
#include "test_msgs/msg/basic_types.hpp"
Expand All @@ -36,6 +38,26 @@
#include "test_msgs/msg/unbounded_sequences.hpp"
#include "test_msgs/msg/w_strings.hpp"

static inline std::string
from_u8string(const std::string & s)
{
return s;
}

static inline std::string
from_u8string(std::string && s)
{
return std::move(s);
}

#if defined(__cpp_lib_char8_t)
static inline std::string
from_u8string(const std::u8string & s)
{
return std::string(s.begin(), s.end());
}
#endif

static inline std::vector<test_msgs::msg::Empty::SharedPtr>
get_messages_empty()
{
Expand Down Expand Up @@ -160,8 +182,8 @@ get_messages_strings()
}
{
auto msg = std::make_shared<test_msgs::msg::Strings>();
msg->string_value = u8"Hell\u00F6 W\u00F6rld!"; // using umlaut
msg->bounded_string_value = u8"Hell\u00F6 W\u00F6rld!"; // using umlaut
msg->string_value = from_u8string(u8"Hell\u00F6 W\u00F6rld!"); // using umlaut
msg->bounded_string_value = from_u8string(u8"Hell\u00F6 W\u00F6rld!"); // using umlaut
messages.push_back(msg);
}
{
Expand Down

0 comments on commit 10bfbde

Please sign in to comment.