Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pandar_description): add pandar_qt128 description #44

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions pandar_description/urdf/pandar_qt128.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0"?>
<robot name="pandar_qt128" xmlns:xacro="http://ros.org/wiki/xacro">
<!-- Define materials -->
<material name="gray_material">
<color rgba="0.9 0.9 0.9 1.0"/>
</material>

<xacro:macro name="PandarQT-128" params="name parent x y z roll pitch yaw">
Copy link
Contributor Author

@TomohitoAndo TomohitoAndo Jul 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming convention of PandarQT-128 complies with PandarOT-128

<xacro:macro name="PandarOT-128" params="name parent x y z roll pitch yaw">

<!-- Joint for LiDAR base link -->
<joint name="${name}_base_mount_joint" type="fixed">
<origin rpy="${roll} ${pitch} ${yaw}" xyz="${x} ${y} ${z}"/>
<parent link="${parent}"/>
<child link="${name}_base_link"/>
</joint>
<!-- Joint for Laser Firing Position -->
<joint name="${name}_base_scan_joint" type="fixed">
<origin xyz="0 0 0.0582" rpy="0 0 0"/>
<parent link="${name}_base_link"/>
<child link="${name}"/>
</joint>

<!-- Link for LiDAR base link -->
<link name="${name}_base_link">
<!-- LiDAR visualization from bottom -->
<visual>
<geometry>
<cylinder length="0.029" radius="0.043"/>
</geometry>
<origin xyz="0 0 0.0144" rpy="0 0 0"/>
<material name="gray_material"/>
</visual>
<visual>
<geometry>
<cylinder length="0.0481" radius="0.043"/>
</geometry>
<origin xyz="0 0 0.0528" rpy="0 0 0"/>
<material name="gray_material"/>
</visual>
<visual>
<geometry>
<cylinder length="0.007" radius="0.043"/>
</geometry>
<origin xyz="0 0 0.08" rpy="0 0 0"/>
<material name="gray_material"/>
</visual>
<!-- LiDAR connector visualization -->
<visual>
<geometry>
<cylinder length="0.015" radius="0.0057"/>
Copy link
Contributor Author

@TomohitoAndo TomohitoAndo Jul 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The connector is actually ellipse, but simply define as cylinder here.
image

</geometry>
<origin xyz="0 0.051 0.0144" rpy="1.57 0 0"/>
<material name="gray_material"/>
</visual>
</link>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<inertial> has meaningless value currently, and this causes following ERROR. So I removed.
[ERROR 1720051304.540860749] [rviz2]: The link is static or has unrealistic inertia, so the equivalent inertia box will not be shown.

<inertial>
<mass value="0.0"/>
<origin xyz="0 0 0"/>
<inertia ixx="0" ixy="0" ixz="0" iyy="0" iyz="0" izz="0"/>
</inertial>


<!-- Link for Laser Firing Position -->
<link name="${name}"/>
</xacro:macro>
</robot>
Loading