Working with Ouster Lidar and pointcloud2

14 Ansichten (letzte 30 Tage)
julien attiogbe
julien attiogbe am 9 Dez. 2019
Kommentiert: julien attiogbe am 10 Dez. 2019
Hello,
I am trying to apply this tutorial to my case where I work with Ouster's lidar data:
I don't know how to apply readXYZ() or readRGB() from a bagfile.
but I get a structure object, so the format is not compatible.
Can anyone help me with that?

Akzeptierte Antwort

Cam Salzberger
Cam Salzberger am 9 Dez. 2019
Hello Julien,
I haven't tried the Ouster data, but there are two options when reading messages from rosbag: you can read them in as structures or as message objects. If you use "DataFormat","struct", the read will generally be faster, but it is not currently usable with the convenience functions readXYZ and readRGB. I would suggest leaving off the "DataFormat" name-value pair to extract the messages as objects, then call the functions.
-Cam
  1 Kommentar
julien attiogbe
julien attiogbe am 10 Dez. 2019
Hi Cam,
Thanks for your reply, this is correct : )
I just needed to put it this way :
bag= rosbag('myFile.bag');
sel= select(bag,'Topic','/os1_cloud_node/points');
msg= readMessages(sel, 1: 30);
Then msg contains 1x1 PointCloud2 objects.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Specialized Messages finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by