gtrll / gpmp2

Gaussian Process Motion Planner 2
Other
315 stars 98 forks source link

Unrecognized method, property, or field 'transform_from' for class 'gtsam.Pose2' #43

Closed barbosafs closed 3 years ago

barbosafs commented 3 years ago

Hi, I am running the examples but all 3 with a mobile base robot crash because matlab cannot find transform_from. I have already checked gtsam code and such a function exists there. I've been digging into it for a while but cannot seem to find a solution. Anyone has got any idea?

Below is the error returned by matlab.

Unrecognized method, property, or field 'transform_from' for class 'gtsam.Pose2'.

Error in gpmp2.plotPlanarMobileBase (line 9)
corner1 = pose.transform_from(Point2(vehsize(1)/2, vehsize(2)/2));

Error in MobileBaseFactorGraphExample (line 182)
    plotPlanarMobileBase(robot.fk_model(), p, [0.4 0.2], 'b', 1);
barbosafs commented 3 years ago

Ok, this was a silly one. The method is now called transformFrom.