Skip to content

Commit

Permalink
Add a sensor for the TCP pose (#197)
Browse files Browse the repository at this point in the history
* Add a sensor for the TCP pose

* Use quaternion notation for rotation state interfaces

(cherry picked from commit ea0c6b5)

# Conflicts:
#	urdf/inc/ur_sensors.xacro
  • Loading branch information
fmauch authored and mergify[bot] committed Oct 10, 2024
1 parent 5f15aa6 commit b2355af
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions urdf/inc/ur_sensors.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="ur_sensors" params="tf_prefix">
<sensor name="${tf_prefix}tcp_fts_sensor">
<state_interface name="force.x"/>
<state_interface name="force.y"/>
<state_interface name="force.z"/>
<state_interface name="torque.x"/>
<state_interface name="torque.y"/>
<state_interface name="torque.z"/>
</sensor>
<sensor name="${tf_prefix}tcp_pose">
<state_interface name="position.x"/>
<state_interface name="position.y"/>
<state_interface name="position.z"/>
<state_interface name="orientation.x"/>
<state_interface name="orientation.y"/>
<state_interface name="orientation.z"/>
<state_interface name="orientation.w"/>
</sensor>
</xacro:macro>
</robot>

0 comments on commit b2355af

Please sign in to comment.