switch from xtion 3d camera to rplidar
[ros_wild_thumper.git] / urdf / wild_thumper.urdf.xacro
index 8be843c..5d5f9b7 100644 (file)
@@ -1,7 +1,6 @@
 <?xml version="1.0"?>
 <robot name="wild_thumper" xmlns:xacro="http://ros.org/wiki/xacro">
        <xacro:property name="PI" value="3.1415926535897931" />
-       <xacro:include filename="$(find hector_sensors_description)/urdf/asus_camera.urdf.xacro" />
 
        <link name="base_footprint">
                <visual>
                </visual>
        </link>
 
-       <xacro:asus_camera name="camera" parent="mounting_plate">
-               <origin xyz="0.107 0.0 0.04" rpy="0 0 0"/>
-       </xacro:asus_camera>
+       <link name="lidar">
+               <visual>
+                       <geometry>
+                               <mesh filename="package://wild_thumper/meshes/rplidar_a2.stl" scale="0.001 0.001 0.001"/>
+                       </geometry>
+                       <origin xyz="0.0 0.0 ${0.0408/2}" rpy="0 0 0"/>
+                       <material name="black">
+                               <color rgba="0 0 0 1"/>
+                       </material>
+               </visual>
+       </link>
 
        <link name="sonar_forward_left">
                <visual>
                </visual>
        </link>
 
-       <link name="ir_left">
-               <visual>
-                       <geometry>
-                               <box size="0.015 0.015 0.046"/>
-                       </geometry>
-                       <origin xyz="${-0.015/2} 0 0" rpy="0 0 0"/>
-                       <material name="black">
-                               <color rgba="0 0 0 1"/>
-                       </material>
-               </visual>
-       </link>
-
-       <link name="ir_right">
-               <visual>
-                       <geometry>
-                               <box size="0.015 0.015 0.046"/>
-                       </geometry>
-                       <origin xyz="${-0.015/2} 0 0" rpy="0 0 0"/>
-                       <material name="black">
-                               <color rgba="0 0 0 1"/>
-                       </material>
-               </visual>
-       </link>
-
        <joint name="base_link_joint" type="fixed">
                <parent link="base_footprint"/>
                <child link="base_link"/>
                <origin xyz="-0.115 0.0 -0.012" rpy="0 ${-175*PI/180} 0"/>
        </joint>
 
-       <joint name="ir_left_joint" type="fixed">
-               <parent link="mounting_plate"/>
-               <child link="ir_left"/>
-               <origin xyz="0.0 ${0.072+0.015} -0.045" rpy="0 0 ${PI/2}"/>
-       </joint>
-
-       <joint name="ir_right_joint" type="fixed">
+       <joint name="lidar_joint" type="fixed">
                <parent link="mounting_plate"/>
-               <child link="ir_right"/>
-               <origin xyz="0.0 ${-0.072-0.015} -0.045" rpy="0 0 ${-PI/2}"/>
+               <child link="lidar"/>
+               <origin xyz="0.075 0.01 0.0" rpy="0 0 ${-110*PI/180}"/>
        </joint>
 
        <xacro:macro name="wheel" params="pos side xyz rpy">