Skip to content

Commit

Permalink
Added requested receiver tf
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Delicat <[email protected]>
  • Loading branch information
delihus committed Oct 29, 2024
1 parent 99e0189 commit 4190782
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions urdf/wibotic_station.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<xacro:arg name="device_namespace" default="" />
<xacro:arg name="apriltag_image_path" default="" />
<xacro:arg name="apriltag_size" default="0.15" />
<xacro:arg name="apriltag_size" default="0.07" />

<xacro:macro name="wibotic_station"
params="device_namespace:=None parent_link xyz rpy">
Expand All @@ -32,7 +32,7 @@
<xacro:property name="prefix" value="${device_namespace}_" />
</xacro:unless>

<joint name="${parent_link.rstrip('_link')}_to_${prefix}wibotic_station_link_joint" type="fixed">
<joint name="${parent_link.rstrip('_link')}_to_${prefix}wibotic_station_joint" type="fixed">
<origin xyz="${xyz}" rpy="${rpy}" />
<parent link="${parent_link}" />
<child link="${prefix}wibotic_station_link" />
Expand Down Expand Up @@ -67,6 +67,16 @@
</inertial>
</link>

<joint name="${prefix}wibotic_station_to_${prefix}wibotic_receiver_requested_pose_joint" type="fixed">
<!-- This shouldbe when docking is released for panther-docker
<origin xyz="0.05 0.0 0.295" rpy="0.0 0.0 ${pi}" /> -->
<origin xyz="${0.05 + 0.30} 0.0 0.0" rpy="0.0 0.0 ${pi}" />
<parent link="${prefix}wibotic_station_link" />
<child link="${prefix}wibotic_receiver_requested_pose_link" />
</joint>

<link name="${prefix}wibotic_receiver_requested_pose_link" />

</xacro:macro>

<xacro:macro name="create_apriltag"
Expand Down Expand Up @@ -131,8 +141,8 @@

<xacro:property name="apriltag_size_prop" value="$(arg apriltag_size)" />
<xacro:wibotic_station
device_namespace="$(arg device_namespace)" parent_link="${prefix}${name}_image_link" xyz="-0.001 0.0 ${-apriltag_size_prop/2.0 - 0.125}"
rpy="0 0 0 " />
device_namespace="$(arg device_namespace)" parent_link="${prefix}${name}_image_link" xyz="0.21 0.0 0.115"
rpy="${pi} 0 0 " />

</xacro:macro>

Expand Down

0 comments on commit 4190782

Please sign in to comment.