25 double lxy_inv = 1.0 / lxy;
26 inverse_matrix_ << 1, 1, 1, 1, -1, 1, 1, -1, -lxy_inv, lxy_inv, -lxy_inv, lxy_inv;
27 forward_matrix_ << 1, -1, -lxy, 1, 1, lxy, 1, 1, -lxy, 1, -1, lxy;
32 wheel_velocity(1) = wheel_velocity(1) * -1;
33 wheel_velocity(3) = wheel_velocity(3) * -1;
40 wheel_cmd(1) = wheel_cmd(1) * -1;
41 wheel_cmd(3) = wheel_cmd(3) * -1;
MecanumController(double lx, double ly, double r)
Eigen::Matrix< double, 3, 4 > inverse_matrix_
Eigen::Vector4d twistToWheel(Eigen::Vector3d twist)
Eigen::Matrix< double, 4, 3 > forward_matrix_
Eigen::Vector3d wheelToTwist(Eigen::Vector4d wheel_velocity)