When I do
rosrun ros_essentials_cpp talker.py
and
rosrun ros_essentials_cpp listener.py
I get the following error in talker.py Console....
rospy.exceptions.ROSSerializationException: <class 'struct.error'>: 'argument for 's' must be a bytes object' when writing 'b'hello world 19''
I tried converting /opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/_String.py
In function def serialize(self,buff) I have added
_x=bytes(_x,'utf-8')
Then everything goes fine.
But Is there any solution to it in ros_essentials_cpp code itself so that no modification could be done to _String.py?