From f48a17a4b30601ebb11e2f9e3e678fec8a73ebdc Mon Sep 17 00:00:00 2001
From: Stefano Colli <45536733+StefanoColli@users.noreply.github.com>
Date: Mon, 16 Dec 2024 14:59:25 +0100
Subject: [PATCH] Extract gimbal model (#70)
* gimbal: extract gimbal model for reusability
* Increase pitch joint limit
---
.../meshes/cgo3_camera_remeshed_v1.stl | Bin
.../cgo3_horizontal_arm_remeshed_v1.stl | Bin
.../meshes/cgo3_mount_remeshed_v1.stl | Bin
.../meshes/cgo3_vertical_arm_remeshed_v1.stl | Bin
models/gimbal/model.config | 11 +
models/gimbal/model.sdf | 357 +++++++++++++++++
models/x500_gimbal/model.sdf | 379 +-----------------
7 files changed, 375 insertions(+), 372 deletions(-)
rename models/{x500_gimbal => gimbal}/meshes/cgo3_camera_remeshed_v1.stl (100%)
rename models/{x500_gimbal => gimbal}/meshes/cgo3_horizontal_arm_remeshed_v1.stl (100%)
rename models/{x500_gimbal => gimbal}/meshes/cgo3_mount_remeshed_v1.stl (100%)
rename models/{x500_gimbal => gimbal}/meshes/cgo3_vertical_arm_remeshed_v1.stl (100%)
create mode 100644 models/gimbal/model.config
create mode 100644 models/gimbal/model.sdf
diff --git a/models/x500_gimbal/meshes/cgo3_camera_remeshed_v1.stl b/models/gimbal/meshes/cgo3_camera_remeshed_v1.stl
similarity index 100%
rename from models/x500_gimbal/meshes/cgo3_camera_remeshed_v1.stl
rename to models/gimbal/meshes/cgo3_camera_remeshed_v1.stl
diff --git a/models/x500_gimbal/meshes/cgo3_horizontal_arm_remeshed_v1.stl b/models/gimbal/meshes/cgo3_horizontal_arm_remeshed_v1.stl
similarity index 100%
rename from models/x500_gimbal/meshes/cgo3_horizontal_arm_remeshed_v1.stl
rename to models/gimbal/meshes/cgo3_horizontal_arm_remeshed_v1.stl
diff --git a/models/x500_gimbal/meshes/cgo3_mount_remeshed_v1.stl b/models/gimbal/meshes/cgo3_mount_remeshed_v1.stl
similarity index 100%
rename from models/x500_gimbal/meshes/cgo3_mount_remeshed_v1.stl
rename to models/gimbal/meshes/cgo3_mount_remeshed_v1.stl
diff --git a/models/x500_gimbal/meshes/cgo3_vertical_arm_remeshed_v1.stl b/models/gimbal/meshes/cgo3_vertical_arm_remeshed_v1.stl
similarity index 100%
rename from models/x500_gimbal/meshes/cgo3_vertical_arm_remeshed_v1.stl
rename to models/gimbal/meshes/cgo3_vertical_arm_remeshed_v1.stl
diff --git a/models/gimbal/model.config b/models/gimbal/model.config
new file mode 100644
index 0000000..ef6f19b
--- /dev/null
+++ b/models/gimbal/model.config
@@ -0,0 +1,11 @@
+
+
+ gimbal
+ 1.0
+ model.sdf
+
+ Stefano Colli
+ stefano@auterion.com
+
+ Gimbal with camera model
+
diff --git a/models/gimbal/model.sdf b/models/gimbal/model.sdf
new file mode 100644
index 0000000..46d2ce8
--- /dev/null
+++ b/models/gimbal/model.sdf
@@ -0,0 +1,357 @@
+
+
+
+ false
+ false
+
+
+
+
+ -0.02552 0 -0.08136 0 0 0
+ 0.1
+
+ 0.001
+ 0
+ 0
+ 0.001
+ 0
+ 0.001
+
+
+
+
+
+ 0.001 0.001 0.001
+ model://gimbal/meshes/cgo3_mount_remeshed_v1.stl
+
+
+
+ .175 .175 .175 1.0
+ .175 .175 .175 1.0
+ .175 .175 .175 1.0
+
+
+
+
+
+
+
+ 0 0 -0.1283 0 0 0
+ 0.1
+
+ 0.001
+ 0
+ 0
+ 0.001
+ 0
+ 0.001
+
+
+
+
+
+ 0.001 0.001 0.001
+ model://gimbal/meshes/cgo3_vertical_arm_remeshed_v1.stl
+
+
+
+ .175 .175 .175 1.0
+ .175 .175 .175 1.0
+ .175 .175 .175 1.0
+
+
+
+
+
+
+ cgo3_vertical_arm_link
+ cgo3_mount_link
+ -0.02552 0 0 0 0 0
+
+ 0 0 -1
+
+ -1e+16
+ 1e+16
+ 100
+ -1
+
+
+ 0.1
+
+
+
+
+ 1
+
+ 0.1
+ 0.2
+
+
+
+
+
+
+
+
+ -0.0213 0 -0.162 0 0 0
+ 0.1
+
+ 0.001
+ 0
+ 0
+ 0.001
+ 0
+ 0.001
+
+
+
+
+
+ 0.001 0.001 0.001
+ model://gimbal/meshes/cgo3_horizontal_arm_remeshed_v1.stl
+
+
+
+ .175 .175 .175 1.0
+ .175 .175 .175 1.0
+ .175 .175 .175 1.0
+
+
+
+
+
+
+ cgo3_horizontal_arm_link
+ cgo3_vertical_arm_link
+ 0 0 -0.1619 0 0 0
+
+ -1 0 0
+
+ -0.785398
+ 0.785398
+ 100
+ -1
+
+
+ 0.1
+
+
+
+
+ 1
+
+ 0.1
+ 0.2
+
+
+
+
+
+
+
+
+ -0.0412 0 -0.162 0 0 0
+ 0.1
+
+ 0.001
+ 0
+ 0
+ 0.001
+ 0
+ 0.001
+
+
+
+ -0.0412 0 -0.162 0 0 0
+
+
+ 0.035
+
+
+
+
+
+ 1
+ 1
+
+
+
+
+ 1e+8
+ 1
+ 0.01
+ 0.001
+
+
+
+
+
+
+
+ 0.001 0.001 0.001
+ model://gimbal/meshes/cgo3_camera_remeshed_v1.stl
+
+
+
+ .175 .175 .175 1.0
+ .175 .175 .175 1.0
+ .175 .175 .175 1.0
+
+
+
+
+ 1
+ 250
+ -0.0412 0 -0.162 0 0 0
+
+
+
+
+ 0
+ 0.00018665
+ 3.8785e-05
+ 1000
+
+
+
+
+ 0
+ 0.00018665
+ 3.8785e-05
+ 1000
+
+
+
+
+ 0
+ 0.00018665
+ 3.8785e-05
+ 1000
+
+
+
+
+
+
+ 0
+ 0.00186
+ 0.006
+ 300
+
+
+
+
+ 0
+ 0.00186
+ 0.006
+ 300
+
+
+
+
+ 0
+ 0.00186
+ 0.006
+ 300
+
+
+
+
+
+
+
+ -0.074 0 -0.162 0 0 3.14
+
+ 2.0
+
+ R8G8B8
+ R8G8B8
+ 1280
+ 720
+
+
+ 0.05
+ 15000
+
+
+ 1
+ 30
+ true
+ camera
+
+
+
+
+
+ camera_link
+ cgo3_horizontal_arm_link
+ -0.0412 0 -0.162 0 0 0
+
+ 0 1 0
+
+ -2.35619
+ 0.7854
+ 100
+ -1
+
+
+ 0.1
+
+
+
+
+ 1
+
+ 0.1
+ 0.2
+
+
+
+
+
+
+
+
+ cgo3_horizontal_arm_joint
+ command/gimbal_roll
+ 0.8
+ 0.035
+ 0.02
+ 0
+ 0
+ 0.3
+ -0.3
+
+
+
+ cgo3_camera_joint
+ command/gimbal_pitch
+ 0.8
+ 0.01245
+ 0.015
+ 0
+ 0
+ 0.3
+ -0.3
+
+
+
+ cgo3_vertical_arm_joint
+ command/gimbal_yaw
+ 0.3
+ 0.01245
+ 0.015
+ 0
+ 0
+ 0.3
+ -0.3
+
+
+
+
diff --git a/models/x500_gimbal/model.sdf b/models/x500_gimbal/model.sdf
index 14386e1..7353b6a 100644
--- a/models/x500_gimbal/model.sdf
+++ b/models/x500_gimbal/model.sdf
@@ -2,380 +2,15 @@
- x500
+ model://x500
-
-
-
-
- 0 0 0.18 0 0 0
- 0.1
-
- 0.001
- 0
- 0
- 0.001
- 0
- 0.001
-
-
-
- 0.03 0 0.262 0 0 0
-
-
- 0.001 0.001 0.001
- model://x500_gimbal/meshes/cgo3_mount_remeshed_v1.stl
-
-
-
- .175 .175 .175 1.0
- .175 .175 .175 1.0
- .175 .175 .175 1.0
-
-
-
-
- cgo3_mount_link
+
+ model://gimbal
+ 0 0 0.26 0 0 3.14
+
+
base_link
- 0 0 0 0 0 0
-
- 0 0 1
-
- 0
- 0
- 100
- -1
-
-
- 1
-
-
-
-
- 1
-
-
-
-
-
-
-
- 0.05 0 0.13 0 0 0
- 0.1
-
- 0.001
- 0
- 0
- 0.001
- 0
- 0.001
-
-
-
- 0.03 0 0.262 0 0 0
-
-
- 0.001 0.001 0.001
- model://x500_gimbal/meshes/cgo3_vertical_arm_remeshed_v1.stl
-
-
-
- .175 .175 .175 1.0
- .175 .175 .175 1.0
- .175 .175 .175 1.0
-
-
-
-
- cgo3_vertical_arm_link
- cgo3_mount_link
- 0.005 0 0 0 0 0
-
- 0 0 -1
-
- -1e+16
- 1e+16
- 100
- -1
-
-
- 0.1
-
-
-
-
- 1
-
-
- 0.1
- 0.2
-
-
-
-
-
-
-
-
- 0 0 0.1 0 0 0
- 0.1
-
- 0.001
- 0
- 0
- 0.001
- 0
- 0.001
-
-
-
- 0.03 0 0.262 0 0 0
-
-
- 0.001 0.001 0.001
- model://x500_gimbal/meshes/cgo3_horizontal_arm_remeshed_v1.stl
-
-
-
- .175 .175 .175 1.0
- .175 .175 .175 1.0
- .175 .175 .175 1.0
-
-
-
-
- cgo3_horizontal_arm_link
- cgo3_vertical_arm_link
- 0 0 0.1 0 0 0
-
- -1 0 0
-
- -0.785398
- 0.785398
- 100
- -1
-
-
- 0.1
-
-
-
-
- 1
-
- 0.1
- 0.2
-
-
-
-
-
-
-
- 0 0 0 0 0 3.141592
-
-
- 0.015 0 0.1 0 0 0
- 0.1
-
- 0.001
- 0
- 0
- 0.001
- 0
- 0.001
-
-
-
- 0.015 0 0.1 0 0 0
-
-
- 0.035
-
-
-
-
-
- 1
- 1
-
-
-
-
- 1e+8
- 1
- 0.01
- 0.001
-
-
-
-
-
- -0.03 0 0.262 0 0 3.141592
-
-
- 0.001 0.001 0.001
- model://x500_gimbal/meshes/cgo3_camera_remeshed_v1.stl
-
-
-
- .175 .175 .175 1.0
- .175 .175 .175 1.0
- .175 .175 .175 1.0
-
-
-
-
- 1
- 250
-
-
-
-
- 0
- 0.00018665
- 3.8785e-05
- 1000
-
-
-
-
- 0
- 0.00018665
- 3.8785e-05
- 1000
-
-
-
-
- 0
- 0.00018665
- 3.8785e-05
- 1000
-
-
-
-
-
-
- 0
- 0.00186
- 0.006
- 300
-
-
-
-
- 0
- 0.00186
- 0.006
- 300
-
-
-
-
- 0
- 0.00186
- 0.006
- 300
-
-
-
-
-
-
-
- 0 0 0.1 0 0 0
-
- 2.0
-
- R8G8B8
- R8G8B8
- 1280
- 720
-
-
- 0.05
- 15000
-
-
- 1
- 10
- true
- camera
-
-
-
- camera_link
- cgo3_horizontal_arm_link
- 0.01 0 0.1 0 0 0
-
- 0 -1 0
-
- -1.5708
- 0.7854
- 100
- -1
-
-
- 0.1
-
-
-
-
- 1
-
-
- 0.1
- 0.2
-
-
-
+ cgo3_mount_link
-
-
-
-
- cgo3_horizontal_arm_joint
- command/gimbal_roll
- 0.8
- 0.035
- 0.02
- 0
- 0
- 0.3
- -0.3
-
-
-
- cgo3_camera_joint
- command/gimbal_pitch
- 0.8
- 0.01245
- 0.015
- 0
- 0
- 0.3
- -0.3
-
-
-
- cgo3_vertical_arm_joint
- command/gimbal_yaw
- 0.3
- 0.01245
- 0.015
- 0
- 0
- 0.3
- -0.3
-
-