Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any solution for ros_essentials_cpp - noetic for running talker.py and listener.py? #7

Open
saravanan1480 opened this issue Mar 30, 2021 · 0 comments

Comments

@saravanan1480
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant