Skip to content

Commit 6675dbd

Browse files
author
Victor Lopez
committed
Migrate rest of lasers to ROS2
1 parent 39042d0 commit 6675dbd

File tree

4 files changed

+37
-22
lines changed

4 files changed

+37
-22
lines changed

pmb2_description/urdf/sensors/hokuyo_urg_04lx_ug01_laser.gazebo.xacro

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@
3434
<max>5.6</max>
3535
<resolution>0.001</resolution>
3636
</range>
37+
<noise>
38+
<type>gaussian</type>
39+
<mean>0.0</mean>
40+
<stddev>0.03</stddev>
41+
</noise>
3742
</ray>
38-
<plugin filename="libgazebo_ros_laser.so" name="gazebo_ros_hokuyo_laser">
39-
<gaussianNoise>0.03</gaussianNoise>
40-
<alwaysOn>true</alwaysOn>
41-
<updateRate>${update_rate}</updateRate>
42-
<topicName>${ros_topic}</topicName>
43-
<frameName>${name}_link</frameName>
43+
<plugin name="bytes_laserscan" filename="libgazebo_ros_ray_sensor.so">
44+
<ros>
45+
<remapping>~/out:=${ros_topic}</remapping>
46+
</ros>
47+
<output_type>sensor_msgs/LaserScan</output_type>
48+
<frame_name>${name}_link</frame_name>
4449
</plugin>
4550
</sensor>
4651
<material>Gazebo/DarkGrey</material>

pmb2_description/urdf/sensors/sick_tim551_laser.gazebo.xacro

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@
3434
<max>10.0</max>
3535
<resolution>0.001</resolution>
3636
</range>
37+
<noise>
38+
<type>gaussian</type>
39+
<mean>0.0</mean>
40+
<stddev>0.06</stddev>
41+
</noise>
3742
</ray>
38-
<plugin filename="libgazebo_ros_laser.so" name="gazebo_ros_sick_laser">
39-
<gaussianNoise>0.06</gaussianNoise>
40-
<alwaysOn>true</alwaysOn>
41-
<updateRate>${update_rate}</updateRate>
42-
<topicName>${ros_topic}</topicName>
43-
<frameName>${name}_link</frameName>
43+
<plugin name="bytes_laserscan" filename="libgazebo_ros_ray_sensor.so">
44+
<ros>
45+
<remapping>~/out:=${ros_topic}</remapping>
46+
</ros>
47+
<output_type>sensor_msgs/LaserScan</output_type>
48+
<frame_name>${name}_link</frame_name>
4449
</plugin>
4550
</sensor>
4651
<material>Gazebo/DarkGrey</material>

pmb2_description/urdf/sensors/sick_tim561_laser.gazebo.xacro

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@
3434
<max>10.0</max>
3535
<resolution>0.001</resolution>
3636
</range>
37+
<noise>
38+
<type>gaussian</type>
39+
<mean>0.0</mean>
40+
<stddev>0.06</stddev>
41+
</noise>
3742
</ray>
38-
<plugin filename="libgazebo_ros_laser.so" name="gazebo_ros_sick_laser">
39-
<gaussianNoise>0.06</gaussianNoise>
40-
<alwaysOn>true</alwaysOn>
41-
<updateRate>${update_rate}</updateRate>
42-
<topicName>${ros_topic}</topicName>
43-
<frameName>${name}_link</frameName>
43+
<plugin name="bytes_laserscan" filename="libgazebo_ros_ray_sensor.so">
44+
<ros>
45+
<remapping>~/out:=${ros_topic}</remapping>
46+
</ros>
47+
<output_type>sensor_msgs/LaserScan</output_type>
48+
<frame_name>${name}_link</frame_name>
4449
</plugin>
4550
</sensor>
4651
<material>Gazebo/DarkGrey</material>

pmb2_description/urdf/sensors/sick_tim571_laser.gazebo.xacro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or send a letter to
99
Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
1010
11-
Laser configuration according with the SICK TiM 551 product specification:
11+
Laser configuration according with the SICK TiM 571 product specification:
1212
https://www.sick.com/media/pdf/4/44/444/dataSheet_TiM571-2050101_1075091_en.pdf
1313
-->
1414
<robot xmlns:xacro="http://ros.org/wiki/xacro">
@@ -40,12 +40,12 @@
4040
<stddev>0.06</stddev>
4141
</noise>
4242
</ray>
43-
<plugin name="bytes_laserscan" filename="libgazebo_ros_ray_sensor.so">
43+
<plugin name="bytes_laserscan" filename="libgazebo_ros_ray_sensor.so">
4444
<ros>
45-
<remapping>~/out:=${ros_topic}</remapping>
45+
<remapping>~/out:=${ros_topic}</remapping>
4646
</ros>
4747
<output_type>sensor_msgs/LaserScan</output_type>
48-
<frame_name>${name}_link</frame_name>
48+
<frame_name>${name}_link</frame_name>
4949
</plugin>
5050
</sensor>
5151
<material>Gazebo/DarkGrey</material>

0 commit comments

Comments
 (0)