Files
p3dx-catkin/src/p3dx_description/urdf/pioneer3dx.xml
T
2024-01-15 12:27:47 +00:00

471 lines
15 KiB
XML

<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from pioneer3dx.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<!--
This is the xacro description of a Pioneer 3DX, to be used in rviz and gazebo.
Copyright (C) 2013 Rafael Berkvens rafael.berkvens@uantwerpen.be
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This project is based on work by Tracy Davies, where it was in turn based on
work original in ucs-ros-pkg.
-->
<robot name="pioneer3dx" xmlns:xacro="http://ros.org/wiki/xacro">
<!-- import all gazebo-customization elements, including gazebo colors -->
<gazebo>
<plugin filename="libgazebo_ros_control.so" name="gazebo_ros_control">
<robotNamespace>/p3dx</robotNamespace>
</plugin>
</gazebo>
<gazebo reference="base_link">
<material>Gazebo/Red</material>
</gazebo>
<gazebo reference="top_plate">
<material>Gazebo/Black</material>
</gazebo>
<gazebo reference="swivel">
<material>Gazebo/Grey</material>
</gazebo>
<gazebo reference="center_hubcap">
<material>Gazebo/Grey</material>
</gazebo>
<gazebo reference="center_wheel">
<material>Gazebo/Black</material>
<mu1>10.0</mu1>
<mu2>10.0</mu2>
<kp>1000000.0</kp>
<kd>1.0</kd>
</gazebo>
<gazebo reference="front_sonar">
<material value="Gazebo/Yellow"/>
</gazebo>
<gazebo>
<plugin filename="libgazebo_ros_diff_drive.so" name="differential_drive_controller">
<alwaysOn>true</alwaysOn>
<updateRate>100</updateRate>
<leftJoint>base_right_wheel_joint</leftJoint>
<rightJoint>base_left_wheel_joint</rightJoint>
<wheelSeparation>0.39</wheelSeparation>
<wheelDiameter>0.15</wheelDiameter>
<torque>5</torque>
<commandTopic>cmd_vel</commandTopic>
<odometryTopic>odom</odometryTopic>
<odometryFrame>odom</odometryFrame>
<robotBaseFrame>base_link</robotBaseFrame>
</plugin>
</gazebo>
<gazebo>
<plugin filename="libgazebo_ros_p3d.so" name="p3d_base_controller">
<alwaysOn>true</alwaysOn>
<updateRate>100.0</updateRate>
<bodyName>base_link</bodyName>
<topicName>p3dx/base_pose_ground_truth</topicName>
<gaussianNoise>0.01</gaussianNoise>
<frameName>map</frameName>
<!-- initialize odometry for fake localization -->
<xyzOffsets>0 0 0</xyzOffsets>
<rpyOffsets>0 0 0</rpyOffsets>
</plugin>
</gazebo>
<gazebo reference="lms100">
<sensor name="head_hokuyo_sensor" type="ray">
<pose>0 0 0 0 0 0</pose>
<visualize>false</visualize>
<update_rate>50</update_rate>
<ray>
<scan>
<horizontal>
<samples>360</samples>
<resolution>1</resolution>
<min_angle>-1.570796</min_angle>
<max_angle>1.570796</max_angle>
</horizontal>
</scan>
<range>
<min>0.10</min>
<max>30.0</max>
<resolution>0.01</resolution>
</range>
<noise>
<type>gaussian</type>
<!-- Noise parameters based on published spec for Hokuyo laser achieving
"+-30mm" accuracy at range < 10m. A mean of 0.0m and stddev of 0.01m will
put 99.7% of samples within 0.03m of the true reading. -->
<mean>0.0</mean>
<stddev>0.01</stddev>
</noise>
</ray>
<plugin filename="libgazebo_ros_laser.so" name="gazebo_ros_head_hokuyo_controller">
<topicName>p3dx/laser/scan</topicName>
<frameName>lms100</frameName>
</plugin>
</sensor>
</gazebo>
<!-- import the pioneer 3dx's wheels -->
<!-- chassis -->
<link name="base_link">
<inertial>
<mass value="3.5"/>
<!--<origin xyz="-0.025 0 -0.223"/> -->
<origin xyz="-0.05 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="-0.045 0 0.148"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/chassis.stl"/>
</geometry>
<material name="ChassisRed">
<color rgba="0.851 0.0 0.0 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="-0.045 0 0.145"/>
<geometry>
<box size="0.35 0.25 0.14"/>
</geometry>
</collision>
</link>
<!-- top_plate -->
<link name="top_plate">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="top_geom">
<mesh filename="package://p3dx_description/meshes/top.stl"/>
</geometry>
<material name="TopBlack">
<color rgba="0.038 0.038 0.038 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0.0 0 0"/>
<geometry name="pioneer_geom">
<box size="0.45 0.38 0.01"/>
</geometry>
</collision>
</link>
<joint name="base_top_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.045 0 0.234"/>
<parent link="base_link"/>
<child link="top_plate"/>
</joint>
<!-- swivel -->
<link name="swivel">
<inertial>
<mass value="0.1"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/swivel.stl"/>
</geometry>
<material name="swivel">
<color rgba="0.5 0.5 0.5 1"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_swivel_joint" type="continuous">
<origin rpy="0 0 0" xyz="-0.185 0 0.055"/>
<axis xyz="0 0 1"/>
<anchor xyz="0 0 0"/>
<limit effort="100" k_velocity="0" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>
<parent link="base_link"/>
<child link="swivel"/>
</joint>
<!-- center_hubcap -->
<link name="center_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="-0.000711733678" ixz="0.00050272983" iyy="0.015218160428" iyz="-0.000004273467" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/center_hubcap.stl"/>
</geometry>
<material name="swivel">
<color rgba="0.5 0.5 0.5 1"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="swivel_hubcap_joint" type="continuous">
<origin rpy="0 0 0" xyz="-0.026 0 -0.016"/>
<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" k_velocity="0" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>
<parent link="swivel"/>
<child link="center_wheel"/>
</joint>
<!-- center_wheel -->
<link name="center_wheel">
<inertial>
<mass value="0.1"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="-0.000711733678" ixz="0.00050272983" iyy="0.015218160428" iyz="-0.000004273467" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/center_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<cylinder length="0.01" radius="0.0375"/>
</geometry>
</collision>
</link>
<joint name="center_wheel_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.0035 0 -0.001"/>
<parent link="center_wheel"/>
<child link="center_hubcap"/>
</joint>
<link name="p3dx_left_wheel">
<inertial>
<mass value="0.5"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/left_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<!--<mesh filename="package://p3dx_description/meshes/${suffix}_wheel.stl"/> -->
<cylinder length="0.01" radius="0.09"/>
</geometry>
</collision>
</link>
<joint name="base_left_hubcap_joint" type="fixed">
<origin rpy="0 0 0" xyz="0 0 0"/>
<parent link="p3dx_left_wheel"/>
<child link="p3dx_left_hubcap"/>
</joint>
<link name="p3dx_left_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/left_hubcap.stl"/>
</geometry>
<material name="HubcapYellow">
<color rgba="1.0 0.811 0.151 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_left_wheel_joint" type="continuous">
<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>
<origin rpy="0 0 0" xyz="0 0.158 0.091"/>
<parent link="base_link"/>
<child link="p3dx_left_wheel"/>
</joint>
<transmission name="base_link_left_wheel_trans">
<type>pr2_mechanism_model/SimpleTransmission</type>
<joint name="base_left_wheel_joint"/>
<actuator name="base_left_wheel_motor">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>75.0676691729</mechanicalReduction>
</actuator>
</transmission>
<gazebo reference="p3dx_left_hubcap">
<material>Gazebo/Yellow</material>
</gazebo>
<gazebo reference="p3dx_left_wheel">
<material>Gazebo/Black</material>
<mu1>0.5</mu1>
<mu2>50.0</mu2>
<kp>100000000.0</kp>
<kd>1.0</kd>
</gazebo>
<link name="p3dx_right_wheel">
<inertial>
<mass value="0.5"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/right_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<!--<mesh filename="package://p3dx_description/meshes/${suffix}_wheel.stl"/> -->
<cylinder length="0.01" radius="0.09"/>
</geometry>
</collision>
</link>
<joint name="base_right_hubcap_joint" type="fixed">
<origin rpy="0 0 0" xyz="0 0 0"/>
<parent link="p3dx_right_wheel"/>
<child link="p3dx_right_hubcap"/>
</joint>
<link name="p3dx_right_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/right_hubcap.stl"/>
</geometry>
<material name="HubcapYellow">
<color rgba="1.0 0.811 0.151 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_right_wheel_joint" type="continuous">
<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>
<origin rpy="0 0 0" xyz="0 -0.158 0.091"/>
<parent link="base_link"/>
<child link="p3dx_right_wheel"/>
</joint>
<transmission name="base_link_right_wheel_trans">
<type>pr2_mechanism_model/SimpleTransmission</type>
<joint name="base_right_wheel_joint"/>
<actuator name="base_right_wheel_motor">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>-75.0676691729</mechanicalReduction>
</actuator>
</transmission>
<gazebo reference="p3dx_right_hubcap">
<material>Gazebo/Yellow</material>
</gazebo>
<gazebo reference="p3dx_right_wheel">
<material>Gazebo/Black</material>
<mu1>0.5</mu1>
<mu2>50.0</mu2>
<kp>100000000.0</kp>
<kd>1.0</kd>
</gazebo>
<!-- front_sonar -->
<link name="front_sonar">
<inertial>
<mass value="0.0001"/>
<origin xyz="0 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="front_sonar_vis">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/front_sonar.stl"/>
</geometry>
<material name="SonarYellow">
<color rgba="0.715 0.583 0.210 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_front_joint" type="fixed">
<origin rpy="0 0 0" xyz="0.109 0 0.209"/>
<parent link="base_link"/>
<child link="front_sonar"/>
</joint>
<!-- lms100 laser -->
<link name="lms100">
<inertial>
<mass value="1e-5"/>
<origin rpy="0 0 0" xyz="0 0 0"/>
<inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6"/>
</inertial>
<visual>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<mesh filename="package://p3dx_description/meshes/lms100.dae"/>
</geometry>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0.1 0.1 0.1"/>
</geometry>
</collision>
</link>
<joint name="lms100_joint" type="fixed">
<axis xyz="0 1 0"/>
<origin rpy="0 0 0" xyz="0.16 0 0.15"/>
<parent link="base_link"/>
<child link="lms100"/>
</joint>
</robot>