<!--
  Copyright 2016 The Cartographer Authors

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<robot name="google_cartographer">
  <material name="orange">
    <color rgba="1.0 0.5 0.2 1"/>
  </material>
  <material name="gray">
    <color rgba="0.2 0.2 0.2 1"/>
  </material>
  <material name="green">
    <color rgba="0.2 0.4 0.2 1"/>
  </material>

  <link name="/imu_link">
    <visual>
      <origin xyz="0.01 0.01 -0.01"/>
      <geometry>
        <box size="0.055 0.055 0.02"/>
      </geometry>
      <material name="orange"/>
    </visual>
  </link>

  <link name="/horizontal_vlp16_link">
    <visual>
      <origin xyz="0.0 0.0 -0.01"/>
      <geometry>
        <cylinder length="0.09" radius="0.03"/>
      </geometry>
      <material name="gray"/>
    </visual>
  </link>

  <link name="/vertical_vlp16_link">
    <visual>
      <origin xyz="0.0 0.0 -0.01"/>
      <geometry>
        <cylinder length="0.09" radius="0.03"/>
      </geometry>
      <material name="gray"/>
    </visual>
  </link>

  <link name="/base_link">
    <visual>
      <origin xyz="0.18 0.0 0.2"/>
      <geometry>
        <box size="0.03 0.4 0.8"/>
      </geometry>
      <material name="green"/>
    </visual>
  </link>

  <joint name="base_link_joint" type="fixed">
    <parent link="/base_link"/>
    <child link="/imu_link"/>
    <origin xyz="0 0 0" rpy="0 0 3.1416"/>
  </joint>

  <joint name="horizontal_vlp16_link_joint" type="fixed">
    <parent link="/base_link"/>
    <child link="/horizontal_vlp16_link"/>
    <origin xyz="0.01 0. 0.19" rpy="0. -0.1745 3.1416" />
  </joint>

  <joint name="vertical_vlp16_link_joint" type="fixed">
    <parent link="/base_link"/>
    <child link="/vertical_vlp16_link"/>
    <origin xyz="0.19 0. 0.04" rpy="0. 1.3963 0."/>
  </joint>
</robot>
