From 51df8e97d267f8d97cb00ae5181cd5e002bd1127 Mon Sep 17 00:00:00 2001
From: Chris Iverach-Brereton <59611394+civerachb-cpr@users.noreply.github.com>
Date: Mon, 9 Dec 2024 16:22:36 -0500
Subject: [PATCH] Add plugins to get the PTZ joint states out of gazebo and
into ROS (#126)
---
.../urdf/axis/axis_dome_ptz.urdf.xacro | 8 ++++++++
.../urdf/axis/axis_q62.urdf.xacro | 16 ++++++++++++++--
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/clearpath_sensors_description/urdf/axis/axis_dome_ptz.urdf.xacro b/clearpath_sensors_description/urdf/axis/axis_dome_ptz.urdf.xacro
index 7f8c482..f5a7ad1 100644
--- a/clearpath_sensors_description/urdf/axis/axis_dome_ptz.urdf.xacro
+++ b/clearpath_sensors_description/urdf/axis/axis_dome_ptz.urdf.xacro
@@ -112,6 +112,14 @@
2.61
$(arg namespace)/sensors/${prefix}/cmd_tilt_vel
+
+ ${prefix}_pan_joint
+ $(arg namespace)/sensors/${prefix}/pan_joint_state
+
+
+ ${prefix}_tilt_joint
+ $(arg namespace)/sensors/${prefix}/tilt_joint_state
+
Gazebo/Black
diff --git a/clearpath_sensors_description/urdf/axis/axis_q62.urdf.xacro b/clearpath_sensors_description/urdf/axis/axis_q62.urdf.xacro
index ef44c1b..6fcf673 100644
--- a/clearpath_sensors_description/urdf/axis/axis_q62.urdf.xacro
+++ b/clearpath_sensors_description/urdf/axis/axis_q62.urdf.xacro
@@ -97,14 +97,18 @@
-
+
+
+
-
+
+
+
@@ -138,6 +142,14 @@
2.61
$(arg namespace)/sensors/${prefix}/cmd_tilt_vel
+
+ ${prefix}_pan_joint
+ $(arg namespace)/sensors/${prefix}/pan_joint_state
+
+
+ ${prefix}_tilt_joint
+ $(arg namespace)/sensors/${prefix}/tilt_joint_state
+