Skip to content

Client for ws-protocol in python #991

Answered by defunctzombie
EnzoGhisoni asked this question in Q&A
Discussion options

You must be logged in to vote

We don't have a python client library. The challenge you will have with decoding the raw ROS2 CDR data in python is that you need to lookup (or build at runtime) a deserializer for the specific message you want to read. It looks like you understand some part of that by trying to invoke the "deserialize_message" method from rclpy with the String type. Is that the type of the message you are trying to deserialize?

An error like AttributeError: 'bytes' object has no attribute 'seekable'. indicates to me that you are passing some sort of object that deserialize_message does not support. This is a more ROS 2 specific question so you might have more luck asking on the ROS 2 support forums on wh…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by EnzoGhisoni
Comment options

You must be logged in to vote
1 reply
@achim-k
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants