Ros2 service String providing unexpected Result �2���
Hi, I am using : kernel Linux 5.8.0-50generic(x86_64) Distribution Ubuntu 20.04.2LTS ROS2-Foxy C++ std 14 I am trying to create a service In which i passing two string and expected to get a concatinated string but i am gettin g unexpected results. Here are the output texts
SERVICE OUTPUT:-
[INFO] [1620193993.198502097] [rclcpp]: Ready to add two string.
[WARN] [1620193993.278931507] [rclcpp]: this is what i am receiving 123
[INFO] [1620193993.279032788] [rclcpp]: Incoming request
a: �.��� b: �2���
[INFO] [1620193993.279054157] [rclcpp]: sending back response: [�2���]
[WARN] [1620195212.142007473] [rclcpp]: this is what i am receiving 123
[INFO] [1620195212.142103931] [rclcpp]: Incoming request
a: �.��� b: �2���
[INFO] [1620195212.142131196] [rclcpp]: sending back response: [�2���]
CLIENT SIDE TEXT:-
(FIRST ATTEMP)
[INFO] [1620195212.073202455] [rclcpp]: this is what we are sending @mG��
[INFO] [1620195212.142851611] [rclcpp]: Result: @mG��
(SECOND ATTEMPT)
[INFO] [1620193990.932057565] [rclcpp]: service not available, waiting again...
[INFO] [1620193991.932632967] [rclcpp]: service not available, waiting again...
[INFO] [1620193992.933087641] [rclcpp]: service not available, waiting again...
[INFO] [1620193993.279721272] [rclcpp]: Result: ��H;�
I am attaching github link for source code:- https://github.com/aniketkalra11/rcl_...