Skip to content

Commit

Permalink
without namespace working
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Delicat <[email protected]>
  • Loading branch information
delihus committed Jun 12, 2024
1 parent 6a4897e commit da9b19b
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions urdf/components.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<xacro:property name="device_namespace" value="${component['device_namespace']}"
scope="parent" />

<xacro:if value="${robot_namespace == ''}">
<xacro:property name="ns" value="None" scope="parent" />
</xacro:if>
<xacro:unless value="${robot_namespace == ''}">
<xacro:property name="ns" value="${robot_namespace}" scope="parent" />
</xacro:unless>

<xacro:if value="${type == 'CAM01'}">
<xacro:include
filename="$(find ros_components_description)/urdf/orbbec_astra.urdf.xacro"
Expand All @@ -37,7 +44,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
/>
</xacro:if>
Expand All @@ -52,7 +59,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
/>
</xacro:if>
Expand All @@ -67,7 +74,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
/>
</xacro:if>
Expand All @@ -91,7 +98,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
model="${ouster_models_dict[type]}"
/>
Expand All @@ -107,7 +114,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
/>
</xacro:if>
Expand Down Expand Up @@ -153,7 +160,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
kinova_type="gen3"
dof="6"
Expand All @@ -172,7 +179,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
kinova_type="gen3"
dof="6"
Expand All @@ -191,7 +198,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
kinova_type="gen3"
dof="7"
Expand All @@ -210,7 +217,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
kinova_type="gen3"
dof="7"
gripper="robotiq_2f_85"
Expand All @@ -227,7 +234,7 @@
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
namespace="${robot_namespace}"
namespace="${ns}"
device_namespace="${device_namespace}"
robotiq_type="2f_85"
/>
Expand Down

0 comments on commit da9b19b

Please sign in to comment.