forked from vinismarques/butia_navigation_system
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
371 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
205 changes: 205 additions & 0 deletions
205
butia_navigation_description/meshes/sensors/LMS1xx_small.dae
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml version="1.0"?> | ||
<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"> | ||
|
||
<xacro:macro name="sick_lms_1xx" params="name ros_topic"> | ||
<xacro:sick_lms_1 name="${name}" ros_topic="${ros_topic}" | ||
length="0.105636" width="0.102301" height="0.161782" mass="1.1" x_offset="0.052811" z_offset="-0.008195" | ||
min_range="0.5" max_range="20.0"/> | ||
</xacro:macro> | ||
|
||
<xacro:macro name="sick_lms_1" params="name ros_topic length width height mass x_offset z_offset min_range max_range"> | ||
<link name="${name}_mount_link"> | ||
<visual> | ||
<geometry> | ||
<mesh filename="package://sick_scan/meshes/LMS1xx_small.dae" /> | ||
</geometry> | ||
<material name="blue" > | ||
<color rgba="0 0 1 1" /> | ||
</material> | ||
</visual> | ||
<collision> | ||
<geometry> | ||
<mesh filename="package://sick_scan/meshes/LMS1xx_collision.stl" /> | ||
</geometry> | ||
</collision> | ||
<inertial> | ||
<mass value="${mass}" /> | ||
<origin xyz="${x_offset} 0 ${z_offset}" /> | ||
<inertia ixx="${0.0833333 * mass * (width * width + height * height)}" ixy="0.0" ixz="0.0" | ||
iyy="${0.0833333 * mass * (length * length + height * height)}" iyz="0.0" | ||
izz="${0.0833333 * mass * (length * length + width * width)}" /> | ||
</inertial> | ||
</link> | ||
|
||
<joint name="${name}_joint" type="fixed"> | ||
<parent link="${name}_mount_link" /> | ||
<child link="${name}_laser" /> | ||
<origin rpy="0 0 0" xyz="0.0549 0 0.0367"/> | ||
</joint> | ||
|
||
<link name="${name}_laser"> | ||
<inertial> | ||
<mass value="0.001" /> | ||
<origin xyz="0 0 0" /> | ||
<inertia ixx="0.000001" ixy="0.0" ixz="0.0" | ||
iyy="0.000001" iyz="0.0" izz="0.000001" /> | ||
</inertial> | ||
</link> | ||
<xacro:sick_lms_1_laser_gazebo_v0 name="${name}" link="${name}_laser" ros_topic="${ros_topic}" update_rate="15.0" min_angle="-2.357" max_angle="2.357" min_range="${min_range}" max_range="${max_range}"/> | ||
</xacro:macro> | ||
|
||
|
||
<xacro:macro name="sick_lms_1_laser_gazebo_v0" params="name link ros_topic update_rate min_angle max_angle min_range max_range"> | ||
<gazebo reference="${link}"> | ||
<material value="Gazebo/Blue" /> | ||
<sensor type="ray" name="${name}"> | ||
<always_on>true</always_on> | ||
<update_rate>${update_rate}</update_rate> | ||
<pose>0 0 0 0 0 0</pose> | ||
<visualize>false</visualize> | ||
<ray> | ||
<scan> | ||
<horizontal> | ||
<samples>540</samples> | ||
<resolution>1</resolution> | ||
<min_angle>${min_angle}</min_angle> | ||
<max_angle>${max_angle}</max_angle> | ||
</horizontal> | ||
</scan> | ||
<range> | ||
<min>${min_range}</min> | ||
<max>${max_range}</max> | ||
<resolution>0.01</resolution> | ||
</range> | ||
</ray> | ||
<plugin name="gazebo_ros_${name}_controller" filename="libgazebo_ros_laser.so"> | ||
<gaussianNoise>0.005</gaussianNoise> | ||
<alwaysOn>true</alwaysOn> | ||
<updateRate>${update_rate}</updateRate> | ||
<topicName>${ros_topic}</topicName> | ||
<frameName>${link}</frameName> | ||
</plugin> | ||
</sensor> | ||
</gazebo> | ||
</xacro:macro> | ||
</robot> |