mecanum_controller.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #pragma once
17 
18 #include <Eigen/Dense>
20 {
22 {
23 public:
24  MecanumController(double lx, double ly, double r);
25 
26  Eigen::Vector3d wheelToTwist(Eigen::Vector4d wheel_velocity);
27 
28  Eigen::Vector4d twistToWheel(Eigen::Vector3d twist);
29 
30 protected:
31  Eigen::Matrix<double, 4, 3> forward_matrix_;
32  Eigen::Matrix<double, 3, 4> inverse_matrix_;
33  double r_;
34 };
35 
36 } // namespace cob_mecanum_controller
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)


cob_mecanum_controller
Author(s):
autogenerated on Thu Apr 8 2021 02:39:42