1
<robot xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller" xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface" xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor" xmlns:xacro="http://ros.org/wiki/xacro" name="gazebo_kinect">
3
<xacro:macro name="shadowarm_sim_kinect">
4
<gazebo reference="camera_link">
5
<sensor:camera name="kinect_camera">
6
<imageFormat>R8G8B8</imageFormat>
7
<imageSize>640 480</imageSize>
9
<nearClip>0.05</nearClip>
11
<updateRate>20</updateRate>
12
<baseline>0.1</baseline>
13
<controller:gazebo_ros_openni_kinect name="kinect_camera_controller" plugin="libgazebo_ros_openni_kinect.so">
14
<alwaysOn>true</alwaysOn>
15
<updateRate>20</updateRate>
16
<imageTopicName>/camera/image_raw</imageTopicName>
17
<pointCloudTopicName>/camera/depth_registered/points</pointCloudTopicName>
18
<cameraInfoTopicName>/camera/camera_info</cameraInfoTopicName>
19
<frameName>/camera_depth_optical_frame</frameName>
20
<distortion_k1>0.0</distortion_k1>
21
<distortion_k2>0.0</distortion_k2>
22
<distortion_k3>0.0</distortion_k3>
23
<distortion_t1>0.0</distortion_t1>
24
<distortion_t2>0.0</distortion_t2>
25
</controller:gazebo_ros_openni_kinect>