Files
ROS2_WS/simulation_ws/trolley/urdf/out.tmp

209 lines
6.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from miniBox.urdf.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<robot name="box_bot">
<!-- base_link-->
<link name="base_link">
<visual>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.06"/>
<geometry>
<box size="0.4 0.3 0.12"/>
</geometry>
<material name="Gray">
<color rgba="0.5 0.5 0.5 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.06"/>
<geometry>
<box size="0.4 0.3 0.12"/>
</geometry>
</collision>
<!-- 简化惯性 -->
<inertial>
<origin rpy="0 0 0" xyz="0 0 0.06"/>
<mass value="5.0"/>
<!-- 盒子惯性Ixx = 1/12 m (y^2 + z^2) 等 -->
<inertia ixx="0.04349999999999999" ixy="0" ixz="0" iyy="0.07266666666666667" iyz="0" izz="0.10416666666666666"/>
</inertial>
</link>
<link name="front_left_wheel_link">
<visual>
<origin rpy="1.5708 0.0 0.0" xyz="0.0 0.0 0.0"/>
<geometry>
<cylinder length="0.03" radius="0.05"/>
</geometry>
<material name="Black">
<color rgba="0.1 0.1 0.1 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.0"/>
<geometry>
<cylinder length="0.03" radius="0.05"/>
</geometry>
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="0.3"/>
<!-- 圆柱体惯性Ixx = Iyy = (1/12) m (3r^2 + h^2) 等 -->
<inertia ixx="0.001" ixy="0" ixz="0" iyy="0.001" iyz="0" izz="0.001"/>
</inertial>
</link>
<joint name="front_left_wheel_joint" type="continuous">
<parent link="base_link"/>
<child link="front_left_wheel_link"/>
<origin rpy="0.0 0.0 0.0" xyz="0.15000000000000002 0.15 0.05"/>
<!-- 轮子绕y轴旋转 -->
<axis xyz="0.0 1.0 0.0"/>
</joint>
<link name="front_right_wheel_link">
<visual>
<origin rpy="1.5708 0.0 0.0" xyz="0.0 0.0 0.0"/>
<geometry>
<cylinder length="0.03" radius="0.05"/>
</geometry>
<material name="Black">
<color rgba="0.1 0.1 0.1 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.0"/>
<geometry>
<cylinder length="0.03" radius="0.05"/>
</geometry>
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="0.3"/>
<!-- 圆柱体惯性Ixx = Iyy = (1/12) m (3r^2 + h^2) 等 -->
<inertia ixx="0.001" ixy="0" ixz="0" iyy="0.001" iyz="0" izz="0.001"/>
</inertial>
</link>
<joint name="front_right_wheel_joint" type="continuous">
<parent link="base_link"/>
<child link="front_right_wheel_link"/>
<origin rpy="0.0 0.0 0.0" xyz="0.15000000000000002 -0.15 0.05"/>
<!-- 轮子绕y轴旋转 -->
<axis xyz="0.0 1.0 0.0"/>
</joint>
<link name="rear_left_wheel_link">
<visual>
<origin rpy="1.5708 0.0 0.0" xyz="0.0 0.0 0.0"/>
<geometry>
<cylinder length="0.03" radius="0.05"/>
</geometry>
<material name="Black">
<color rgba="0.1 0.1 0.1 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.0"/>
<geometry>
<cylinder length="0.03" radius="0.05"/>
</geometry>
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="0.3"/>
<!-- 圆柱体惯性Ixx = Iyy = (1/12) m (3r^2 + h^2) 等 -->
<inertia ixx="0.001" ixy="0" ixz="0" iyy="0.001" iyz="0" izz="0.001"/>
</inertial>
</link>
<joint name="rear_left_wheel_joint" type="continuous">
<parent link="base_link"/>
<child link="rear_left_wheel_link"/>
<origin rpy="0.0 0.0 0.0" xyz="-0.25 0.15 0.05"/>
<!-- 轮子绕y轴旋转 -->
<axis xyz="0.0 1.0 0.0"/>
</joint>
<link name="rear_right_wheel_link">
<visual>
<origin rpy="1.5708 0.0 0.0" xyz="0.0 0.0 0.0"/>
<geometry>
<cylinder length="0.03" radius="0.05"/>
</geometry>
<material name="Black">
<color rgba="0.1 0.1 0.1 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.0"/>
<geometry>
<cylinder length="0.03" radius="0.05"/>
</geometry>
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="0.3"/>
<!-- 圆柱体惯性Ixx = Iyy = (1/12) m (3r^2 + h^2) 等 -->
<inertia ixx="0.001" ixy="0" ixz="0" iyy="0.001" iyz="0" izz="0.001"/>
</inertial>
</link>
<joint name="rear_right_wheel_joint" type="continuous">
<parent link="base_link"/>
<child link="rear_right_wheel_link"/>
<origin rpy="0.0 0.0 0.0" xyz="-0.25 -0.15 0.05"/>
<!-- 轮子绕y轴旋转 -->
<axis xyz="0.0 1.0 0.0"/>
</joint>
<!-- 雷达支架 -->
<!-- 通常放到轮心高度 -->
<link name="lidar_mount_link">
<visual>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.16999999999999998"/>
<geometry>
<box size="0.05 0.05 0.10"/>
</geometry>
<material name="Blue">
<color rgba="0.2 0.2 0.8 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.16999999999999998"/>
<geometry>
<box size="0.05 0.05 0.10"/>
</geometry>
</collision>
<!-- 简化惯性 -->
<inertial>
<origin rpy="0 0 0" xyz="0 0 0.16999999999999998"/>
<mass value="0.2"/>
<inertia ixx="0.0001" ixy="0" ixz="0" iyy="0.0001" iyz="0" izz="0.0001"/>
</inertial>
</link>
<joint name="lidar_mount_joint" type="fixed">
<parent link="base_link"/>
<child link="lidar_mount_link"/>
<!-- 前方: x正方向 -->
<origin rpy="0.0 0.0 0.0" xyz="0.15000000000000002 0 0"/>
</joint>
<!-- 四轮驱动插件(skid steer) -->
<gazebo>
<plugin filename="libgazebo_ros_skid_steer_drive.so" name="skid_steer_drive">
<ros>
<namespace>/</namespace>
</ros>
<!-- cmd_vel 输入 -->
<commandTopic>cmd_vel</commandTopic>
<!-- 里程计 -->
<odometryTopic>odom</odometryTopic>
<odometryFrame>odom</odometryFrame>
<robotBaseFrame>base_link</robotBaseFrame>
<!-- 四个轮子关节命名 -->
<leftFrontWheelJoint>front_left_wheel_joint</leftFrontWheelJoint>
<rightFrontWheelJoint>front_right_wheel_joint</rightFrontWheelJoint>
<leftRearWheelJoint>rear_left_wheel_joint</leftRearWheelJoint>
<rightRearWheelJoint>rear_right_wheel_joint</rightRearWheelJoint>
<!-- 几何参数 -->
<wheelSeparation>0.3</wheelSeparation>
<wheelDiameter>0.1</wheelDiameter>
<!-- 可调 -->
<wheelTorque>5.0</wheelTorque>
<updateRate>50</updateRate>
</plugin>
</gazebo>
</robot>