Skip to content

Commit

Permalink
Rename extenal antena -> teltonika
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Jun 10, 2024
1 parent d1c427e commit 906110a
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 11 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion launch/gz_components.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_launch_descriptions_from_yaml_node(
actions = []

components_types_with_names = {
"ANT02": "external_antenna",
"ANT02": "antenna",
"LDR01": "slamtec_rplidar",
"LDR06": "slamtec_rplidar",
"LDR10": "ouster_os",
Expand Down
89 changes: 89 additions & 0 deletions meshes/teltonika_003R-00253.dae

Large diffs are not rendered by default.

Binary file added meshes/teltonika_003R-00253_collision.stl
Binary file not shown.
4 changes: 2 additions & 2 deletions urdf/components.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@

<xacro:if value="${type == 'ANT02'}">
<xacro:include
filename="$(find ros_components_description)/urdf/external_antenna.urdf.xacro"
filename="$(find ros_components_description)/urdf/teltonika_003R-00253.urdf.xacro"
ns="antenna" />

<xacro:antenna.external_antenna
<xacro:antenna.teltonika_003R-00253
parent_link="${parent_link}"
xyz="${xyz}"
rpy="${rpy}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<robot xmlns:xacro="http://wiki.ros.org/xacro">
<xacro:macro
name="external_antenna"
name="teltonika_003R-00253"
params="parent_link xyz rpy
namespace:=None
device_namespace:=None
Expand All @@ -28,26 +28,26 @@
<xacro:property name="prefix" value="${device_namespace}_" />
</xacro:unless>

<joint name="${parent_link.rstrip('_link')}_to_${prefix}external_antenna_joint"
<joint name="${parent_link.rstrip('_link')}_to_${prefix}antenna_joint"
type="fixed">
<origin xyz="${xyz}" rpy="${rpy}" />
<parent link="${parent_link}" />
<child link="${prefix}external_antenna_link" />
<child link="${prefix}antenna_link" />
</joint>

<link name="${prefix}external_antenna_link">
<link name="${prefix}antenna_link">
<visual>
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0" />
<geometry>
<mesh filename="package://panther_description/meshes/components/external_antenna.dae" />
<mesh filename="package://ros_components_description/meshes/teltonika_003R-00253.dae" />
</geometry>
</visual>

<collision>
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0" />
<geometry>
<mesh
filename="package://panther_description/meshes/components/external_antenna_collision.stl" />
filename="package://ros_components_description/meshes/teltonika_003R-00253_collision.stl" />
</geometry>
</collision>

Expand All @@ -61,10 +61,10 @@
</link>

<joint
name="${prefix}external_antenna_to_${prefix}${frame_id.rstrip('_link')}_joint"
name="${prefix}antenna_to_${prefix}${frame_id.rstrip('_link')}_joint"
type="fixed">
<origin xyz="0.045 0.0 0.0058" rpy="0.0 0.0 0.0" />
<parent link="${prefix}external_antenna_link" />
<parent link="${prefix}antenna_link" />
<child link="${prefix}${frame_id}" />
</joint>

Expand Down

0 comments on commit 906110a

Please sign in to comment.