Skip to content

Commit

Permalink
fix: recover radar.xacro to make gen1 operational
Browse files Browse the repository at this point in the history
Signed-off-by: N-Eiki <[email protected]>
  • Loading branch information
N-Eiki committed Jun 18, 2024
1 parent 573a281 commit 9d07d76
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions aip_xx1_description/urdf/radar.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:macro name="radar_macro" params="name parent x y z roll pitch yaw">
<xacro:property name="mass" value="0.01" />

<joint name="${name}_base_mount_joint" type="fixed">
<origin rpy="${roll} ${pitch} ${yaw}" xyz="${x} ${y} ${z}"/>
<parent link="${parent}"/>
<child link="${name}"/>
</joint>

<link name="${name}">
<visual>
<geometry>
<box size="0.03 0.1 0.1"/>
</geometry>
<origin rpy="0 0 0" xyz="0 0 0"/>
<material name="black">
<color rgba="0.1 0.1 0.1 1.0"/>
</material>
</visual>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="${mass}"/>
<inertia ixx="${(0.03*0.03+0.03*0.03)*mass/12.0}" ixy="0.0" ixz="0.0"
iyy="${(0.1*0.1+0.1*0.1)*mass/12.0}" iyz="0.0"
izz="${(0.1*0.1+0.1*0.1)*mass/12.0}"/>
</inertial>
</link>
</xacro:macro>
</robot>

0 comments on commit 9d07d76

Please sign in to comment.