Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <robot name="moon" xmlns:xacro="https://www.ros.org/wiki/xacro" >
- <xacro:property name="namespace" value="rmoon"/>
- <link name="rmid">
- <inertial>
- <mass value="28" />
- <origin xyz="0 0 0" />
- <inertia ixx="0.23768117187" ixy="-0.11662223437" ixz="-0.00455892187
- " iyy="0.22683235937" iyz="0.00430353125" izz="0.42137089062" />
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tmid.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tmid.stl" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="rmid">
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <link name="lmid">
- <inertial>
- <mass value="28" />
- <origin xyz="0 0 0" />
- <inertia ixx="0.23768117187" ixy="-0.11662223437" ixz="-0.00455892187
- " iyy="0.22683235937" iyz="0.00430353125" izz="0.42137089062"/>
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/rtmid.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/rtmid.stl" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="lmid">
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="LefttoRight" type="revolute">
- <origin rpy="0 0 0" xyz="0 0 0"/>
- <child link="rmid" />
- <parent link="lmid"/>
- <axis rpy="0 0 0" xyz="0 1 0 "/>
- <limit effort="1110" velocity="10" lower="-1.57079632679" upper="1.57079632679"/>
- <joint_properties damping="1" friction="1" />
- </joint>
- <link name="turn_f">
- <inertial>
- <mass value="1" />
- <origin xyz="0 0 0" />
- <inertia ixx="1" ixy="0.0" ixz="0.0"
- iyy="1" iyz="0.0"
- izz="1" />
- </inertial>
- </link>
- <gazebo reference="turn_f">
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>2</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <link name="turn_aft">
- <inertial>
- <mass value="1" />
- <origin xyz="0 0 0" />
- <inertia ixx="1" ixy="0.0" ixz="0.0"
- iyy="1" iyz="0.0"
- izz="1" />
- </inertial>
- </link>
- <gazebo reference="turn_aft">
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>2</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="turning_f" type="revolute">
- <origin rpy="0 0 0" xyz="0 0 0"/>
- <child link="forebody" />
- <parent link="turn_f"/>
- <axis rpy="0 0 0" xyz="1 0 0 "/>
- <limit effort="500" velocity="10" lower="-1.57079632679" upper="1.57079632679"/>
- <joint_properties damping="10" friction="10" />
- </joint>
- <joint name="turning_aft" type="revolute">
- <origin rpy="0 0 0" xyz="0 0 0"/>
- <child link="aftbody" />
- <parent link="turn_aft"/>
- <axis rpy="0 0 0" xyz="1 0 0 "/>
- <limit effort="500" velocity="10" lower="-1.57079632679" upper="1.57079632679"/>
- <joint_properties damping="10" friction="10" />
- </joint>
- <link name="forebody">
- <inertial>
- <mass value="50" />
- <origin xyz="0 0 0" />
- <inertia ixx="2.50531372" ixy="0" ixz="0" iyy="3.13793579" iyz="0" izz="5.269990235"/>
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tbod.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tbod.stl" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="forebody">
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="fore" type="prismatic">
- <origin rpy="0 0 0" xyz="0.600000 0 0.02"/>
- <child link="turn_f" />
- <parent link="rmid"/>
- <axis rpy="0 0 0" xyz="1 0 0"/>
- <limit effort="20000" velocity="10" lower="0" upper="0.28"/>
- <joint_properties damping="1" friction="1" />
- </joint>
- <link name="aftbody">
- <inertial>
- <mass value="50" />
- <origin xyz="0 0 0" />
- <inertia ixx="2.50531372" ixy="0" ixz="0" iyy="3.13793579" iyz="0" izz="5.269990235" />
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/rtbod.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/rtbod.stl" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="aftbody">
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="aft" type="prismatic">
- <origin rpy="0 0 0" xyz="-0.600000 0 0.02"/>
- <child link="turn_aft" />
- <parent link="lmid"/>
- <axis rpy="0 0 0" xyz="1 0 0"/>
- <limit effort="20000" velocity="10" lower="-0.28" upper="0"/>
- <joint_properties damping="1" friction="1" />
- </joint>
- <link name="foreRightTire">
- <inertial>
- <mass value="8" />
- <origin xyz="0 0 0" />
- <inertia ixx="0.2538" ixy="0" ixz="0" iyy="0.1479" iyz="0" izz="0.1480" />
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tire.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 1.57079632679 0" />
- <geometry>
- <cylinder length="0.2" radius="0.3" />
- </geometry>
- </collision>
- </link>
- <joint name="foreRightTire_j" type="continuous">
- <origin rpy="0 0 -1.57079632679" xyz="0.15 0.5 -0.025"/>
- <child link="foreRightTire" />
- <parent link="forebody"/>
- <axis rpy="0 0 0" xyz="1 0 0 "/>
- <limit effort="1000" velocity="100" />
- <joint_properties damping="1" friction="1" />
- </joint>
- <gazebo reference="foreRightTire_j">
- <implicitSpringDamper>true</implicitSpringDamper>
- </gazebo>
- <gazebo reference="foreRightTire">
- <material>Gazebo/FlatBlack</material>
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <link name="foreLeftTire">
- <inertial>
- <mass value="8" />
- <origin xyz="0 0 0" />
- <inertia ixx="0.2538" ixy="0" ixz="0" iyy="0.1479" iyz="0" izz="0.1480" />
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tire.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 1.57079632679 0" />
- <geometry>
- <cylinder length="0.2" radius="0.3" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="foreLeftTire">
- <material>Gazebo/FlatBlack</material>
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="foreLeftTire_j" type="continuous">
- <origin rpy="0 0 1.57079632679" xyz="0.15 -0.5 -0.025"/>
- <child link="foreLeftTire" />
- <parent link="forebody"/>
- <axis rpy="0 0 0" xyz="1 0 0 "/>
- <limit effort="1000" velocity="100" />
- <joint_properties damping="1" friction="1" />
- </joint>
- <gazebo reference="foreLeftTire_j">
- <implicitSpringDamper>true</implicitSpringDamper>
- </gazebo>
- <link name="aftRightTire">
- <inertial>
- <mass value="8" />
- <origin xyz="0 0 0" />
- <inertia ixx="0.2538" ixy="0" ixz="0" iyy="0.1479" iyz="0" izz="0.1480" />
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tire.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 1.57079632679 0" />
- <geometry>
- <cylinder length="0.2" radius="0.3" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="aftRightTire">
- <material>Gazebo/FlatBlack</material>
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="aftRightTire_j" type="continuous">
- <origin rpy="0 0 -1.57079632679" xyz="-0.15 0.5 -0.025"/>
- <child link="aftRightTire" />
- <parent link="aftbody"/>
- <axis rpy="0 0 0" xyz="1 0 0 "/>
- <limit effort="1000" velocity="100" />
- <joint_properties damping="1" friction="1" />
- </joint>
- <gazebo reference="aftRightTire_j">
- <implicitSpringDamper>true</implicitSpringDamper>
- </gazebo>
- <link name="aftLeftTire">
- <inertial>
- <mass value="8" />
- <origin xyz="0 0 0" />
- <inertia ixx="0.2538" ixy="0" ixz="0" iyy="0.1479" iyz="0" izz="0.1480" />
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tire.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 1.57079632679 0" />
- <geometry>
- <cylinder length="0.2" radius="0.3" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="aftLeftTire">
- <material>Gazebo/FlatBlack</material>
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="aftLeftTire_j" type="continuous">
- <origin rpy="0 0 1.57079632679" xyz="-0.15 -0.5 -0.025"/>
- <child link="aftLeftTire" />
- <parent link="aftbody"/>
- <axis rpy="0 0 0" xyz="1 0 0 "/>
- <limit effort="1000" velocity="100" />
- <joint_properties damping="1" friction="1" />
- </joint>
- <gazebo reference="aftLeftTire_j">
- <implicitSpringDamper>true</implicitSpringDamper>
- </gazebo>
- <link name="midLeftTire">
- <inertial>
- <mass value="8" />
- <origin xyz="0 0 0" />
- <inertia ixx="0.2538" ixy="0" ixz="0" iyy="0.1479" iyz="0" izz="0.1480" />
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tire.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0" rpy="0 1.57079632679 0" />
- <geometry>
- <cylinder length="0.2" radius="0.3" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="midLeftTire">
- <material>Gazebo/FlatBlack</material>
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="midLeftTire_j" type="continuous">
- <origin rpy="0 0 1.57079632679" xyz="0 -0.5 0.005"/>
- <child link="midLeftTire" />
- <parent link="lmid"/>
- <axis rpy="0 0 0" xyz="1 0 0 "/>
- <limit effort="1000" velocity="100" />
- <joint_properties damping="1" friction="1" />
- </joint>
- <gazebo reference="midLeftTire_j">
- <implicitSpringDamper>true</implicitSpringDamper>
- </gazebo>
- <link name="midRightTire">
- <inertial>
- <mass value="8" />
- <origin xyz="0 0 0" />
- <inertia ixx="0.2538" ixy="0" ixz="0" iyy="0.1479" iyz="0" izz="0.1480" />
- </inertial>
- <visual>
- <origin xyz="0 0 0" rpy="0 0 0" />
- <geometry>
- <mesh filename="package://moon/src/meshes/tire.stl" />
- </geometry>
- <material name="DarkGray" />
- </visual>
- <collision>
- <origin xyz="0 0 0 " rpy="0 1.57079632679 0" />
- <geometry>
- <cylinder length="0.2" radius="0.3" />
- </geometry>
- </collision>
- </link>
- <gazebo reference="midRightTire">
- <material>Gazebo/FlatBlack</material>
- <turnGravityOff>false</turnGravityOff>
- <kp>1000000.0</kp>
- <kd>1.0</kd>
- <mu1>0.8</mu1>
- <mu2>0.8</mu2>
- <maxVel>0.0</maxVel>
- <minDepth>0.001</minDepth>
- </gazebo>
- <joint name="midRightTire_j" type="continuous">
- <origin rpy="0 0 -1.57079632679" xyz="0 0.5 0.005"/>
- <child link="midRightTire" />
- <parent link="rmid"/>
- <axis rpy="0 0 0" xyz="1 0 0 "/>
- <limit effort="1000" velocity="100" />
- <joint_properties damping="1" friction="1" />
- </joint>
- <gazebo reference="midRightTire_j">
- <implicitSpringDamper>true</implicitSpringDamper>
- </gazebo>
- <transmission name="midle">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="LefttoRight">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="midlemotor">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <transmission name="fore_tran">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="fore">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="fore_motor">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <transmission name="aft_tran">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="aft">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="aft_motor">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <transmission name="transmission_aftRightWheel">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="aftRightTire_j">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="motor_aftRightWheel">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <transmission name="transmission_aftLeftWheel">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="aftLeftTire_j">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="motor_aftLeftWheel">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <transmission name="transmission_midLeftWheel">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="midLeftTire_j">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="motor_midLeftWheel">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <transmission name="transmission_midRightWheel">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="midRightTire_j">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="motor_midRightWheel">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <transmission name="transmission_foreRightWheel">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="foreRightTire_j">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="motor_foreRightWheel">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <transmission name="transmission_foreLeftWheel">
- <type>transmission_interface/SimpleTransmission</type>
- <joint name="foreLeftTire_j">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- </joint>
- <actuator name="motor_foreLeftWheel">
- <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
- <mechanicalReduction>1</mechanicalReduction>
- </actuator>
- </transmission>
- <gazebo>
- <plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
- <robotNamespace>/moon</robotNamespace>
- </plugin>
- </gazebo>
- </robot>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement