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
What is .pbstream and can I read it #460
Comments
Hi, yes and no. The |
After I get a |
Yes, for example. It's a normal protocol buffer message: https://developers.google.com/protocol-buffers/docs/reference/cpp-generated#repeatedmessage |
Great, thanks! |
So reading this into python will be a little more intricate? |
But only a tiny bit. Using Python's |
@myu20 Hi, I want to extract data from pbstream. How do you extract trajectory from pbstream? Can you share your code for extracting data? I look forward to your reply. |
@woshidaye Hi, I used the following code:
You can access the trajectories with Relevant protos: pose_graph trajectory |
@myu20 Thank you for your answer. I have another question.I want to save the submaps and pose-graph. Does the pbstream file contain this data? If not, what are your suggestions for saving this information? Looking forward to your reply again. Thank you. |
@woshidaye As I mentioned in my previous comment, you can read the pose graph with
I imagine you can read the submaps in a similar way. I would suggest looking at the serialization proto and the WritePbStream method to see what you can read from the pbstream file. All of the relevant protos are probably in cartographer/cartographer/mapping/proto. |
@myu20 Thank you very much. |
@myu20 |
mean_..._in_column was broken in cartographer-project#423.
@woshidaye Have you solved the problem? I met the same problem to compile the code. Thanks! |
https://github.com/meyerjo/cartographer-read-pbstream this shows how one can read the pbstream file |
Hi, I initially installed Cartographer in June 2017. At that time the trajectory output was a
.pb
file, from which I could get a human readable version with the commandprotoc --decode cartographer.mapping.proto.Trajectory -I. $(find . -name '*.proto') < ~/.ros/map.pb
. The output was a timestamped trajectory of the formToday I used
git pull
to update Cartographer and now Cartographer outputs a.pbstream
. Does the.pbstream
also contain a timestamped trajectory and is there a command to get a human readable version of it?Thank you!
The text was updated successfully, but these errors were encountered: