Browse Source

Match simulated lidar/depth camera closer to real robot

pull/30/merge
Binit Shah 3 years ago
parent
commit
64e85833c9
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      stretch_gazebo/urdf/stretch_gazebo.urdf.xacro

+ 8
- 8
stretch_gazebo/urdf/stretch_gazebo.urdf.xacro View File

@ -170,7 +170,7 @@
</sensor> </sensor>
</gazebo> </gazebo>
<gazebo> <gazebo>
<plugin name="realsense" filename="librealsense_gazebo_plugin.so">
<plugin name="camera" filename="librealsense_gazebo_plugin.so">
<depthUpdateRate>30</depthUpdateRate> <depthUpdateRate>30</depthUpdateRate>
<colorUpdateRate>30</colorUpdateRate> <colorUpdateRate>30</colorUpdateRate>
<infraredUpdateRate>30</infraredUpdateRate> <infraredUpdateRate>30</infraredUpdateRate>
@ -201,7 +201,7 @@
<always_on>true</always_on> <always_on>true</always_on>
<visualize>false</visualize> <visualize>false</visualize>
<plugin name="imu_plugin" filename="libgazebo_ros_imu_sensor.so"> <plugin name="imu_plugin" filename="libgazebo_ros_imu_sensor.so">
<topicName>realsense/imu/data</topicName>
<topicName>camera/imu/data</topicName>
<bodyName>camera_gyro_frame</bodyName> <bodyName>camera_gyro_frame</bodyName>
<updateRateHZ>50.0</updateRateHZ> <updateRateHZ>50.0</updateRateHZ>
<gaussianNoise>0.001</gaussianNoise> <gaussianNoise>0.001</gaussianNoise>
@ -253,12 +253,12 @@
<horizontal> <horizontal>
<samples>2000</samples> <samples>2000</samples>
<resolution>1</resolution> <resolution>1</resolution>
<min_angle>${-M_PI}</min_angle>
<max_angle>${M_PI}</max_angle>
<min_angle>-0.9</min_angle>
<max_angle>5.0</max_angle>
</horizontal> </horizontal>
</scan> </scan>
<range> <range>
<min>0.08</min>
<min>0.15</min>
<max>12.0</max> <max>12.0</max>
<resolution>0.01</resolution> <resolution>0.01</resolution>
</range> </range>
@ -289,12 +289,12 @@
<horizontal> <horizontal>
<samples>2000</samples> <samples>2000</samples>
<resolution>1</resolution> <resolution>1</resolution>
<min_angle>${-M_PI}</min_angle>
<max_angle>${M_PI}</max_angle>
<min_angle>-0.9</min_angle>
<max_angle>5.0</max_angle>
</horizontal> </horizontal>
</scan> </scan>
<range> <range>
<min>0.08</min>
<min>0.15</min>
<max>12.0</max> <max>12.0</max>
<resolution>0.01</resolution> <resolution>0.01</resolution>
</range> </range>

Loading…
Cancel
Save