ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I don't know what was causing the problem, but I managed to solve it like this:

  • I uninstalled gtsam by executing xargs rm -rf < install_manifest.txt from the build directory of the gtsam package, as described here.
  • I deleted the whole gtsam package directory with sudo rm -r gtsam/
  • I downloaded again the gtsam package by cloning the repository from here: git clone https://github.com/borglab/gtsam.git
  • I reinstalled the package from source, as described here. Note: I changed the make check and make install commands to sudo make check and sudo make install respectively.

Now the values are displayed as expected:

Final Result:

Values with 5 values:
Value 1: (gtsam::Pose2)
(-3.62586e-13, -1.35991e-12, -5.28358e-13)

Value 2: (gtsam::Pose2)
(2, -3.02085e-12, -7.54546e-13)

Value 3: (gtsam::Pose2)
(4, -3.9288e-11, 1.5708)

Value 4: (gtsam::Pose2)
(4, 2, 3.14159)

Value 5: (gtsam::Pose2)
(2, 2, -1.5708)