Skip to content

Commit

Permalink
Tabs + ns
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Jan 11, 2024
1 parent f7106c1 commit 03902d2
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
10 changes: 5 additions & 5 deletions urdf/orbbec_astra.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
namespace:=None
simulation_engine:=gazebo-classic">

<xacro:if value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="" />
<xacro:if value="${namespace == 'None'}">
<xacro:property name="ns" value="" />
</xacro:if>
<xacro:unless value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="${namespace}/" />
<xacro:property name="ns" value="${namespace}/" />
</xacro:unless>

<xacro:if value="${tf_prefix == 'None'}">
Expand Down Expand Up @@ -98,7 +98,7 @@
<always_on>true</always_on>
<update_rate>20.0</update_rate>

<topic>${namespace_ext}${camera_name}</topic>
<topic>${ns}${camera_name}</topic>
<!-- It is not possible to split the frame of the color and the depth stream.
The frame of color stream should be ${prefix}${camera_name}_color_optical_frame -->
<ignition_frame_id>${prefix}${camera_name}_depth_optical_frame</ignition_frame_id>
Expand All @@ -116,7 +116,7 @@
</clip>
</camera>
<ros>
<namespace>${namespace_ext}</namespace>
<namespace>${ns}</namespace>
</ros>
</sensor>
</gazebo>
Expand Down
10 changes: 5 additions & 5 deletions urdf/slamtec_rplidar_a2.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
simulation_engine:=gazebo-classic">

<xacro:if value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="" />
<xacro:property name="ns" value="" />
</xacro:if>
<xacro:unless value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="${namespace}/" />
<xacro:property name="ns" value="${namespace}/" />
</xacro:unless>

<xacro:if value="${use_gpu}">
Expand Down Expand Up @@ -108,9 +108,9 @@

<xacro:if value="${simulation_engine == 'ignition-gazebo'}">
<gazebo reference="${prefix}${frame_id}">
<sensor type="${ray_type}" name="${namespace_ext}${prefix}rplidar_a2_sensor">
<sensor type="${ray_type}" name="${ns}${prefix}rplidar_a2_sensor">

<topic>${namespace_ext}${topic}</topic>
<topic>${ns}${topic}</topic>
<frame_id>${prefix}${frame_id}</frame_id>
<ignition_frame_id>${prefix}${frame_id}</ignition_frame_id>

Expand Down Expand Up @@ -138,7 +138,7 @@
<always_on>true</always_on>
<visualize>false</visualize>
<ros>
<namespace>${namespace_ext}</namespace>
<namespace>${ns}</namespace>
</ros>
</sensor>
</gazebo>
Expand Down
10 changes: 5 additions & 5 deletions urdf/slamtec_rplidar_a3.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@


<xacro:if value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="" />
<xacro:property name="ns" value="" />
</xacro:if>
<xacro:unless value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="${namespace}/" />
<xacro:property name="ns" value="${namespace}/" />
</xacro:unless>

<xacro:if value="${use_gpu}">
Expand Down Expand Up @@ -84,9 +84,9 @@

<xacro:if value="${simulation_engine == 'ignition-gazebo'}">
<gazebo reference="${prefix}${frame_id}">
<sensor type="${ray_type}" name="${namespace_ext}${prefix}rplidar_a3_sensor">
<sensor type="${ray_type}" name="${ns}${prefix}rplidar_a3_sensor">

<topic>${namespace_ext}${topic}</topic>
<topic>${ns}${topic}</topic>
<frame_id>${prefix}${frame_id}</frame_id>
<ignition_frame_id>${prefix}${frame_id}</ignition_frame_id>

Expand Down Expand Up @@ -115,7 +115,7 @@
<always_on>true</always_on>
<visualize>false</visualize>
<ros>
<namespace>${namespace_ext}</namespace>
<namespace>${ns}</namespace>
</ros>
</sensor>
</gazebo>
Expand Down
10 changes: 5 additions & 5 deletions urdf/slamtec_rplidar_s1.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@


<xacro:if value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="" />
<xacro:property name="ns" value="" />
</xacro:if>
<xacro:unless value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="${namespace}/" />
<xacro:property name="ns" value="${namespace}/" />
</xacro:unless>

<xacro:if value="${use_gpu}">
Expand Down Expand Up @@ -92,9 +92,9 @@

<xacro:if value="${simulation_engine == 'ignition-gazebo'}">
<gazebo reference="${prefix}${frame_id}">
<sensor type="${ray_type}" name="${namespace_ext}${prefix}rplidar_s1_sensor">
<sensor type="${ray_type}" name="${ns}${prefix}rplidar_s1_sensor">

<topic>${namespace_ext}${topic}</topic>
<topic>${ns}${topic}</topic>
<frame_id>${prefix}${frame_id}</frame_id>
<ignition_frame_id>${prefix}${frame_id}</ignition_frame_id>

Expand Down Expand Up @@ -122,7 +122,7 @@
<always_on>1</always_on>
<visualize>false</visualize>
<ros>
<namespace>${namespace_ext}</namespace>
<namespace>${ns}</namespace>
</ros>
</sensor>
</gazebo>
Expand Down
10 changes: 5 additions & 5 deletions urdf/slamtec_rplidar_s2.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
simulation_engine:=gazebo-classic">

<xacro:if value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="" />
<xacro:property name="ns" value="" />
</xacro:if>
<xacro:unless value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="${namespace}/" />
<xacro:property name="ns" value="${namespace}/" />
</xacro:unless>

<xacro:if value="${use_gpu}">
Expand Down Expand Up @@ -83,9 +83,9 @@

<xacro:if value="${simulation_engine == 'ignition-gazebo'}">
<gazebo reference="${prefix}${frame_id}">
<sensor type="${ray_type}" name="${namespace_ext}${prefix}rplidar_s2_sensor">
<sensor type="${ray_type}" name="${ns}${prefix}rplidar_s2_sensor">

<topic>${namespace_ext}${topic}</topic>
<topic>${ns}${topic}</topic>
<frame_id>${prefix}${frame_id}</frame_id>
<ignition_frame_id>${prefix}${frame_id}</ignition_frame_id>

Expand Down Expand Up @@ -113,7 +113,7 @@
<always_on>1</always_on>
<visualize>false</visualize>
<ros>
<namespace>${namespace_ext}</namespace>
<namespace>${ns}</namespace>
</ros>
</sensor>
</gazebo>
Expand Down
10 changes: 5 additions & 5 deletions urdf/slamtec_rplidar_s3.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
simulation_engine:=gazebo-classic">

<xacro:if value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="" />
<xacro:property name="ns" value="" />
</xacro:if>
<xacro:unless value="${namespace == 'None'}">
<xacro:property name="namespace_ext" value="${namespace}/" />
<xacro:property name="ns" value="${namespace}/" />
</xacro:unless>

<xacro:if value="${use_gpu}">
Expand Down Expand Up @@ -83,9 +83,9 @@

<xacro:if value="${simulation_engine == 'ignition-gazebo'}">
<gazebo reference="${prefix}${frame_id}">
<sensor type="${ray_type}" name="${namespace_ext}${prefix}rplidar_s3_sensor">
<sensor type="${ray_type}" name="${ns}${prefix}rplidar_s3_sensor">

<topic>${namespace_ext}${topic}</topic>
<topic>${ns}${topic}</topic>
<frame_id>${prefix}${frame_id}</frame_id>
<ignition_frame_id>${prefix}${frame_id}</ignition_frame_id>

Expand Down Expand Up @@ -114,7 +114,7 @@
<visualize>false</visualize>
</sensor>
<ros>
<namespace>${namespace_ext}</namespace>
<namespace>${ns}</namespace>
</ros>
</gazebo>
</xacro:if>
Expand Down

0 comments on commit 03902d2

Please sign in to comment.