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

How to extract array in message binary data being read as string? #110

Open
imitatorgkw opened this issue Feb 20, 2023 · 1 comment
Open

Comments

@imitatorgkw
Copy link

I received data of type PointCloud2 for a topic, but it returned the unit8 data as a string. How can I read the correct content or set the type of reception?

Here is the data I received, which was the original of type unit8.

"HAHOQH8+tzxfS5U2AACAP5QNzkAcKQk+vESRNgAAgD+ZeM5AZ+N7Pl5+jTYAAIA/5uvNQODatj6TDIk2AACAP6EIz0BATvE+VbOFNgAAgD/hGc9ALI8VP7OjgTYAAIA/ugDOQIGgMT9JtHk2AACAP9OXzkDsFk8/ty5yNgAAgD+iec9AeShtP2PpajYAAIA/+RDPQBoDhT81HGI2AACAP5vczkBLm5M/aINZNgAAgD/o285A9WmiP4kWUTYAAIA/kg7PQJR8sT+TzUg2AACAP0B2z0CF4sA/HKJANgAAgD9CENBAo6fQP5KJODYAAIA/SA7PQJ3y3j9g8i42AACAP+0D0EANdO8/sPMmNgAAgD9zz21ATLSTP2+4szUAAIA/JSZhQIaUlD9TW6A1AACAPwqgW0B0bZk/bdSSNQAAgD+Rb1dAbeeePwKGhjUAAIA/fPJTQMuvpD9QxXU1AACAPyRAUkB9u6s/9NFgNQAAgD/saVBA2KOyP/zGSzUAAIA/n+5OQE/VuT92HTc1AACAP9b9TUBtiME/8t4iNQAAgD+9xUtAnA7IP0SXDTUAAIA/rMVLQDnG0D8xhfM0AACAP3fZTED7x9o/VT7MNAAAgD+vP09AToDmPy/YpDQAAIA/omJUQI+/9T9YkHo0AACAP2jxX0DMpwZAfkoqNAAAgD8hN9JA8c2CQCw7DDQAAIA/HmDTQJyliECI9zWzAACAP+fk0UCi5YxAvo9qtAAAgD/mPtNAYymTQIOa17QAAIA/ICqAPlNpakAdoH22AACAP5k7QD77c2tAoNuAtgAAgD9uY/49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AAgD/av11AgN4GwKHLnTYAAIA/z9xnQPy4B8Dg8qE2AACAP/KWckARkQjAxVGmNgAAgD8av3pAqJUHwDq4qDYAAIA//U+DQHpWCMDMdK02AACAP3CiiUBwDwnAAnSyNgAAgD8DYpBAqMAJwPm9tzYAAIA/XZiXQDlnCsAQWL02AACAP1dRn0DNAAvAgknDNgAAgD9NmqdApooLwHqayTYAAIA/cIKwQJkBDMApVNA2AACAP38ZukC5YAzAMX/XNgAAgD8dy8dAxhoPwCT74jYAAIA/s8bKQFpfCcDA4uE2AACAP3GVy0DOEQLA0VHeNgAAgD+3vcpAZIrzv2H92DYAAIA/V87LQKl15b9swtU2AACAPwZMy0CWqNW//OXQNgAAgD/F+8pAsUbGv1dMzDYAAIA/U3XMQFDBuL9Dhsk2AACAP717zEDZ4am/kVDFNgAAgD/TscxAFESbvyJQwTYAAIA/nJjLQIDGi7/ZHLw2AACAP607zEDFU3u/MZC4NgAAgD+XEM1At09fv0EvtTYAAIA/ErLMQFX8Qb+iv7A2AACAP9SazEC+IiW/CZWsNgAAgD+GyMxARJ4Iv4yoqDYAAIA/VT3NQO2c2L4i96Q2AACAP3W4zEDf/56+k36gNgAAgD8Tx81ArItNvvdDnTYAAIA/yO/NQHnktr2ZU5k2AACAPw=="}

@gonzalocasas
Copy link
Member

As mentioned here, the data is base64 encoded, so a basic decoding should be straight-forward. Please let me know if you manage to decode it.

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

2 participants