|
19 | 19 | -->
|
20 | 20 |
|
21 | 21 | <robot name="azure_kinect" xmlns:xacro="http://www.ros.org/wiki/xacro">
|
22 |
| - <xacro:macro name="azure_kinect" params="prefix:='' parent:='' gazebo:=false *origin"> |
| 22 | + <xacro:macro name="azure_kinect" params="prefix:='' parent:='' publish_calibrated_poses=true gazebo:=false *origin"> |
23 | 23 |
|
24 | 24 | <xacro:if value="${parent != ''}">
|
25 | 25 | <joint name="${prefix}azure_in_joint" type="fixed">
|
|
44 | 44 | </collision>
|
45 | 45 | </link>
|
46 | 46 |
|
47 |
| - <link name="${prefix}camera_base" /> <!-- for compatability with old model --> |
48 |
| - <link name="${prefix}azure_rgb" /> |
49 |
| - <link name="${prefix}azure_depth" /> |
50 |
| - <link name="${prefix}azure_gyro" /> |
51 |
| - <link name="${prefix}azure_microphone_0" /> |
52 |
| - <link name="${prefix}azure_microphone_1" /> |
53 |
| - <link name="${prefix}azure_microphone_2" /> |
54 |
| - <link name="${prefix}azure_microphone_3" /> |
55 |
| - <link name="${prefix}azure_microphone_4" /> |
56 |
| - <link name="${prefix}azure_microphone_5" /> |
57 |
| - <link name="${prefix}azure_microphone_6" /> |
| 47 | + <link name="${prefix}azure_camera_base" /> <!-- for compatability with calibration parameters --> |
58 | 48 |
|
59 | 49 | <joint name="${prefix}azure_base_to_camera_base" type="fixed">
|
60 | 50 | <parent link="${prefix}azure_base" />
|
61 |
| - <child link="${prefix}camera_base" /> |
| 51 | + <child link="${prefix}azure_camera_base" /> |
62 | 52 | <origin xyz="0.062 0.0 0.0065" rpy="0 0 0" />
|
63 | 53 | </joint>
|
64 | 54 |
|
65 |
| - <joint name="${prefix}azure_base_to_rgb" type="fixed"> |
66 |
| - <parent link="${prefix}azure_base" /> |
67 |
| - <child link="${prefix}azure_rgb" /> |
68 |
| - <origin xyz="0.0618 -0.032 0.0065" rpy="-${pi/2} 0 -${pi/2}" /> |
69 |
| - </joint> |
| 55 | + <xacro:if value="${not publish_calibrated_poses or gazebo}"> |
| 56 | + <link name="${prefix}azure_rgb" /> |
| 57 | + <link name="${prefix}azure_depth" /> |
| 58 | + <link name="${prefix}azure_imu" /> |
70 | 59 |
|
71 |
| - <joint name="${prefix}azure_base_to_depth" type="fixed"> |
72 |
| - <parent link="${prefix}azure_base" /> |
73 |
| - <child link="${prefix}azure_depth" /> |
74 |
| - <origin xyz="0.0618 -0.0005 0.0065" rpy="-${96/180*pi} 0 -${pi/2}" /> |
75 |
| - </joint> |
| 60 | + <joint name="${prefix}azure_base_to_rgb" type="fixed"> |
| 61 | + <parent link="${prefix}azure_base" /> |
| 62 | + <child link="${prefix}azure_rgb" /> |
| 63 | + <origin xyz="0.0618 -0.032 0.0065" rpy="-${pi/2} 0 -${pi/2}" /> |
| 64 | + </joint> |
76 | 65 |
|
77 |
| - <joint name="${prefix}azure_base_to_gyro" type="fixed"> |
78 |
| - <parent link="${prefix}azure_base" /> |
79 |
| - <child link="${prefix}azure_gyro" /> |
80 |
| - <origin xyz="0.0618 -0.0005 0.0065" rpy="0 ${pi} 0" /> |
81 |
| - </joint> |
| 66 | + <joint name="${prefix}azure_base_to_depth" type="fixed"> |
| 67 | + <parent link="${prefix}azure_base" /> |
| 68 | + <child link="${prefix}azure_depth" /> |
| 69 | + <origin xyz="0.0618 -0.0005 0.0065" rpy="-${96/180*pi} 0 -${pi/2}" /> |
| 70 | + </joint> |
| 71 | + |
| 72 | + <joint name="${prefix}azure_base_to_imu" type="fixed"> |
| 73 | + <parent link="${prefix}azure_base" /> |
| 74 | + <child link="${prefix}azure_imu" /> |
| 75 | + <origin xyz="0.0618 -0.0005 0.0065" rpy="0 ${pi} 0" /> |
| 76 | + </joint> |
| 77 | + </xacro:if> |
| 78 | + |
| 79 | + <link name="${prefix}azure_microphone_0" /> |
| 80 | + <link name="${prefix}azure_microphone_1" /> |
| 81 | + <link name="${prefix}azure_microphone_2" /> |
| 82 | + <link name="${prefix}azure_microphone_3" /> |
| 83 | + <link name="${prefix}azure_microphone_4" /> |
| 84 | + <link name="${prefix}azure_microphone_5" /> |
| 85 | + <link name="${prefix}azure_microphone_6" /> |
82 | 86 |
|
83 | 87 | <joint name="${prefix}azure_base_to_microphone_0" type="fixed">
|
84 | 88 | <parent link="${prefix}azure_base" />
|
|
141 | 145 | WFOV 2x2 binned: 0, 5, 15, 30 FPS
|
142 | 146 | WFOV unbinned: 0, 5, 15 FPS
|
143 | 147 |
|
144 |
| - Note: Frame rate also needs to be changed in gazebo plugin settings (line 130) |
| 148 | + Note: Frame rate also needs to be changed in gazebo plugin settings (line 183) |
145 | 149 | -->
|
146 | 150 | <update_rate>5</update_rate>
|
147 | 151 | <camera>
|
|
168 | 172 | WFOV 2x2 binned: 0.25 - 2.88 m
|
169 | 173 | WFOV unbinned: 0.25 - 2.21 m
|
170 | 174 |
|
171 |
| - Note: Range also needs to be changed in gazebo plugin settings (lines 131 and 132) |
| 175 | + Note: Range also needs to be changed in gazebo plugin settings (lines 184 and 185) |
172 | 176 | -->
|
173 | 177 | <near>0.25</near>
|
174 | 178 | <far>2.88</far>
|
175 | 179 | </clip>
|
176 | 180 | </camera>
|
177 | 181 | <plugin filename="libgazebo_ros_openni_kinect.so" name="${prefix}azure_camera_controller">
|
178 | 182 | <alwaysOn>true</alwaysOn>
|
179 |
| - <updateRate>5</updateRate> |
180 |
| - <pointCloudCutoff>0.25</pointCloudCutoff> |
181 |
| - <pointcloudcutoffmax>2.88</pointcloudcutoffmax> |
| 183 | + <updateRate>5</updateRate> <!-- Frame rate --> |
| 184 | + <pointCloudCutoff>0.25</pointCloudCutoff> <!-- Near clip distance --> |
| 185 | + <pointcloudcutoffmax>2.88</pointcloudcutoffmax> <!-- Far clip distance --> |
182 | 186 | <imageTopicName>rgb/image_raw</imageTopicName>
|
183 | 187 | <cameraInfoTopicName>rgb/camera_info</cameraInfoTopicName>
|
184 | 188 | <depthImageTopicName>depth/image_raw</depthImageTopicName>
|
|
0 commit comments