TricycleCtrlTypes.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 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 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef COB_TRICYCLE_CONTROLLER_TRICYCLECTRLTYPES_H
19 #define COB_TRICYCLE_CONTROLLER_TRICYCLECTRLTYPES_H
20 
21 #include <urdf/model.h>
24 #include <tf2/LinearMath/Vector3.h>
25 
26 
28  double velX;
29  double velY;
30  double rotTheta;
31 
32  PlatformState() : velX(0.0), velY(0.0), rotTheta(0.0) {}
33 };
34 
35 struct WheelState{
36  std::string steer_name, drive_name;
37 
38  double steer_pos;
39  double steer_vel;
40  double drive_pos;
41  double drive_vel;
42 
43  double pos_x;
44  double pos_y;
45 
46  double radius;
47  double sign;
48 
49  WheelState() : steer_pos(0.0), steer_vel(0.0), drive_pos(0.0), drive_vel(0.0),
50  pos_x(0.0), pos_y(0.0),
51  radius(0.0), sign(1.0)
52  {}
53 };
54 
55 
56 #endif
std::string steer_name


cob_tricycle_controller
Author(s): Felix Messmer
autogenerated on Thu Apr 8 2021 02:39:57