Skip to content

Commit

Permalink
Add plugins to get the PTZ joint states out of gazebo and into ROS (#126
Browse files Browse the repository at this point in the history
)
  • Loading branch information
civerachb-cpr authored Dec 9, 2024
1 parent c26ac0e commit 51df8e9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@
<cmd_max>2.61</cmd_max>
<topic>$(arg namespace)/sensors/${prefix}/cmd_tilt_vel</topic>
</plugin>
<plugin filename="gz-sim-joint-state-publisher-system" name="gz::sim::systems::JointStatePublisher">
<joint_name>${prefix}_pan_joint</joint_name>
<topic>$(arg namespace)/sensors/${prefix}/pan_joint_state</topic>
</plugin>
<plugin filename="gz-sim-joint-state-publisher-system" name="gz::sim::systems::JointStatePublisher">
<joint_name>${prefix}_tilt_joint</joint_name>
<topic>$(arg namespace)/sensors/${prefix}/tilt_joint_state</topic>
</plugin>
</gazebo>
<gazebo reference="${prefix}_link">
<material>Gazebo/Black</material>
Expand Down
16 changes: 14 additions & 2 deletions clearpath_sensors_description/urdf/axis/axis_q62.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,18 @@
<box size="0.03 0.09 0.01" />
</geometry>
<origin xyz="-0.01 0 0.05" rpy="0 0 0" />
<material name="black" />
<material name="black">
<color rgba="0 0 0 1" />
</material>
</visual>
<visual>
<geometry>
<box size="0.03 0.09 0.01" />
</geometry>
<origin xyz="-0.01 0.20 0.05" rpy="0 0 0" />
<material name="black" />
<material name="black">
<color rgba="0 0 0 1" />
</material>
</visual>
<inertial>
<origin xyz="0 0 0" rpy="0 0 0" />
Expand Down Expand Up @@ -138,6 +142,14 @@
<cmd_max>2.61</cmd_max>
<topic>$(arg namespace)/sensors/${prefix}/cmd_tilt_vel</topic>
</plugin>
<plugin filename="gz-sim-joint-state-publisher-system" name="gz::sim::systems::JointStatePublisher">
<joint_name>${prefix}_pan_joint</joint_name>
<topic>$(arg namespace)/sensors/${prefix}/pan_joint_state</topic>
</plugin>
<plugin filename="gz-sim-joint-state-publisher-system" name="gz::sim::systems::JointStatePublisher">
<joint_name>${prefix}_tilt_joint</joint_name>
<topic>$(arg namespace)/sensors/${prefix}/tilt_joint_state</topic>
</plugin>
</gazebo>
<gazebo reference="${prefix}_link">
<plugin filename="libgz-sim-sensors-system.so" name="gz::sim::systems::Sensors">
Expand Down

0 comments on commit 51df8e9

Please sign in to comment.