allow method starting with uppercase letter to be wrapped in matlab. Wrap Pose3's AdjointMap and Adjoint operator

release/4.3a0
Duy-Nguyen Ta 2013-04-21 19:29:41 +00:00
parent 96f9ecaf53
commit b1b05887fc
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
* Methods
* - Constness has no effect
* - Specify by-value (not reference) return types, even if C++ method returns reference
* - Must start with a lowercase letter
* - Must start with a letter (upper or lowercase)
* - Overloads are supported
* Static methods
* - Must start with a letter (upper or lowercase) and use the "static" keyword
@ -495,8 +495,8 @@ virtual class Pose3 : gtsam::Value {
// Lie Group
static gtsam::Pose3 Expmap(Vector v);
static Vector Logmap(const gtsam::Pose3& p);
Matrix adjointMap() const;
Vector adjoint(const Vector& xi) const;
Matrix AdjointMap() const;
Vector Adjoint(Vector xi) const;
static Matrix wedge(double wx, double wy, double wz, double vx, double vy, double vz);
// Group Action on Point3

View File

@ -251,7 +251,7 @@ void Module::parseMarkup(const std::string& data) {
Rule returnType_p = void_p | pair_p | returnType1_p;
Rule methodName_p = lexeme_d[lower_p >> *(alnum_p | '_')];
Rule methodName_p = lexeme_d[(upper_p | lower_p) >> *(alnum_p | '_')];
Rule method_p =
(returnType_p >> methodName_p[assign_a(methodName)] >>