ppovb5fc7/gazebo/worlds/depth_camera.world

86 lines
2.1 KiB
Plaintext
Raw Normal View History

2019-03-04 17:11:56 +08:00
<?xml version="1.0" ?>
<sdf version="1.5">
<world name="default">
<include>
<uri>model://ground_plane</uri>
</include>
<include>
<uri>model://sun</uri>
</include>
<model name="sphere">
<pose>2 0 0 0 0 0</pose>
<link name="body">
<inertial>
<inertia>
<ixx>1</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>1</iyy>
<iyz>0</iyz>
<izz>1</izz>
</inertia>
<mass>1.0</mass>
</inertial>
<collision name="geom">
<geometry>
<sphere>
<radius>1</radius>
</sphere>
</geometry>
</collision>
<visual name="visual">
<geometry>
<sphere>
<radius>1</radius>
</sphere>
</geometry>
<material>
<script>Gazebo/WoodPallet</script>
</material>
</visual>
</link>
<static>true</static>
</model>
<model name="camera_model">
<pose>0 0 0 0 0 0</pose>
<link name="my_link">
<inertial>
<inertia>
<ixx>1</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>1</iyy>
<iyz>0</iyz>
<izz>1</izz>
</inertia>
<mass>1.0</mass>
</inertial>
<collision name="collision">
<geometry>
<box>
<size>1 1 1</size>
</box>
</geometry>
</collision>
<sensor name="camera" type="depth">
<camera>
<horizontal_fov>1.04719755</horizontal_fov>
<image>
<width>640</width>
<height>480</height>
</image>
<clip>
<near>0.1</near>
<far>20</far>
</clip>
</camera>
<plugin filename="libDepthCameraPlugin.so" name="depth_camera_plugin" />
<always_on>true</always_on>
<update_rate>10</update_rate>
</sensor>
</link>
<static>true</static>
</model>
</world>
</sdf>