gtsam prints pointers instead of values
Hello. I'm trying to run some of the gtsam library examples in one of my nodes. When one of the print function is called (i.e. result.print("Final Result:\n");
) instead of printing values as shown in the tutorial, it prints pointers.
Final Result:
Values with 5 values:
Value 1: (gtsam::Pose2)
0x558a39e0fef0
Value 2: (gtsam::Pose2)
0x558a39e0ff50
Value 3: (gtsam::Pose2)
0x558a39e0cf10
Value 4: (gtsam::Pose2)
0x558a39e0cf70
Value 5: (gtsam::Pose2)
0x558a39e0cfd0
What can be the problem here? I installed the library with the procedure described here. Is it useful to uninstall and reinstall the library? and if it is, how can I do it without messing up with my nodes that already use gtsam?
Any kind of feedback is appreciated. Thanks in advance.
I use Ubuntu 18, ROS melodic and I have C++ nodes.
I'm sorry to have to do this for something so seemingly unimportant, but please don't post screenshots of terminal text in question on ROS Answers. It's all text, so there is no need. Just copy-paste the text from the terminal into your question text. Do make sure to format it properly by selecting the text and pressing
ctrl+k
(or clicking the Preformatted Text button (the one with101010
on it)).You don't need to post a new question, just edit your curent one. You can use the
edit
button/link for this.After you replace the screenshot with the error message itself, we can re-open your question.
@gvdhoorn it requires more than 200 points to reopen a question
that's why I wrote:
Sorry, i didn't notice. Thanks.