blob: cc1649b10cd34f1c822cbda47e7451a77674b0f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# HG changeset patch
# User Steve Peters <scpeters@osrfoundation.org>
# Date 1430782295 25200
# Branch issue_1074
# Node ID 05b7ee5db6f524e19b6cca54d66208cb48a0854c
# Parent 2cbd32c6246166f6f50af3503553180e7c1cd4a4
Fix build when compiled against bullet 2.83
diff --git a/gazebo/physics/bullet/BulletHinge2Joint.cc b/gazebo/physics/bullet/BulletHinge2Joint.cc
--- a/gazebo/physics/bullet/BulletHinge2Joint.cc
+++ b/gazebo/physics/bullet/BulletHinge2Joint.cc
@@ -211,8 +211,12 @@
return math::Angle();
}
- btRotationalLimitMotor *motor =
- this->bulletHinge2->getRotationalLimitMotor(_index);
+#ifndef LIBBULLET_VERSION_GT_282
+ btRotationalLimitMotor
+#else
+ btRotationalLimitMotor2
+#endif
+ *motor = this->bulletHinge2->getRotationalLimitMotor(_index);
if (motor)
return motor->m_hiLimit;
@@ -229,8 +233,12 @@
return math::Angle(0.0);
}
- btRotationalLimitMotor *motor =
- this->bulletHinge2->getRotationalLimitMotor(_index);
+#ifndef LIBBULLET_VERSION_GT_282
+ btRotationalLimitMotor
+#else
+ btRotationalLimitMotor2
+#endif
+ *motor = this->bulletHinge2->getRotationalLimitMotor(_index);
if (motor)
return motor->m_loLimit;
|